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.


NE40E V800R010C10SPC500 Configuration Guide - User Access 01

This is NE40E V800R010C10SPC500 Configuration Guide - User Access
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).
Binding Sub-interfaces to a VLAN

Binding Sub-interfaces to a VLAN

To restrict broadcast packets on a LAN and enhance the LAN security or create virtual groups, you need to configure VLANs. VLANs are applicable to only Ethernet sub-interfaces.


If users access the network by using a sub-interface, the sub-interface needs to be bound to a VLAN.

You can bind a sub-interface to a VLAN or configure QinQ on a sub-interface. When binding a sub-interface to a VLAN, you need the following parameters:

  • Sub-interface number
  • QinQ ID
  • On each main interface, you can set the user-vlan any-other on only one sub-interface. On one sub-interface, user-vlan any-other cannot be set together with user-vlan start-vlan nor user-vlan qinq.
  • The user-vlan command cannot be configured on a sub-interface of a Layer 2 interface.
  • If dot1q termination, QinQ termination, QinQ stacking, or vlan-type dot1q has been configured on a sub-interface, the user-vlan cannot be configured on this sub-interface.
  • Different sub-interfaces cannot be configured with user-side VLANs with the same VLAN ID.

Perform the following steps on the NE40E:


  1. Run system-view

    The system view is displayed.

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

    A sub-interface is created and the sub-interface view is displayed.

  3. Run user-vlan { start-vlan [ end-vlan ] [ qinq start-qinq-id [ end-qinq-id ] ] | any-other }

    A user-side VLAN is created.

  4. Run commit

    The configuration is committed.

Updated: 2019-01-03

Document ID: EDOC1100055031

Views: 17220

Downloads: 70

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