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

CloudEngine 12800 and 12800E V200R003C00

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).
Configuring an Ethernet Layer 3 Sub-interface

Configuring an Ethernet Layer 3 Sub-interface


Users belong to different VLANs and are located on different network segments can communicate with each other by configuring Layer 3 sub-interfaces.

As shown in Figure 3-1, PC1 and PC2 belong to VLAN 10 and VLAN 20 respectively and are located on the different network segments. PC1 and PC2 connect to the Layer 3 device SwitchB through the Layer 2 device SwitchA. If only one IP address is configured for GE1/0/4 on SwitchB, PC1 and PC2 cannot communicate across VLANs. Although you can configure a secondary IP address to solve this problem, the secondary IP address becomes invalid after the primary IP address becomes invalid.

In this case, you can configure Layer 3 sub-interfaces on GE1/0/4. A Layer 3 sub-interface is independent from a main interface. Although a Layer 3 sub-interface uses the same physical parameters as the main interface, the IP address of the Layer 3 sub-interface is not affected by the change of the main interface IP address. For example, you can create two Layer 3 sub-interfaces GE1/0/4.10 and GE1/0/4.20 and specify IP addresses and for them. The two IP addresses serve as the gateway addresses for users in VLAN 10 and VLAN 20 respectively. In this way, PC1 and PC2 on different network segments can communicate across VLANs.
Figure 3-1 Configuring an Ethernet Layer 3 sub-interface

Pre-configuration Tasks

Before configuring an Ethernet Layer 3 sub-interface, complete the following tasks:

  • Correctly connecting the physical interface of the Layer 3 sub-interface

  • Configuring a Layer 3 main interface


  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subinterface-number

    The Ethernet Layer 3 sub-interface view is displayed.

    subinterface-number specifies the number of a Layer 3 sub-interface after the Ethernet interface is switched to Layer 3 mode.

  3. Run ip address ip-address { mask | mask-length } [ sub ]

    The IP address of the Ethernet Layer 3 sub-interface is configured.


    Specify the sub parameter when you need to configure a secondary IP address for the Ethernet Layer 3 sub-interface.

  4. Run dot1q termination vid vid

    The Layer 3 sub-interface is configured to terminate single-tagged packets.

  5. Run commit

    The configuration is committed.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number [.subnumber ] ] ] command to check the status of the specified Ethernet Layer 3 sub-interface.

Updated: 2019-05-05

Document ID: EDOC1100004195

Views: 18917

Downloads: 37

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next