更改网络带宽

更改网络带宽

我正在使用ethtool将带宽更改为 10MB/s。由于这是我第一次使用该程序,因此我正在努力寻找正确的语法来更改它。我尝试过类似的事情:

ethtool -s --change speed 10 eth0

我知道这是不正确的,因为命令行返回了一个错误。谁能建议正确的语法是什么?

答案1

按照手册页命令应该是:

ethtool -s devname speed X duplex half|full

我认为--change是长选择,也是-s短选择。

ethtool -s devname [速度 N] [双工半 | 全] [端口 tp|aui|bnc|mii] [mdix auto|on|off] [autoeg on|off] [通告 N] [phyad N] [xcvr 内部 | [外部] [wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N | 外部] [wol p|u|m|b|a|g|s|d...] msglvl 类型开|关...]

所以你可以尝试例如:

ethtool -s eth0 speed 10 duplex half

或者:

ethtool --change eth0 speed 10 duplex half

相关内容