V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
nikoo
V2EX  ›  问与答

Ubuntu 独服的百兆网卡如何切换至千兆?

  •  
  •   nikoo · Mar 25, 2018 · 2682 views
    This topic created in 2967 days ago, the information mentioned may be changed or developed.
    一台 Ubuntu Server 独立服务器,带宽占用在 100Mbps 时即出现 ping 值飙高连接缓慢,机器是 G 口可以确定
    如何将网卡切换至 1000M 突破目前 100M 的限制?

    下面是目前机器网卡的状态

    # sudo ethtool eth0
    Settings for eth0:
    Supported ports: [ TP ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Supported pause frame use: Symmetric
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 1
    Transceiver: internal
    Auto-negotiation: on
    MDI-X: on (auto)
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000007 (7)
    drv probe link
    Link detected: yes

    # mii-tool -v
    eth0: negotiated 100baseTx-FD flow-control, link ok
    product info: vendor 00:aa:00, model 57 rev 1
    basic mode: autonegotiation enabled
    basic status: autonegotiation complete, link ok
    capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
    advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
    link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

    # cat /sys/class/net/eth0/speed
    100
    4 replies    2018-03-25 08:23:09 +08:00
    bsder
        1
    bsder  
       Mar 25, 2018 via iPhone   ❤️ 1
    让机房换网线。可能网线不达标。
    azuis
        2
    azuis  
       Mar 25, 2018 via iPhone   ❤️ 1
    联系机房问问是不是交换机上给你限制 100M 了。
    nikoo
        3
    nikoo  
    OP
       Mar 25, 2018
    @bsder @azuis 谢谢,也就是说,如果交换机上没有限制 100M,并且网线正确的话,以上配置并且 Auto-negotiation: on 情况下并且支持千兆,按理说是应会自动切换至 Speed: 1000Mb/s 而不需要手动命令来切换对吗?
    azuis
        4
    azuis  
       Mar 25, 2018 via iPhone   ❤️ 1
    @nikoo 没错的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.