为什么用命令ethtool查看网卡信息,会显示网卡的工作模式为unknown?
网卡工作模式全双工,简单来说是什么意思呢?在用网卡都要求全双工模式的吗?
现在通过一个设备监控软件,监控到某台服务器的eth6,eth7,eth8,eth9,eth10是网卡工作模式非全双工,然后手工检查的结果如下:
执行命令ethtool eth1
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 2
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Link detected: yes
可以看到eth1是全双工,而且eth1在用。
执行命令ethtool eth6
Settings for eth6:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 65535Mb/s
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: no
但是eth6就显示Unknown,是由于没有在用所以获取不到网卡的工作模式吗?
下面是ifconfig查看该机器的所有网卡
*******:~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr FC:48:EF:2B:EA:41
inet addr:192.168.224.10 Bcast:192.168.224.31 Mask:255.255.255.224
inet6 addr: fe80::fe48:efff:fe2b:ea41/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:410026112 errors:0 dropped:0 overruns:0 frame:0
TX packets:523006595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:226871814318 (216361.8 Mb) TX bytes:174294389472 (166220.0 Mb)
Interrupt:33 Memory:fa700000-fa712800
eth1 Link encap:Ethernet HWaddr FC:48:EF:2B:EA:42
inet6 addr: fe80::fe48:efff:fe2b:ea42/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:3821465 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:244573830 (233.2 Mb) TX bytes:680 (680.0 b)
Interrupt:31 Memory:fa600000-fa612800
eth2 Link encap:Ethernet HWaddr FC:48:EF:2B:EA:43
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::fe48:efff:fe2b:ea43/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:15904230 errors:0 dropped:0 overruns:0 frame:0
TX packets:933674 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1033863390 (985.9 Mb) TX bytes:59755304 (56.9 Mb)
Interrupt:16 Memory:faf00000-faf12800
eth3 Link encap:Ethernet HWaddr FC:48:EF:2B:EA:44
inet6 addr: fe80::fe48:efff:fe2b:ea44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16837399 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1093585786 (1042.9 Mb) TX bytes:606 (606.0 b)
Interrupt:17 Memory:fad00000-fad12800
eth4 Link encap:Ethernet HWaddr FC:48:EF:2B:EA:45
inet addr:172.18.1.1 Bcast:172.18.1.3 Mask:255.255.255.252
inet6 addr: fe80::fe48:efff:fe2b:ea45/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8286555 errors:0 dropped:0 overruns:0 frame:0
TX packets:11716164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:630568385 (601.3 Mb) TX bytes:1033316258 (985.4 Mb)
Interrupt:16 Memory:fb700000-fb712800
eth5 Link encap:Ethernet HWaddr FC:48:EF:22:50:E6
inet addr:192.168.29.10 Bcast:192.168.29.255 Mask:255.255.255.0
inet6 addr: fe80::fe48:efff:fe22:50e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121796706 errors:0 dropped:0 overruns:0 frame:0
TX packets:122146052 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44562574902 (42498.1 Mb) TX bytes:35146947789 (33518.7 Mb)
Interrupt:28
eth6 Link encap:Ethernet HWaddr FC:48:EF:22:50:E7
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:40
eth7 Link encap:Ethernet HWaddr FC:48:EF:22:50:6C
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:30
eth8 Link encap:Ethernet HWaddr FC:48:EF:22:50:6D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:37
eth9 Link encap:Ethernet HWaddr FC:48:EF:23:39:3C
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:31
eth10 Link encap:Ethernet HWaddr FC:48:EF:23:39:3D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:39
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:25651369 errors:0 dropped:0 overruns:0 frame:0
TX packets:25651369 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17984026300 (17150.9 Mb) TX bytes:17984026300 (17150.9 Mb)
现在想请问一下,为什么用ethtool命令看没有配IP的网卡会显示工作模式为unknown呢!?
另外,有一些已经配了IP的网卡也是显示unknown,这样是不是就可以排除在不在用对网卡工作模式的影响呢?