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


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


Configuration Guide - Interface Management

S1720, S2700, S5700, and S6720 V200R010C00

This document describes the principles and configurations of interfaces and provides configuration examples.

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 Switching an Interface to Layer 3 Mode

Example for Switching an Interface to Layer 3 Mode

Networking Requirements

As shown in Figure 3-15, PC1, PC2, PC3, and PC4 are on four network segments, and SwitchB, SwitchC, SwitchD, and SwitchE are access switches for these four network segments, respectively. It is required that four physical Ethernet interfaces on SwitchA be configured as gateway interfaces for these four network segments.


Only interfaces on the S5720HI, S5720EI, S6720S-EI, and S6720EI support switching between Layer 2 and Layer 3 modes.

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

Configuration Roadmap

The configuration roadmap is as follows:

  • Switch interfaces to Layer 3 mode.

  • Configure IP addresses of Layer 3 Ethernet interfaces as gateway addresses.


  1. Switch interfaces to Layer 3 mode.

    # Switch an interface to Layer 3 mode.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] undo portswitch
    [SwitchA-GigabitEthernet0/0/1] quit

    # Switch Ethernet interfaces to Layer 3 mode in a batch.

    [SwitchA] undo portswitch batch gigabitethernet 0/0/2 to 0/0/4

  2. Configure IP addresses of Layer 3 Ethernet interfaces as gateway addresses.

    # Configure the IP address of GE0/0/1 as a gateway address. The configurations of GE0/0/2, GE0/0/3, and GE0/0/4 are similar to the configuration of GE0/0/1, and are not mentioned here. For details, see the configuration files.

    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] ip address 24
    [SwitchA-GigabitEthernet0/0/1] quit

  3. Verify the configuration.

    Run the display interface GigabitEthernet 0/0/1 command in any view to check the interface working mode.

    [SwitchA] display interface GigabitEthernet 0/0/1
    Route Port,The Maximum Frame Length is 9216                                     
    Internet protocol processing : disabled                                         

    The command output shows that the interface works in Layer 3 mode.

Configuration File

Configuration file of the Switch

sysname SwitchA
interface GigabitEthernet0/0/1
 undo portswitch     
 ip address
interface GigabitEthernet0/0/2
 undo portswitch     
 ip address
interface GigabitEthernet0/0/3
 undo portswitch     
 ip address
interface GigabitEthernet0/0/4
 undo portswitch     
 ip address
Updated: 2019-12-28

Document ID: EDOC1000141936

Views: 49960

Downloads: 783

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next