< Home

Example for Configuring the Rate and Duplex Mode in Non-Auto-Negotiation Mode

Networking Requirements

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.

Figure 1 Networking diagram for configuring the rate and duplex mode in non-auto-negotiation mode

Configuration Roadmap

The configuration roadmap is as follows:

  • Configure the switch interfaces to work in non-auto-negotiation mode to prevent the interface rate from being affected by the network adapter rate on the servers.
  • 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.

Procedure

  1. Create a port group and add GE0/0/1, GE0/0/2, and GE0/0/3 to the port group.

    <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
    

  2. Configure GE0/0/1, GE0/0/2, and GE0/0/3 to work in non-auto-negotiation mode, and set the duplex mode to full-duplex and rate to 100 Mbit/s for these interfaces in a batch.

    [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

  3. Verify the configuration.

    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

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >