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 / 问题

问题[ethtool](server)

Martin Hope
CrazyRabbit
Asked: 2021-09-24 23:15:38 +0800 CST

为什么 NIC 环参数未预先设置为其硬件最大功能?

  • 2

检查网卡环形缓冲区:

# ethtool -g eth0
Ring parameters for eth0:
Pre-set maximums:
RX:        4096
RX Mini:      0
RX Jumbo:     0
TX:        4096
Current hardware settings:
RX:         256
RX Mini:      0
RX Jumbo:     0
TX:         256

可以将“RX/TX”设置为“预设最大值”中显示的限制,例如:

# ethtool -G eth0 rx 4096 rx 4096

问题是:默认情况下;为什么这些设置如此之低(在我拥有的每台服务器中,它们都是 256)而不是更高的值,或者它们的硬件最大能力?增加这些值是否有任何缺点(如果是,那么?)?

networking nic ethtool
  • 1 个回答
  • 599 Views
Martin Hope
aschkant
Asked: 2021-09-01 00:44:52 +0800 CST

Linux 链接速度广告

  • 0

据我所知,以下命令将设置自动协商广告的速度和双工。

ethtool -s eth0 advertise 0x020

其中根据以下指南指示0x020:1000baseT Full

advertise N
    Sets the speed and duplex advertised by autonegotiation.  The 
    argument is a hexadecimal value using one or a combination of
    the following values:
      0x001       10baseT Half
      0x002       10baseT Full
      0x004       100baseT Half
      0x008       100baseT Full
      0x010       1000baseT Half       (not supported by IEEE standards)
      0x020       1000baseT Full

我应用的命令1000baseT Full只做广告。我想知道如何将服务器设置为同时宣传多种链接模式1000baseT Full 100baseT Full 100baseT Half。

我已经尝试对所需的链接模式一一应用相同的命令,但是每次新的链接模式都会替换当前模式而不是添加到其中。

我还提到了链接模式的十六进制代码,如下所示,但它返回错误。

ethtool -s eth0 advertise 0x020 0x008 0x004
    ethtool: bad command line argument(s)
    For more information run ethtool -h

当所有广告都发布后,它们会显示在ethtool输出中,如下所示:

ethtool eth0
Settings for eth0:
        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:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full

请问有什么想法吗?

linux-networking ethtool
  • 1 个回答
  • 1171 Views
Martin Hope
HypoGump
Asked: 2020-08-01 03:54:55 +0800 CST

如何将流引导到特定的 vf 队列?

  • 0

SR-IOV允许我们从 PF 创建 VF,现在我想通过 Flow Director 将一些流引导到 VF。

这是ethtool帮助信息

action N
    Specifies the Rx queue to send packets to, or some other action.
    loc N
    Specify the location/ID to insert the rule. This will overwrite any rule present in that location and will not go through any of the rule ordering process.

    delete N
    Deletes the RX classification rule with the given ID.

我真的很困惑如何设置 的值,action以便可以将流匹配过滤器定向到特定的 VF。

nic sr-iov ethtool
  • 1 个回答
  • 207 Views
Martin Hope
SYS64738
Asked: 2020-05-10 11:34:38 +0800 CST

错误的链接速度;如果使用 ethtool 手动设置速度失败会怎样?

  • 1

我有一个远程 xen 服务器,我注意到 autoneg 中的速度链接是 100 全双工;我所有的网络都是 1000 全双工;你知道这是什么原因吗?Ethtool 在我的服务器广告速度和链接合作伙伴广告速度(我的交换机)上都提到了,以及其他较慢的速度,还有 1000 全双工。我很想尝试以这种方式手动强制速度:

ethtool -s eth0 speed 1000 duplex full autoneg off

我可以尝试的另一个命令,但我不确定它是否有用,是:

ethtool -s eth0 speed 1000 duplex full autoneg on

显然我担心的是链接会中断,这是一个远程服务器;我可以访问它(距离它只有 2 英里),但我宁愿避免它(在家工作);

我只想测试手动速度并在失败时反转到 autoneg,我正在考虑使用 crontab 每小时设置一次 autoneg,但我觉得这不是一个好策略。

在这种情况下你会怎么做?

performance xenserver ethtool
  • 1 个回答
  • 409 Views
Martin Hope
King David
Asked: 2020-02-26 01:29:06 +0800 CST

如何验证 TCP 分段卸载的状态

  • 1

我们在 linux rhel 机器上执行以下操作

ethtool -K ifcfg-478476 tso off

现在假设我们要验证设置

如何使用 ethtool 或其他 cli 进行检查?

我们试着

ethtool -k ifcfg-478476 | grep -i tso

但我们没有得到状态

任何想法 ?

注意 -ifcfg-478476是 eth 链接

redhat networking dmesg linux-networking ethtool
  • 1 个回答
  • 2764 Views
Martin Hope
Tarandeep Gill
Asked: 2012-06-19 08:08:27 +0800 CST

1000T与10000T“速度不匹配”?

  • -1

我在数据中心有一台服务器,它有一个支持光纤的以太网 NIC 卡。我有一个 1Gbps 的连接,我的 ISP 要求我确保我的设备上的设置如下:

Full Duplex, 1000meg and NO Auto Negotiation

但是,我才发现我的网卡只支持10000T。这是来自的输出ethtool eth2

Settings for eth2:
    Supported ports: [ FIBRE ]
    Supported link modes:   10000baseT/Full 
    Supports auto-negotiation: No
    Advertised link modes:  10000baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: Unknown!
    Duplex: Unknown! (255)
    Port: FIBRE
    PHYAD: 0
    Transceiver: external
    Auto-negotiation: off
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000014 (20)
                   link ifdown
    Link detected: no

我还没有将电缆连接到 NIC。ISP端配置1000T而我的网卡只支持10000T,你觉得会不会出现“速度不匹配”?

PS:网卡的品牌/型号是:Mellanox ConnectX-3 En。

performance ethernet 10gbethernet ethtool
  • 2 个回答
  • 1793 Views
Martin Hope
altman
Asked: 2012-06-09 00:38:37 +0800 CST

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

  • 6

我用 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

谁能告诉我哪里错了?

debian linux-networking ethtool
  • 2 个回答
  • 33642 Views
Martin Hope
Dave Cheney
Asked: 2009-06-16 05:18:50 +0800 CST

我应该信任哪个工具,mii-tool 和 ethtool 不会显示相同的值

  • 10

我们的托管公司为我们的服务器提供所有交换基础设施。连接到的专用网络eth2 应该是 GbE。最近我一直怀疑某些东西配置错误,因为仙人掌图似乎从未在链接上显示超过 100mbit 的流量。

进一步挖掘我发现mii-tool并且ethtool不同意链接速度。

# mii-tool eth2
eth2: negotiated 100baseTx-FD flow-control, link ok
# ethtool eth2 
Settings for eth2:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Advertised auto-negotiation: Yes
    Speed: 1000Mb/s
    Duplex: Full

我应该信任哪个工具?

linux ethernet gigabit-ethernet ethtool
  • 3 个回答
  • 19032 Views

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