#查看 eno1 网卡的硬件配置信息 ethtool eno1 -a :查看网卡中接收模块 RX、发送模块 TX 和 Autonegotiate 模块的状态(启动 on 或 停用 off)。 -A :修改网卡中接收模块 RX、发送模块 TX 和 Autonegotiate 模块的状态(启动 on 或 停用 off)。 -c :display the Coalesce information of the specified ethernet card。 -C :Change the Coalesce setting of the specified ethernet card。 -g :Display the rx/tx ring parameter information of the specified ethernet card。 -G :change the rx/tx ring setting of the specified ethernet card。 -i :显示网卡驱动的信息,如驱动的名称、版本等。 -d :显示 register dump 信息,部分网卡驱动不支持该选项。 -e :显示 EEPROM dump 信息,部分网卡驱动不支持该选项。 -E :修改网卡 EEPROM byte。 -k :显示网卡 Offload 参数的状态(on 或 off),包括 rx-checksumming、tx-checksumming 等。 -K :修改网卡 Offload 参数的状态。 -p :用于区别不同 ethX 对应网卡的物理位置,常用的方法是使网卡 port 上的 led 不断的闪;N 指示了网卡闪的持续时间,以秒为单位。 -r :如果 auto-negotiation 模块的状态为 on,则 restarts auto-negotiation。 -S :显示 NIC- and driver-specific 的统计参数,如网卡接收/发送的字节数、接收/发送的广播包个数等。 -t :让网卡执行自我检测,有两种模式(offline 或 online)。 -s :修改网卡的部分配置,包括网卡速度、单工/全双工模式、mac 地址等。 [root@localhost ~]# ethtool eno1 Settings for eno1: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric 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 Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: off (auto) Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000007 (7) drv probe link Link detected: yes [root@localhost ~]# ethtool ens85np0 Settings for ens85np0: Supported ports: [ FIBRE ] Supported link modes: Not reported Supported pause frame use: Symmetric Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: Symmetric Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: Unknown! Duplex: Unknown! (255) Port: Other PHYAD: 0 Transceiver: internal Auto-negotiation: off Link detected: no [root@localhost ~]# ethtool -i ens85np1 driver: nfp version: rev-22.07-1 (o-o-t) firmware-version: 0.0.3.5 0.32 sriov-22.07.1 nic expansion-rom-version: bus-info: 0000:51:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: no supports-register-dump: yes supports-priv-flags: no