1. In Linux, the Ethernet connection interface is ordered as: Eth0,eth1, where 0, 1 indicates the network card number.
2.lspci to view NIC hardware information (USB is LSUSB)
3.ifconfig to view interface information
Ifconfig-a to view all interfaces
Ifconfig eth0 to view specific eth0 interface information.
Ifup and Ifdown to enable or disable a solution. such as: Ifup eth0 to start the Eth0 interface.
The Setup command can be used to configure the network information, which can be started by using Ifup after the configuration is complete.
4. Network Test commands:
Ping to test the connectivity of the network. such as: Ping 192.168.1.1
To test DNS resolution with the Host,dig command. Such as:
Host Www.baidu.com
Dig www.baidu.com
To display the routing table information with the IP route
To modify the hostname: hostname newname (real-time modification)
To trace the network path to the destination address is traceroute. Such as:
Traceroute www.baidu.com.
MTR is used for network quality testing. Such as:
MTR www.baidu.com.
Ethernet Connections in Linux systems