Got it

Configuring Multiple interfaces on Huawei switches at the same time by using port-group

Latest reply: Jan 17, 2022 12:44:05 930 17 16 0 1


Sometime you want multiple Huawei switch ports to share the exact same configuration. Instead of configuring interfaces one by one it is easier to configure multiple interfaces at the same time. It also improves the efficiency.

 

Here is an example of adding 10 Ethernet interfaces to one port-group to be configured at the same time:

 

[Hemin-SW1]port-group Hemin

[Hemin-SW1-port-group-hemin]         

[Hemin-SW1-port-group-hemin]group-member Ethernet 0/0/1 to Ethernet 0/0/10

[Hemin-SW1-port-group-hemin]port link-type access

[Hemin-SW1-Ethernet0/0/1]port link-type access

[Hemin-SW1-Ethernet0/0/2]port link-type access

[Hemin-SW1-Ethernet0/0/3]port link-type access

[Hemin-SW1-Ethernet0/0/4]port link-type access

[Hemin-SW1-Ethernet0/0/5]port link-type access

[Hemin-SW1-Ethernet0/0/6]port link-type access

[Hemin-SW1-Ethernet0/0/7]port link-type access

[Hemin-SW1-Ethernet0/0/8]port link-type access

[Hemin-SW1-Ethernet0/0/9]port link-type access

[Hemin-SW1-Ethernet0/0/10]port link-type access

[Hemin-SW1-port-group-hemin]

[Hemin-SW1-port-group-hemin]port default vlan 10

[Hemin-SW1-Ethernet0/0/1]port default vlan 10

[Hemin-SW1-Ethernet0/0/2]port default vlan 10

[Hemin-SW1-Ethernet0/0/3]port default vlan 10

[Hemin-SW1-Ethernet0/0/4]port default vlan 10

[Hemin-SW1-Ethernet0/0/5]port default vlan 10

[Hemin-SW1-Ethernet0/0/6]port default vlan 10

[Hemin-SW1-Ethernet0/0/7]port default vlan 10

[Hemin-SW1-Ethernet0/0/8]port default vlan 10

[Hemin-SW1-Ethernet0/0/9]port default vlan 10

[Hemin-SW1-Ethernet0/0/10]port default vlan 10

[Hemin-SW1-port-group-hemin]

[Hemin-SW1-port-group-hemin]

 

 

To check what we have done above and verify it:

<Hemin-SW1>display current-configuration | beg port-group

port-group hemin

 group-member Ethernet0/0/1

 group-member Ethernet0/0/2

 group-member Ethernet0/0/3

 group-member Ethernet0/0/4

 group-member Ethernet0/0/5

 group-member Ethernet0/0/6

 group-member Ethernet0/0/7

 group-member Ethernet0/0/8

 group-member Ethernet0/0/9

 group-member Ethernet0/0/10

#

return

<Hemin-SW1>display port-group all

Portgroup: hemin

Ethernet0/0/1

Ethernet0/0/2

Ethernet0/0/3

Ethernet0/0/4

Ethernet0/0/5

Ethernet0/0/6

Ethernet0/0/7

Ethernet0/0/8

Ethernet0/0/9

Ethernet0/0/10

<Hemin-SW1>

<Hemin-SW1>

<Hemin-SW1>display current-configuration interface Ethernet

#

interface Ethernet0/0/1

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/2

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/3

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/4

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/5

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/6

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/7

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/8

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/9

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/10

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/11

#

interface Ethernet0/0/12

#

interface Ethernet0/0/13

#

interface Ethernet0/0/14

#

interface Ethernet0/0/15

#

interface Ethernet0/0/16

#

interface Ethernet0/0/17

#

interface Ethernet0/0/18

#

interface Ethernet0/0/19

#

interface Ethernet0/0/20

#

interface Ethernet0/0/21

#

interface Ethernet0/0/22

#

return

<Hemin-SW1>

 



#END 


Thanks for sharing!
View more
  • x
  • convention:

hemin88
hemin88 Created May 16, 2021 13:03:14 (0) (0)
Thanks for passing by and commenting  
Great sharing
View more
  • x
  • convention:

hemin88
hemin88 Created May 16, 2021 13:52:18 (0) (0)
Thanks  
Saqib123
Saqib123 Created May 16, 2021 16:39:40 (0) (0)
 
Saqib123
Saqib123 Created May 16, 2021 16:39:49 (0) (0)
 
andersoncf1
MVE Author Created May 16, 2021 16:20:18

Thanks for sharing brother
View more
  • x
  • convention:

IndianKid
Moderator Author Created May 16, 2021 16:28:40

really useful commands. thanks for the example.
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Configuring Multiple interfaces on Huawei switches at the same time by using port-group-3931639-1
View more
  • x
  • convention:

DDSN
Admin Created May 17, 2021 00:30:09

Thank for your sharing!
View more
  • x
  • convention:

andersoncf1
MVE Author Created May 28, 2021 11:03:59

Thanks for sharing. This is fantastic
View more
  • x
  • convention:

Informative. Keep up the good work.
View more
  • x
  • convention:

12
Back to list

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

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.