linux设置网卡速率

客官°小女子只卖身不卖艺 2022-09-12 15:53 352阅读 0赞

ethtool

  1. # ethtool ethX //查询ethX网口基本设置
  2. # ethtool –h //显示ethtool的命令帮助(help)
  3. # ethtool –i ethX //查询ethX网口的相关信息
  4. # ethtool –d ethX //查询ethX网口注册性信息
  5. # ethtool –r ethX //重置ethX网口到自适应模式
  6. # ethtool –S ethX //查询ethX网口收发包统计
  7. # ethtool –s ethX [speed 10|100|1000]\ //设置网口速率10/100/1000M
  8. [duplex half|full]\ //设置网口半/全双工
  9. [autoneg on|off]\ //设置网口是否自协商
  10. [port tp|aui|bnc|mii]\ //设置网口类型

mii-tool

  1. # mii-tool -F media ethX
  2. media: 1000baseTx-HD, 1000baseTx-FD,
  3. 100baseT4, 100baseTx-FD, 100baseTx-HD,
  4. 10baseT-FD, 10baseT-HD,
  5. (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT
  6. # mii-tool -r ethX //恢复自适应工作模式

发表评论

表情:
评论列表 (有 0 条评论,352人围观)

还没有评论,来说两句吧...

相关阅读