How To Find Network Configuration In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Use the ifconfig command: The ifconfig command is used to check the configuration of network interface parameters for your system. To view detailed information about all the interfaces on your system, simply type “ifconfig” at the command line and press enter. This will show you the IP address, subnet mask, broadcast address, and more information about each network interface on the system.
2. Use the ip command: The ip command is a newer version of the ifconfig command and offers several advantages over it. To view the network configuration of your system using the ip command, type “ip addr show” at the command line and press enter. This will show you the IP address, subnet mask, broadcast address, and more information about each network interface on the system.
3. Use the route command: If you want to view the routing table for your system, the route command is just the thing you need. To view the routing table for your system, type “route -n” at the command line and press enter. This will show you the network routes defined for your system, including the default gateway, destinations, and more.