AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 924241
Accepted
sherpaurgen
sherpaurgen
Asked: 2018-08-01 01:38:20 +0800 CST2018-08-01 01:38:20 +0800 CST 2018-08-01 01:38:20 +0800 CST

使用 ethtool 更改网络接口速度不起作用

  • 772

我使用的是具有 Gbps 以太网卡的 lenevo M5 服务器,但奇怪的是,当我读取 cat /sys/class/net/eth3/speed 时,它显示 100,类似地使用 ethtool 时它仅显示 100Mbps。dmesg 和 ethtool 的输出如下。知道为什么

root@server1:~# dmesg |grep eth1
[ 3.027487] tg3 0000:16:00.1 eth1: Tigon3 [partno(BCM95769) rev 5719001] (PCI Express) MAC address 08:94:ef:5d:81:a2
[ 3.027497] tg3 0000:16:00.1 eth1: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[ 3.027503] tg3 0000:16:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[ 3.027508] tg3 0000:16:00.1 eth1: dma_rwctrl[00000001] dma_mask[64-bit]
[ 28.133071] bond0: Adding slave eth1
[ 28.249876] bond0: Enslaving eth1 as a backup interface with an up link
[ 53.149602] tg3 0000:16:00.1 eth1: Link is up at 100 Mbps, full duplex
[ 53.149620] tg3 0000:16:00.1 eth1: Flow control is off for TX and off for RX
[ 53.149624] tg3 0000:16:00.1 eth1: EEE is disabled

# ethtool eth3

Settings for eth3: 
Supported ports: [ TP ] 
Supported link modes: 10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Half 1000baseT/Full 
Supported pause frame use: No 
Supports auto-negotiation: Yes 
Advertised link modes: 100baseT/Full 
Advertised pause frame use: Symmetric 
Advertised auto-negotiation: Yes 
Link partner advertised link modes: 100baseT/Half 100baseT/Full 
1000baseT/Full 
Link partner advertised pause frame use: No 
Link partner advertised auto-negotiation: Yes 
Speed: 100Mb/s 
Duplex: Full 
Port: Twisted Pair 
PHYAD: 2 
Transceiver: internal 
Auto-negotiation: on 
MDI-X: off 
Supports Wake-on: g 
Wake-on: g 
Current message level: 0x000000ff (255) 
drv probe link timer ifdown ifup rx_err tx_err 
Link detected: yes 

当我尝试使用ethtool -s eth3 speed 1000 duplex full“速度”部分更改速度时为“未知”,类似地读取(cat)文件 /sys/class/net/eth3/speed 给出无效参数。

ubuntu
  • 2 2 个回答
  • 6259 Views

2 个回答

  • Voted
  1. mx1up
    2018-08-01T13:18:51+08:002018-08-01T13:18:51+08:00

    检查路由器上特定端口的端口速度配置,它可能限制为 100Mbps,或者自动协商失败,在这种情况下您可以将其修复为 1000Mbps。

    命令取决于您的路由器,这里是一个cisco 示例。

    • 0
  2. Best Answer
    sherpaurgen
    2018-08-17T08:02:59+08:002018-08-17T08:02:59+08:00

    感谢@Diamant。在挖掘更多之后,连接服务器 eth 端口的 CABLE 之一似乎有问题,更换它解决了问题。

    • 0

相关问题

  • 无法通过 Ubuntu VPN 访问外部网络

  • ubuntu apt-get upgrade - 如何在 shell 中单击确定?

  • VirtualBox 上 Ubuntu 的访客优化技巧 [关闭]

  • 外部硬盘上的 virtualbox 虚拟硬盘驱动器(Vista 主机上的 ubuntu 客户机)

  • 如何在 Ubuntu 上挂载 LVM 分区?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve