Linux系統(tǒng)用命令查看網卡信息版本數(shù)據教程
我們在Linux下想查看網卡的信息可以用命令來實現(xiàn),具體怎么操作呢。下面由學習啦小編為大家整理了查看Linux系統(tǒng)配置信息的命令,希望對大家有幫助!
查看Linux系統(tǒng)配置信息命令——網卡
查看網卡硬件信息
# lspci | grep -i 'eth'
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
查看系統(tǒng)的所有網絡接口
# ifconfig -a
eth0 Link encap:以太網 硬件地址 b8:97:5a:17:b3:8f
.....
lo Link encap:本地環(huán)回
.....
或者是
ip link show
1: lo: mtu 16436 qdisc noqueue state DOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether b8:97:5a:17:b3:8f brd ff:ff:ff:ff:ff:ff
如果要查看某個網絡接口的詳細信息,例如eth0的詳細參數(shù)和指標
# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full #支持千兆半雙工,全雙工模式
Supported pause frame use: No
Supports auto-negotiation: Yes #支持自適應模式,一般都支持
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes #默認使用自適應模式
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
.....
Speed: 100Mb/s #現(xiàn)在網卡的速度是100Mb,網卡使用自適應模式,所以推測路由是100Mb,導致網卡從支持千兆,變成要支持百兆
Duplex: Full #全雙工
.....
Link detected: yes #表示有網線連接,和路由是通的