How are you able to see the network details on a Linux machine?

The first bit of information we want to find out is the IP address of our machine

/sbin/ifconfig

ifconfig

The ifconfig command has a variety of options to configure, tune, and debug your system’s network interfaces. It’s also a quick way to view IP addresses and other network interface information. Type ifconfig to view the status of all currently active network interfaces, including their names. You can also specify an interface’s name to view only information about that interface.

ifconfig
ifconfig eth0

 

hostname you will see the actual hostname of your machine.

less /etc/resolv.conf

 

netstat -nr

netstat

 

ping

No basic network administration is effective without the ping command. I use it for testing server configuration and checking status. The ping command basically sends test packets to a specific server and checks if there is a response. The command is very useful when trying to determine where a connectivity error originates.