V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
nikoo
V2EX  ›  问与答

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

  •  
  •   nikoo · 2018-03-25 06:43:14 +08:00 · 2302 次点击
    这是一个创建于 2237 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一台 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 条回复    2018-03-25 08:23:09 +08:00
    bsder
        1
    bsder  
       2018-03-25 07:52:03 +08:00 via iPhone   ❤️ 1
    让机房换网线。可能网线不达标。
    azuis
        2
    azuis  
       2018-03-25 08:03:48 +08:00 via iPhone   ❤️ 1
    联系机房问问是不是交换机上给你限制 100M 了。
    nikoo
        3
    nikoo  
    OP
       2018-03-25 08:09:43 +08:00
    @bsder @azuis 谢谢,也就是说,如果交换机上没有限制 100M,并且网线正确的话,以上配置并且 Auto-negotiation: on 情况下并且支持千兆,按理说是应会自动切换至 Speed: 1000Mb/s 而不需要手动命令来切换对吗?
    azuis
        4
    azuis  
       2018-03-25 08:23:09 +08:00 via iPhone   ❤️ 1
    @nikoo 没错的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5051 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:56 · PVG 17:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.