搜索

29.7. 使用 nmcli配置 ethtool 频道设置

download PDF

通过使用 NetworkManager,您可以管理网络设备和连接。ethtool 工具管理网络接口卡的链接速度和相关设置。ethtool 处理与相关设备的 IRQ 通信,以管理连接配置文件中的相关频道设置。

步骤

  1. 显示与网络设备关联的频道:

    # ethtool --show-channels enp1s0
    Channel parameters for enp1s0:
    Pre-set maximums:
    RX:		4
    TX:		3
    Other:	   10
    Combined:  63
    
    Current hardware settings:
    RX:   	 1
    TX:   	 1
    Other:   1
    Combined:  1
  2. 更新网络接口的频道设置:

    # nmcli connection modify enp1s0 ethtool.channels-rx 4 ethtool.channels-tx 3 ethtools.channels-other 9 ethtool.channels-combined 50
  3. 重新激活网络配置集:

    # nmcli connection up enp1s0

验证

  • 检查与网络设备关联的更新频道设置:

    # ethtool --show-channels enp1s0
    Channel parameters for enp1s0:
    Pre-set maximums:
    RX:		4
    TX:		3
    Other:	  10
    Combined: 63
    
    Current hardware settings:
    RX:   	 4
    TX:   	 3
    Other:   9
    Combined:  50

其他资源

  • nmcli (5) 手册页
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.