加入收藏 | 设为首页 | 会员中心 | 我要投稿 温州站长网 (https://www.0577zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

debian set eth0 autoneg off speed 1000 duplex full:参数无效

发布时间:2021-03-15 17:12:02 所属栏目:Linux 来源:网络整理
导读:我使用debian作为我的东西,但是当我配置速度1000和双工完全时,错误发生 我使用的确切命令: ethtool -s eth0 autoneg off speed 1000 duplex full Cannot set new settings: Invalid argument not setting speed not setting duplex not setting autoneg C

我使用debian作为我的东西,但是当我配置速度1000和双工完全时,错误发生

我使用的确切命令:
ethtool -s eth0 autoneg off speed 1000 duplex full

Cannot set new settings: Invalid argument
         not setting speed
         not setting duplex
         not setting autoneg
  Cannot set new settings: Invalid argument
         not setting speed
         not setting duplex
         not setting autoneg

这是我的eth0信息.

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Full 
     Supported pause frame use: No
     Supports auto-negotiation: Yes
     Advertised link modes:  10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Full 
     Advertised pause frame use: No
     Advertised auto-negotiation: Yes
     Speed: 100Mb/s
     Duplex: Full
     Port: Twisted Pair
     PHYAD: 1
     Transceiver: internal
     Auto-negotiation: on
     MDI-X: Unknown
     Supports Wake-on: g
     Wake-on: d
     Link detected: yes


      driver: bnx2
      version: 2.1.11
      firmware-version: bc 3.5.12 ipms 1.6.0
      bus-info: 0000:04:00.0
      supports-statistics: yes
      supports-test: yes
      supports-eeprom-access: yes
      supports-register-dump: yes
      supports-priv-flags: no

谁能告诉我哪个地方错了?

解决方法

你试过了吗,
sudo ethtool -s eth0 speed 1000 duplex full autoneg off

但我支持Zoredache的评论,你可能不应该强制链接速度,除非没有它,否则你应该将机器设置为autoneg,并确保网络端口设置为正确的速度.

(编辑:温州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读