Hi there, Community!
This post refers to a translation from the Cisco commands to Huawei commands on Ethernet configuration. Please find them all in the table below.
A TRANSLATION FROM THE CISCO COMMANDS TO HUAWEI COMMANDS ON ETHERNET CONFIGURATION
| Cisco commands | Huawei commands |
| channel-group trunk-id mode on | eth-trunk trunk-id |
| full-duplex | undo negotiation auto duplex full |
| spanning-tree vlan vlan-id priority priority | stp instance instance-id priority priority |
| system mtu routing 1500 | jumboframe enable value mtu mtu |
| channel-group trunk-id mode active | eth-trunk trunk-id |
| load-interval interval-time | set flow-stat interval interval-time |
| switchport mode access | port link-type access |
| switchport mode dot1q-tunnel | port link-type dot1q-tunnel |
| switchport mode trunk | port link-type trunk |
| switchport access vlan vlan-id | port link-type access port default vlan vlan-id |
| switchport trunk allowed vlan vlan-id1-vlan-id2 | port link-type trunk port trunk allow vlan vlan-id1 to vlan-id2 |
| switchport trunk allowed vlan add vlan-id2 | port link-type trunk port trunk allow-pass vlan vlan-id1 to vlan-id2 |
| switchport trunk native vlan vlan-id1 | port link-type trunk port trunk pvid vlan vlan-id1 |
| no speed | negotiation auto |
| port-channel load-balance dst-ip | load-balance dst-ip |
| port-channel load-balance dst-load-balance dst-ip | load-balance dst-ip |
| port-channel load-balance src-dst-ip | load-balance src-dst-ip |
| spanning-tree bpduguard enable | stp edged-port enable bpdu enable |
| spanning-tree portfast | stp edged-port enable bpdu enable |
| spanning-tree portfast edge | stp edged-port enable bpdu enable |
| spanning-tree link-type point-to-point | stp point-to-point force-true |
| l2protocol-tunnel cdp | l2protocol-tunnel cdp enable |
| l2protocol-tunnel stp | l2protocol-tunnel stp enable |
| speed nonegotiate | undo negotiation auto |
| speed {10|100|1000} | undo negotiation auto speed {10|100|1000} |
| speed auto {10|100|1000} | auto speed {10|100|1000} |
| monitor session interface-number source remote vlan vlan-id1 | interface gigabitEthernet interface-number port hybrid untagged vlan vlan-id1 |
| mtu jumboframe | jumboframe enable jumboframe |
| system jumbomtu value | jumboframe enable value |
| system mtu jumbo value | jumboframe enable value |
| l2protocol-tunnel vtp | stp disable l2protocol-tunnel vtp enable |
| duplex {half|full} | undo negotiation auto duplex {half|full} |
| duplex auto | undo auto duplex |
| half-duplex | undo negotiation auto duplex half |
| interface TenGigabitEthernet interface-number | interface XGigabitEthernet interface-number |
| interface TenGigabitEthernet interface-number | interface XGigabitEthernet interface-number |
| speed auto | undo auto speed |
| medium-type fiber | combo-port fiber |
| no mdix auto | undo mdi |
| carrier-delay msec 0 | damping time 0 |
| carrier-delay sec delay-time | damping time delay-time |
| channel-group number mode desirable | interface eth-trunk number mode lacp-static |
| lacp port-priority priority-value | lacp priority priority-value |
| interface Ethernet interface-number | interface Ethernet interface-number |
| interface Ethernet interface-number | interface Ethernet interface-number |
| interface FastEthernet interface-number | interface Ethernet interface-number |
| interface FastEthernet interface-number | interface Ethernet interface-number |
| interface GigabitEthernet interface-number | interface GigabitEthernet interface-number |
| interface GigabitEthernet interface-number | interface GigabitEthernet interface-number |
| shutdown | shutdown |
| vlan configuration vlanid1-vlanid2 | vlan batch vlanid1 to vlanid2 |
| spanning-tree mode {pvst|mst|rapid-pvst} | stp mode {stp|mstp|rstp} stp enable |
| spanning-tree mst instance-id priority priority | stp instance instance-id priority priority |
| spanning-tree mst instance-id root {primary|secondary} | stp instance instance-id root {primary|secondary} |
| spanning-tree portfast bpduguard default | stp bpdu-protection |
| spanning-tree portfast edge bpduguard default | stp bpdu-protection |
| lacp system-priority priority | lacp priority priority |
| spanning-tree mst configuration | stp region-configuration |
| spanning-tree vlan vlan-id priority priority | stp region-configuration instance instance-id vlan vlan-id active region-configuration stp instance instance-id root primary |
| spanning-tree vlan vlan-id root primary | stp region-configuration instance instance-id vlan vlan-id active region-configuration stp instance instance-id root primary |
| name name | region-name name active region-configuration |
| instance instance-id vlan vlanid1-vlanid2 | instance instance-id vlan vlanid1 to vlanid2 active region-configuration |
| policy-map policy-name | traffic policy policy-name classifier classifier-name behavior behavior-name |
| vlan vlan-id | vlan vlan-id |
| interface Vlan vlan-id | interface vlanif vlan-id |
| [no] switchport | [undo] portswitch |
| switchport voice vlan vlan-id | voice-vlan vlan-id enable |
| switchport trunk allowed vlan add vlan-id1[,vlan-id2] | port link-type trunk port trunk allow-pass vlan vlan-id1 [vlan-id2] |
| spanning-tree bpdufilter enable | stp bpdu-filter enable |
| interface port-channel trunk-id | interface eth-trunk trunk-id |
| port-channel load-balance method | load-balance method |
This would be all on the translation from the Cisco commands to Huawei commands on Ethernet configuration. Thanks for reading this post!


