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

S12700 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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 Do I Add Interfaces to a VLAN in a Batch?

How Do I 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 GE1/0/1-GE1/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 gigabitethernet1/0/1 to gigabitethernet1/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 gigabitethernet 1/0/1 to 1/0/5
      NOTE:

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

  • Trunk interface

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

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

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

    <HUAWEI> system-view
    [HUAWEI] port-group pg1
    [HUAWEI-port-group-pg1] group-member gigabitethernet1/0/1 to gigabitethernet1/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
Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 260507

Downloads: 412

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