As shown in Figure 1, Server1, Server2, and Server3 form a server cluster and connect to GE0/0/1, GE0/0/2, and GE0/0/3 of the switch respectively. The switch connects to the Internet through GE0/0/4.
Due to limitations of network adapters on the servers, GE0/0/1, GE0/0/2, and GE0/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 GE0/0/1, GE0/0/2, and GE0/0/3. When the three servers concurrently send data at the rate of 1000 Mbit/s, the outbound interface GE0/0/4 will be congested. Users require that packet loss and congestion do not occur.
The configuration roadmap is as follows:
Set the rate to 100 Mbit/s for the interfaces working in non-auto-negotiation mode to avoid congestion on the outbound interface.
Set the duplex mode to full-duplex for the interfaces working in non-auto-negotiation mode to avoid packet loss.
<HUAWEI> system-view [HUAWEI] sysname Switch [Switch] port-group portgroup1 [Switch-port-group-portgroup1] group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/3
[Switch-port-group-portgroup1] undo negotiation auto [Switch-GigabitEthernet0/0/1] undo negotiation auto [Switch-GigabitEthernet0/0/2] undo negotiation auto [Switch-GigabitEthernet0/0/3] undo negotiation auto [Switch-port-group-portgroup1] speed 100 [Switch-GigabitEthernet0/0/1] speed 100 [Switch-GigabitEthernet0/0/2] speed 100 [Switch-GigabitEthernet0/0/3] speed 100 [Switch-port-group-portgroup1] duplex full [Switch-GigabitEthernet0/0/1] duplex full [Switch-GigabitEthernet0/0/2] duplex full [Switch-GigabitEthernet0/0/3] duplex full [Switch-port-group-portgroup1] quit
Run the display interface GigabitEthernet 0/0/1 command in any view to check the interface rate and duplex mode.
[Switch] display interface gigabitethernet 0/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 0/0/2 and display interface GigabitEthernet 0/0/3 commands on GE0/0/2 and GE0/0/3 respectively to check interface working information.
Configuration file of the Switch
# sysname Switch # interface GigabitEthernet0/0/1 undo negotiation auto speed 100 # interface GigabitEthernet0/0/2 undo negotiation auto speed 100 # interface GigabitEthernet0/0/3 undo negotiation auto speed 100 # port-group portgroup1 group-member GigabitEthernet0/0/1 group-member GigabitEthernet0/0/2 group-member GigabitEthernet0/0/3 # return