设置网络接口的双工模式(全双工/半双工)以及速率,通常取决于你使用的操作系统。下面分别介绍在 Linux、Windows 和 网络交换机(以 Cisco 为例) 上的常见设置方法。
ethtool eth0
关注输出中的:
SpeedDuplex# 设置为 1000Mbps 全双工
ethtool -s eth0 speed 1000 duplex full autoneg off
不同发行版方式不同:
编辑 /etc/sysconfig/network-scripts/ifcfg-eth0:
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
network:
version: 2
ethernets:
eth0:
duplex: full
speed: 1000
Speed & Duplex100 Mbps Full Duplex1.0 Gbps Full Duplex# 查看
Get-NetAdapterAdvancedProperty -Name "Ethernet"
# 设置
Set-NetAdapterAdvancedProperty -Name "Ethernet" `
-DisplayName "Speed & Duplex" `
-DisplayValue "1.0 Gbps Full Duplex"
interface GigabitEthernet0/1
speed 1000
duplex full
no shutdown
⚠️ 注意:
✅ 推荐配置
❌ 不建议
如果你能告诉我:
我可以给你更精确的操作步骤。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。