You can configure the local interface to work in non-auto-negotiation mode and manually configure the interface rate and duplex mode in the following situations:
The remote device does not support auto-negotiation.
After auto-negotiation is configured, the local and remote devices cannot communicate.
After auto-negotiation is configured, the physical link between the local and remote devices is connected, but many error packets are generated or packet loss occurs.
Ethernet interfaces at both ends of a link must work in the same auto-negotiation mode. Otherwise, the interfaces may be Down.
When the working rate of a GE electrical interface is 1000 Mbit/s, the interface supports only the full-duplex mode and does not need to negotiate the duplex mode with the remote interface.
Interfaces at both ends of a link must use the same rate and duplex mode.
Rate and duplex mode of Ethernet interfaces lists the rate and duplex mode of Ethernet interfaces.
As shown in Figure 1, Server1, Server2, and Server3 form a server cluster and connect to GE1/0/1, GE1/0/2, and GE1/0/3 of the Switch respectively. The Switch connects to the Internet through GE1/0/4.
Due to limitations of network adapters on the servers, GE1/0/1, GE1/0/2, and GE1/0/3 can only work in half-duplex mode after negotiating with connected server interfaces. As a result, packet loss occurs when the service traffic volume is high. In addition, the rate is negotiated to 1000 Mbit/s for GE1/0/1, GE1/0/2, and GE1/0/3. When the three servers concurrently send data at the rate of 1000 Mbit/s, the outbound interface GE1/0/4 will be congested. Users require that packet loss and congestion do not occur.
The configuration roadmap is as follows:
Set the duplex mode to full-duplex for the interfaces working in non-auto-negotiation mode to avoid packet loss.
Set the rate to 100 Mbit/s for the interfaces working in non-auto-negotiation mode to avoid congestion on the outbound interface.
<HUAWEI> system-view [HUAWEI] sysname Switch [Switch] port-group portgroup1 //Create a permanent port group portgroup1. [Switch-port-group-portgroup1] group-member GE1/0/1 to GE1/0/3 //Add GE1/0/1,GE1/0/2, and GE1/0/3 to portgroup1.
[Switch-port-group-portgroup1] undo negotiation auto //Configure interfaces to work in non-auto-negotiation mode in a batch. [Switch-GigabitEthernet1/0/1] undo negotiation auto [Switch-GigabitEthernet1/0/2] undo negotiation auto [Switch-GigabitEthernet1/0/3] undo negotiation auto [Switch-port-group-portgroup1] duplex full //Set the duplex mode of the interfaces to full-duplex in a batch. [Switch-GigabitEthernet1/0/1] duplex full [Switch-GigabitEthernet1/0/2] duplex full [Switch-GigabitEthernet1/0/3] duplex full [Switch-port-group-portgroup1] speed 100 //Set the rate of the interfaces to 100 Mbit/s in a batch. [Switch-GigabitEthernet1/0/1] speed 100 [Switch-GigabitEthernet1/0/2] speed 100 [Switch-GigabitEthernet1/0/3] speed 100 [Switch-port-group-portgroup1] quit
After a configuration command is executed in the port group view, the device will deliver the configuration to each port in the port group and display the configuration of each port.
Run the display interface gigabitethernet 1/0/1 command in any view to check the interface rate and duplex mode.
[Switch] display interface gigabitethernet 1/0/1 ... Port Mode: COMMON COPPER Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: DISABLE Mdi : AUTO, Flow-control: DISABLE ...
The command output shows that the interface works in non-negotiation mode, the rate is 100 Mbit/s, and the duplex mode is full-duplex.
Similarly, run the display interface gigabitethernet 1/0/2 and display interface gigabitethernet 1/0/3 commands on GE1/0/2 and GE1/0/3 respectively to check interface working information.
Switch configuration file
# sysname Switch # interface GigabitEthernet1/0/1 undo negotiation auto speed 100 # interface GigabitEthernet1/0/2 undo negotiation auto speed 100 # interface GigabitEthernet1/0/3 undo negotiation auto speed 100 # port-group portgroup1 group-member GigabitEthernet1/0/1 group-member GigabitEthernet1/0/2 group-member GigabitEthernet1/0/3 # return
Interface Type |
Rate and Duplex mode |
---|---|
MultiGE interfaces |
NOTE:
|
FE electrical interfaces |
|
GE electrical interfaces |
NOTE:
|
XGE (10GE) electrical interfaces |
NOTE:
Only the ES5D21X02T01 card of the S5720-EI, the ES5D21X08T00 card of the S5730-HI, S5731-H, and S5731S-H support XGE electrical interfaces. |
FE optical interfaces |
|
GE optical interfaces |
When the transmission medium is an FE optical module:
When the transmission medium is a GE optical module:
When the transmission medium is a GE copper module:
NOTE:
By default, auto-negotiation is enabled on GE optical interfaces and rate auto-negotiation is disabled. You can run the speed auto-negotiation command to enable rate auto-negotiation. After a GE interface on the S5700-SI, S5700-EI, or S5700-HI has a GE copper module installed, the interface can go Up. However, you cannot configure the rate, duplex mode, and auto-negotiation mode on the interface. |
XGE (10GE) optical interfaces |
When the transmission medium is an XGE optical module:
When the transmission medium is a GE optical module:
When the transmission medium is a GE copper module:
When the transmission medium is an XGE/GE optical module:
NOTE:
|
25GE optical interfaces |
When the transmission medium is a 25GE optical module:
When the transmission medium is a high-speed cable:
When the transmission medium is a 25G AOC cable:
When the transmission medium is an XGE optical module:
When the transmission medium is a GE optical module:
When the transmission medium is a GE copper module:
NOTE:
|
40GE optical interfaces |
When the transmission medium is a 40GE optical module
When the transmission medium is a high-speed cable:
NOTE:
When you run the display interface command on a 40GE optical interface that has a high-speed cable installed, the command output shows that auto-negotiation is enabled. However, you cannot run the negotiation auto command to configure the auto-negotiation mode. |
100GE optical interfaces |
When the transmission medium is a 100GE optical module:
When the transmission medium is a 40GE optical module:
When the transmission medium is a high-speed cable:
NOTE:
Only the S6720-HI, S6730S-H, and S6730-H support 100GE optical interfaces. |