# 配置

Source: [https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html](https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html)

这些信息说明了如何配置链路速度以及启用或禁用 EEE。

## 配置链路速度

Source: [https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html](https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html)

您可以在 `ethtool` 命令输出中从支持的链路模式配置链路速度。

### About this task

### Procedure

运行以下命令配置链路速度：
                
ethtool -s [device_name] autoneg [on/off] speed [10/100/1000/2500] duplex [full]Copy to clipboard

示例命令如下：

    ethtool -s enP1p5s0f0 autoneg on speed 2500 duplex fullCopy to clipboard

## 配置高效节能以太网

Source: [https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html](https://docs.qualcomm.com/doc/80-70014-26Y/topic/configure.html)

您可以通过执行某些功能（例如验证 EEE 的状态以及启用或禁用 EEE）来控制 EEE。

### About this task

要配置 EEE，可执行以下操作：

### Procedure

1. 运行以下命令验证 EEE 的状态：
                
ethtool --show-eee [interface]Copy to clipboard

示例命令和输出如下：

        ethtool --show-eee enP1p5s0f0
        
        EEE settings for enP1p5s0f0:
                EEE status: disabled
                Tx LPI: disabled
                Supported EEE link modes:  1000baseT/Full
                                           10000baseT/Full
                                           1000baseKX/Full
                                           10000baseKX4/Full
                                           10000baseKR/Full
                Advertised EEE link modes:  Not reported
                Link partner advertised EEE link modes:  Not reported
        Copy to clipboard
2. 运行以下命令启用 EEE：
                
ethtool --set-eee [interface] eee onCopy to clipboard

示例命令和输出如下：

        ethtool --set-eee enP1p5s0f0 eee on
        
        EEE Settings for enP1p5s0f0:
                EEE status: enabled - inactive
                Tx LPI: 17 (us)
                Supported EEE link modes:  100baseT/Full
                                           1000baseT/Full
                Advertised EEE link modes:  100baseT/Full
                                            1000baseT/Full
                Link partner advertised EEE link modes:  Not reported
        Copy to clipboard
3. 运行以下命令禁用 EEE：
                
ethtool --set-eee [interface] eee offCopy to clipboard

示例命令和输出如下：

        ethtool --set-eee enP1p5s0f0 eee off
        
        EEE Settings for enP1p5s0f0:
                EEE status: disabled
                Tx LPI: 17 (us)
                Supported EEE link modes:  100baseT/Full
                                           1000baseT/Full
                Advertised EEE link modes:  100baseT/Full
                                            1000baseT/Full
                Link partner advertised EEE link modes:  Not reported
        Copy to clipboard

Last Published: Aug 06, 2024

[Previous Topic
调通](https://docs.qualcomm.com/bundle/publicresource/80-70014-26Y/topics/bring_up.md) [Next Topic
调试](https://docs.qualcomm.com/bundle/publicresource/80-70014-26Y/topics/debug.md)