在Linux环境下我们可以使用系统自带工具mii-tool(这是专门设置网卡工作模式命令)来配置网卡工作模式
下面我们具体来谈下它使用思路方法
1. 查看网卡工作模式输入命令:
#mii-tool -v
eth0: negotiated 100baseTx-FD,link ok
product info:Vendor 00:05:be,model 8 rev 0
basic status: autonegotiation complete,link ok
basic mode:autonegotiation enabled.
从以上信息中可以看出这块网卡工作在100M全双工自适应模式下“100BaseTx-FD”意为100M Full Duplex
2. 更改网卡工作模式输入命令:
#mii-tool -F media [erface] media可选模式有100baseTx-FD、100baseTx-HD、10baseT-FD、10baseT-HD等
Interface代表所选择网卡如eth0、eth1等默认为eth0 例如设置网卡工作在10M半双工模式下输入命令:
#mii-tool -F 10baseT-HD eth0
3. 恢复网卡自适应工作模式输入命令: