1000Mbps网卡

来源:百度知道 编辑:UC知道 时间:2024/06/23 15:32:23
我在linux下配置了一块1000Mbps的网卡,型号是INTEL PRO/1000,牵的是1000Mbps的带宽,请问我可不可以直接网卡设置为1000Mbps全双工,怎么设置,谢谢各位拉。..

现在的网卡都是启用的自协商(autoneg),若对端是1000Mbps的网口,那我这边就会自动设置为1000Mbps。
可以先用ethtool eth0(假定你要配置的网口是eth0)看下网口的当前设置,如我的就是这样的:
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes

可以从speed看到我当前是100Mbps,且自协商Auto-negotiation是打开的(on)
若要强制设为1000Mbps,可以用如下命令:
ethtool -s eth0 autoneg off speed 1000 duplex full
意思是先关闭autoneg,再手动设置速率和双工