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>


To have a better experience, please upgrade your IE browser.


FAQ - Port grup commands (translate Cisco to Huawei)

Publication Date:  2017-01-29 Views:  1153 Downloads:  0
Issue Description

How to translate the configuration of port grup from Cisco to Huawei 

 Switch# configure terminal

Switch(config)# interface interface-id

Switch(config-if)# switchport protected

Switch(config-if)# end

Switch# show interfaces interface-id switchport

Switch# copy running-config startup-config


Switch# configure terminal

Switch(config)# macro name macro-name

Switch(config)# end

Switch# show parser macro macro-name


Switch(config)# interface gigabitethernet0/2

Switch(config-if)# macro apply example

Switch(config-if)# end

Switch# show parser macro description


macro name example

switchport port-security maximum 1

switchport port-security violation protect

port-security mac-address 0000.1111.ffff


[Switch]port-group example

[Switch-port-group-example]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/20

[Switch-port-group-example]port-security enable

[Switch-port-group-example]port-security max-mac-num 1

[Switch-port-group-example]port-isolate enable

[Switch-port-group-example]port-security mac-address sticky 0000-1111-ffff


[Switch]display port-group example


[Huawei]port-group example

[Switch-port-group-example]group-member GigabitEthernet 0/0/2  ->to add an interface to group

[Switch-port-group-example]display this


<Switch>save ->yes