Linux系統(tǒng)用命令查看網(wǎng)卡信息版本數(shù)據(jù)教程
我們?cè)贚inux下想查看網(wǎng)卡的信息可以用命令來(lái)實(shí)現(xiàn),具體怎么操作呢。下面由學(xué)習(xí)啦小編為大家整理了查看Linux系統(tǒng)配置信息的命令,希望對(duì)大家有幫助!
查看Linux系統(tǒng)配置信息命令——網(wǎng)卡
查看網(wǎ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)的所有網(wǎng)絡(luò)接口
# ifconfig -a
eth0 Link encap:以太網(wǎng) 硬件地址 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
如果要查看某個(gè)網(wǎng)絡(luò)接口的詳細(xì)信息,例如eth0的詳細(xì)參數(shù)和指標(biāo)
# 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 #支持自適應(yīng)模式,一般都支持
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 #默認(rèn)使用自適應(yīng)模式
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
.....
Speed: 100Mb/s #現(xiàn)在網(wǎng)卡的速度是100Mb,網(wǎng)卡使用自適應(yīng)模式,所以推測(cè)路由是100Mb,導(dǎo)致網(wǎng)卡從支持千兆,變成要支持百兆
Duplex: Full #全雙工
.....
Link detected: yes #表示有網(wǎng)線(xiàn)連接,和路由是通的