jiangshouzhuang:~ # lspci | grep Ethernet
02:00.0 Ethernet controller: ServerEngines Corp. Emulex OneConnect 10Gb NIC (be3) (rev 03)
02:00.1 Ethernet controller: ServerEngines Corp. Emulex OneConnect 10Gb NIC (be3) (rev 03)
04:00.0 Ethernet controller: Emulex Corporation Device e220 (rev 10)
04:00.1 Ethernet controller: Emulex Corporation Device e220 (rev 10)
04:00.2 Ethernet controller: Emulex Corporation Device e220 (rev 10)
04:00.3 Ethernet controller: Emulex Corporation Device e220 (rev 10)
0b:00.0 Ethernet controller: Broadcom Corporation Device 1657 (rev 01)
0b:00.1 Ethernet controller: Broadcom Corporation Device 1657 (rev 01)
0b:00.2 Ethernet controller: Broadcom Corporation Device 1657 (rev 01)
0b:00.3 Ethernet controller: Broadcom Corporation Device 1657 (rev 01)
linux84:~ # ethtool eth6
Settings for eth6:
Supported ports: [ ]
Supported link modes:
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 10000Mb/s
Duplex: Full
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes
注:
ethtool是用于查询及设置网卡参数的命令。
概要:
ethtool ethX //查询ethX网口基本设置
ethtool –h //显示ethtool的命令帮助(help)
ethtool –i ethX //查询ethX网口的相关信息
ethtool –d ethX //查询ethX网口注册性信息
ethtool –r ethX //重置ethX网口到自适应模式
ethtool –S ethX //查询ethX网口收发包统计
ethtool –s ethX [speed 10|100|1000] //设置网口速率10/100/1000M
[duplex half|full] //设置网口半/全双工
[autoneg on|off] //设置网口是否自协商
[port tp|aui|bnc|mii] //设置网口类型
[phyad N]
[xcvr internal|exteral]
[wol p|u|m|b|a|g|s|d...]
[sopass xx:yy:zz:aa:bb:cc]
[msglvl N]