centos check network connection (hardware)

1. View all the network cards of the current host, where, lspci: display all PCI bus devices in the system or all tools connected to the bus

 lspci|grep -i eth

Insert picture description here
2. Check the physical connection status, such as checking whether the network cable is plugged in and whether the network cable is plugged in
Note: eth0 is my own network card, check according to the actual situation

ethtool eth0

Insert picture description here
3. mii-tool eth0
Insert picture description here
4. View the local routing table

ip route

Insert picture description here
5. View Gateway

cat /etc/resolv.conf
Published 21 original articles · liked 0 · visits 580

Guess you like

Origin blog.csdn.net/u014270566/article/details/105479255