查看GV Orbit网卡支持的传输速率的方法
GV Orbit系统中已经安装了ethtool工具,所以可以使用ethtool来查看网卡支持的传输速率等详细属性
具体步骤
- 使用ifconfig查看系统所有网卡信息,找到你想具体查看的网卡。
比如,运行ifconfig后发现有一个叫做p4p1的网卡
p4p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1e12:57d5:29bb:6ca1 prefixlen 64 scopeid 0x20<link>
inet6 2408:8207:242e:3b70:fc3a:8444:70ae:39ff prefixlen 64 scopeid 0x0<global>
ether 64:00:6a:03:b2:73 txqueuelen 1000 (Ethernet)
RX packets 39185 bytes 4753825 (4.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29149 bytes 9122968 (8.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ifconfig -a可以查看所有网卡,包括未启用的网卡
- 运行ethtool p4p1来看网卡支持的传输速率
[nick@bogon ~]$ ethtool p4p1
Settings for p4p1:
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
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes