Got it

Common VLAN Operations : Adding Interfaces to a VLAN in a Batch

Latest reply: Jun 7, 2016 13:44:00 1599 3 0 0

Configure a port group to add interfaces to a VLAN in a batch.

  • Set the link type of interfaces to access.
    <HUAWEI> system-view
    [HUAWEI] port-group pg1  //Create a port group named pg1.
    [HUAWEI-port-group-pg1] group-member gigabitethernet1/0/1 to gigabitethernet1/0/5  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to the port group.
    [HUAWEI-port-group-pg1] port link-type access  //Set the link type of gigabitethernet1/0/1 to gigabitethernet1/0/5 to access.
    [HUAWEI-port-group-pg1] port default vlan 10  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to VLAN 10.
  • Set the link type of interfaces to trunk.
    <HUAWEI> system-view
    [HUAWEI] port-group pg1  //Create a port group named pg1.
    [HUAWEI-port-group-pg1] group-member gigabitethernet1/0/1 to gigabitethernet1/0/5  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to the port group.
    [HUAWEI-port-group-pg1] port link-type trunk  //Set the link type of gigabitethernet1/0/1 to gigabitethernet1/0/5 to trunk.
    [HUAWEI-port-group-pg1] port trunk allow-pass vlan 10 20  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to VLAN 10 and VLAN 20.
  • Set the link type of interfaces to hybrid.
    <HUAWEI> system-view
    [HUAWEI] port-group pg1  //Create a port group named pg1.
    [HUAWEI-port-group-pg1] group-member gigabitethernet1/0/1 to gigabitethernet1/0/5  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to the port group.
    [HUAWEI-port-group-pg1] port link-type hybrid  //Set the link type of gigabitethernet1/0/1 to gigabitethernet1/0/5 to hybrid.
    [HUAWEI-port-group-pg1] port hybrid tagged vlan 10  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to VLAN 10 in tagged mode.
    [HUAWEI-port-group-pg1] port hybrid untagged vlan 20  //Add gigabitethernet1/0/1 to gigabitethernet1/0/5 to VLAN 20 in untagged mode.
 
 
  
  • x
  • convention:

user_1763575
Created Jun 3, 2016 01:23:14 Helpful(0) Helpful(0)

Thank you.
View more
  • x
  • convention:

user_2790689
Created Jun 3, 2016 02:11:47 Helpful(0) Helpful(0)

Good!
View more
  • x
  • convention:

daniel_Hadush
Created Jun 7, 2016 13:44:00 Helpful(0) Helpful(0)

nice!

 

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.