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.


S12700 V200R013C00 Configuration Guide - Interface Management

This document describes the interface management configuration, including basic interface configuration, Ethernet interface configuration, and logical interface configuration.
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 2-13, 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.

Figure 2-13  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 1/0/1
    [SwitchA-GigabitEthernet1/0/1] undo portswitch
    [SwitchA-GigabitEthernet1/0/1] quit

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

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

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

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

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

  3. Verify the configuration.

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

    [SwitchA] display interface GigabitEthernet 1/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 GigabitEthernet1/0/1
 undo portswitch     
 ip address
interface GigabitEthernet1/0/2
 undo portswitch     
 ip address
interface GigabitEthernet1/0/3
 undo portswitch     
 ip address
interface GigabitEthernet1/0/4
 undo portswitch     
 ip address
Updated: 2019-04-08

Document ID: EDOC1100065645

Views: 8925

Downloads: 25

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