No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 Series Agile Switches Typical Configuration Examples

This document provides examples for configuring features in typical usage scenarios.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring the Rate and Duplex Mode of an Ethernet Interface

Example for Configuring the Rate and Duplex Mode of an Ethernet Interface

Overview

Interfaces can work in the following two duplex modes:
  • Half-duplex mode: An interface in this mode can send data only when it is not receiving data and, conversely, it can receive data only when it is not sending data. A limit on the transmission distance applies to this mode.
  • Full-duplex mode: An interface in this mode can send and receive data simultaneously. The maximum throughput in full-duplex mode is theoretically double that in half-duplex mode. There is no limit on the transmission distance in this mode.
You can configure the rate and duplex mode of an Ethernet interface working in either auto-negotiation or non-auto-negotiation mode.
  • In auto-negotiation mode, interfaces at both ends of a link negotiate the rate and duplex mode. If the negotiation succeeds, the two interfaces use the same duplex mode and rate. The auto-negotiation function takes effect only when both the connected devices support it. If the remote device does not support auto-negotiation or uses a different auto-negotiation mode, the connected interfaces may be Down.
  • 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.

Configuration Notes

  • Usage restrictions
    • 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.

Networking Requirements

As shown in Figure 6-2, 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.

Figure 6-2  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 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.

Procedure

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

    <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.

  2. Configure GE1/0/1, GE1/0/2, and GE1/0/3to 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   //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

  3. Verify the configuration.

    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.

Configuration File

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

Rate and duplex mode of Ethernet interfaces

Interface Type

Rate and Duplex mode

GE electrical interfaces

  • Transmission medium: network cable
  • Rate: 10 Mbit/s and 100 Mbit/s and 1000 Mbit/s
  • Duplex mode: full-duplex/half-duplex. When the rate is 1000 Mbit/s, only full-duplex is supported.
  • Auto-negotiation: supported
NOTE:

Physical interfaces of the X1E series cards on a modular switch do not support the half duplex mode.

GE optical interfaces

When the transmission medium is an FE optical module:
  • Rate: 100 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: not supported
When the transmission medium is a GE optical module:
  • Rate: 100 Mbit/s and 1000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: supported
When the transmission medium is a GE copper module:
  • Rate: 10 Mbit/s, 100 Mbit/s, and 1000 Mbit/s
  • Duplex mode: full-duplex/half-duplex. When the rate is 1000 Mbit/s, only full-duplex is supported.
  • Auto-negotiation: supported
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.

XGE (10GE) optical interfaces

When the transmission medium is an XGE optical module:
  • Rate: 10000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: not supported
When the transmission medium is a GE optical module:
  • Rate: 1000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: supported
When the transmission medium is a GE copper module:
  • Rate: 1000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: supported
When the transmission medium is an XGE/GE optical module:
  • Rate: 1000 Mbit/s and 10000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: not supported
NOTE:
  • The XGE interfaces on the ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, and ET1D2FW00S02 cards do not support the configuration of auto-negotiation mode and interface rate.

  • Assume that an XGE optical interface has an XGE/GE optical module installed and the interface rate is set to 1000 Mbit/s by running the speed auto 1000 command. When you run the display interface command on the interface, the command output shows that auto-negotiation is enabled. However, you cannot run the negotiation auto command to configure the auto-negotiation mode.

  • Only switches running V200R007 and later versions support XGE/GE optical modules.

40GE optical interfaces

When the transmission medium is a 40GE optical module
  • Rate: 40000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: not supported
When the transmission medium is a high-speed cable:
  • Rate: 40000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: supported
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

  • Transmission medium: 100GE optical module
  • Rate: 100000 Mbit/s
  • Duplex mode: full-duplex
  • Auto-negotiation: not supported
NOTE:

For types of cards that support 100GE optical interfaces, see 100GE Interface Card

Download
Updated: 2019-05-16

Document ID: EDOC1000069466

Views: 246741

Downloads: 1974

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next