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

CLI-based Configuration Guide - Ethernet Switching

AR650, AR1600, and AR6100 V300R003

This document describes how to configure the components for LAN services, including link aggregation groups, VLANs, voice VLANs, MAC address tables, transparent bridging, as well as GVRP, STP/RSTP, and MSTP protocols.
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).
How to Add Interfaces to a VLAN in a Batch

How to Add Interfaces to a VLAN in a Batch

You can add interfaces to a VLAN in a batch using a port group, and can directly add access interfaces to a VLAN in a batch in the system view.

  • Access interface

    # Add Eth2/0/1-Eth2/0/5 to VLAN 10 in a batch.

    • Add interfaces to a VLAN in a batch using a port group.

      <Huawei> system-view
      [Huawei] port-group pg1
      [Huawei-port-group-pg1] group-member Ethernet 2/0/1 to Ethernet 2/0/5
      [Huawei-port-group-pg1] port link-type access
      [Huawei-port-group-pg1] port default vlan 10
    • Add interfaces to a VLAN in a batch in the VLAN view.

      <Huawei> system-view
      [Huawei] vlan 10
      [Huawei-vlan10] port Ethernet 2/0/1 to 2/0/5
      NOTE:

      Before performing this operation, configure interfaces to be added to a VLAN as access interface.

  • Trunk interface

    # Add Eth2/0/1-Eth2/0/5 to VLAN 10 and VLAN 20 in a batch.

    <Huawei> system-view
    [Huawei] port-group pg1
    [Huawei-port-group-pg1] group-member Ethernet 2/0/1 to Ethernet 2/0/5
    [Huawei-port-group-pg1] port link-type trunk
    [Huawei-port-group-pg1] port trunk allow-pass vlan 10 20
  • Hybrid interface

    # Add Eth2/0/1-Eth2/0/5 to VLAN 10 and VLAN 20 in a batch.

    <Huawei> system-view
    [Huawei] port-group pg1
    [Huawei-port-group-pg1] group-member Ethernet 2/0/1 to Ethernet 2/0/5
    [Huawei-port-group-pg1] port link-type hybrid
    [Huawei-port-group-pg1] port hybrid tagged vlan 10
    [Huawei-port-group-pg1] port hybrid untagged vlan 20
Download
Updated: 2019-04-12

Document ID: EDOC1100041791

Views: 64089

Downloads: 41

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