Networking 101 : Troubleshooting network connections - Error : Host unreacheable - lspci, nmcli, mii-tool-
There are some tool we could use to diagnose our system when it is unable to get an IP address.
Contacting the dhcp server:
We could start by contacting the DHCP server to request an IP address from the pool of addresses the DHCP has.
We release the lease of the DHCP server using the below:
We can check the network interfaces (Ethernet interface) on our system using the below command:
It is a network manager tool, we might use to check the state of the network interfaces:
We could use the "mii-tool" to get the status of the network interfaces as below:
We can also use the "ip addr" command which returns all the interfaces, their IP addresses, their status (UP/DOWN),...:
We could use the below command for enabling a network interface if it is disabled (status : DOWN):
We could restart the network using the below command:
We could add assign a static address to an interface in the "/etc/network/interfaces" as follows:
Comments