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

Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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).
Creating a Sub-VLAN

Creating a Sub-VLAN

Context

In VLAN aggregation, a sub-VLAN can contain only physical interfaces (it cannot contain VLANIF interfaces). All the interfaces in a sub-VLAN use the same IP address of the VLANIF interface associated with the super-VLAN. VLAN aggregation reduces the number of subnet IDs, subnet default gateway addresses, and directed broadcast IP addresses needed on the network segment and ensures that IP addresses are assigned efficiently.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A VLAN is created and the VLAN view is displayed.

    NOTE:

    If a device is configured with multiple VLANs, it is recommended to configure a name for each VLAN.

    To do so, run the name vlan-name command in the VLAN view. After a VLAN name is configured, run the vlan vlan-name vlan-name command in the system view to enter the corresponding VLAN view.

    The vlan configuration command completes the VLAN configurations before the VLAN is created.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Configure the link type of the interface.

    Run either of the following commands as needed:

    • To set the link type of the interface to access:

      1. Run port link-type access

        The link type of the interface is set to access.

      2. Run port default vlan vlan-id

        The interface is added to the sub-VLAN.

    • To set the link type of the interface to trunk:

      1. Run port link-type trunk

        The link type of the interface is set to trunk.

      2. Run port trunk allow-pass vlan vlan-id

        The interface is added to the sub-VLAN.

    • To set the link type of the interface to hybrid:

      1. Run port link-type hybrid

        The link type of the interface is set to hybrid.

      2. Run port hybrid tagged vlan vlan-id or port hybrid untagged vlan vlan-id

        The interface is added to the sub-VLAN.

  5. Run quit

    The system view is displayed.

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 169410

Downloads: 703

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