ethtool命令介绍
1、ethtool:query or control network driver and hardware settings
1)简介:ethtool用于查询和控制网络设备驱动和硬件(特别是有线的以太网设备)的设置。
2)选项:-i:查询指定设备的驱动信息;-S:查询指定设备的统计信息(rx_packets、rx_bytes等);-s:允许修改指定设备的设置,如ethtool -s eth0 speed 1000将速度设置为1000Mb/s;advertise N:指定通过自动协商机制通告的速度和双工方式。N为十六进制值,如0x008表示100Mb/s+全双工、0x020表示1000Mb/s+全双工。只指定设备时,打印其当前设置:
[root@localhost ~]# ethtool ens33 Settings for ens33: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: off (auto) Supports Wake-on: d Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes
不断学习中。。。