29.7. 使用 nmcli配置 ethtool 频道设置
通过使用 NetworkManager,您可以管理网络设备和连接。ethtool
工具管理网络接口卡的链接速度和相关设置。ethtool
处理与相关设备的 IRQ 通信,以管理连接配置文件中的相关频道设置。
步骤
显示与网络设备关联的频道:
# 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
更新网络接口的频道设置:
# nmcli connection modify enp1s0 ethtool.channels-rx 4 ethtool.channels-tx 3 ethtools.channels-other 9 ethtool.channels-combined 50
重新激活网络配置集:
# 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)
手册页