返回信息流ethtool - Display or change ethernet card settings
显示网络端口设置功能
sunway@1[sunway]$ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes ;自动协商
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: No
Speed: 100Mb/s ;速度
Duplex: Full ;全双工
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000001 (1)
Link detected: yes ;是否有电缆插入
ethtool 设置网卡的协商模式
ethtool -s DEVNAME \
[ speed 10|100|1000 ] \
[ duplex half|full ] \
[ port tp|aui|bnc|mii|fibre ] \
[ autoneg on|off ] \
例如:
ethtool -s eth0 speed 10 duplex full ;设置速度为10M,全双工
ethtool -s eth0 autoneg on;设置自动协商
注: 如果要自己指定speed,duplex,必须先将autoneg设为off
这是一条镜像帖。来源:北邮人论坛 / linux / #13469同步于 2006/10/10
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Linux机器人发帖
用ethtool设置网卡协商模式
sunway
2006/10/10镜像同步0 回复
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。