Cisco vs Huawei CLI Commands: The Ultimate Cheat Sheet for Network Engineers

If you’ve worked in enterprise networking long enough, you’ve almost certainly touched both Cisco and Huawei equipment. Whether you’re migrating a campus network from one vendor to the other, managing a multi-vendor environment, or just preparing for a new role — knowing both CLIs is no longer optional.

I’ve spent 15+ years deploying and managing Cisco and Huawei gear across multiple sites. The two platforms share the same networking concepts, but the syntax is just different enough to trip you up at the worst possible moment.

This cheat sheet covers the most common CLI tasks side-by-side so you can work confidently on both platforms.

Basic Navigation & System Info

TaskCisco IOS/IOS-XEHuawei VRP
Enter privileged mode
enable
system-view
(directly enters config)
Enter global config
configure terminal
(already in system-view)
Exit to previous mode
exit
quit
Return to user view
end
return
Show device info
show version
display version
Show running config
show running-config
display current-configuration
Show startup config
show startup-config
display saved-configuration
Save configuration
write memory
or
copy run start
save

Key difference: On Huawei VRP, typing

system-view
immediately puts you in configuration mode. On Cisco,
enable
gets you to privileged EXEC, then
configure terminal
gets you to global config.

Interface Configuration

TaskCiscoHuawei
Enter interface
interface GigabitEthernet0/0
interface GigabitEthernet0/0/0
Set IP address
ip address 192.168.1.1 255.255.255.0
ip address 192.168.1.1 255.255.255.0
Enable interface
no shutdown
undo shutdown
Disable interface
shutdown
shutdown
Set description
description WAN-Link-to-HQ
description WAN-Link-to-HQ
Show interface status
show interfaces GigabitEthernet0/0
display interface GigabitEthernet0/0/0
Show IP interfaces
show ip interface brief
display ip interface brief

Key difference: Huawei interface numbering uses an extra slot digit —

GigabitEthernet0/0/0
instead of Cisco’s
GigabitEthernet0/0
.
undo
is your friend on Huawei
— prefix any command with
undo
to reverse it, replacing Cisco’s
no
.

VLAN Configuration

TaskCiscoHuawei
Create VLAN
vlan 10
vlan 10
Name a VLAN
name Sales
name Sales
Show VLANs
show vlan brief
display vlan summary
Access port
switchport mode access
→
switchport access vlan 10
port link-type access
→
port default vlan 10
Trunk port
switchport mode trunk
port link-type trunk
Allow VLANs on trunk
switchport trunk allowed vlan 10,20,30
port trunk allow-pass vlan 10 20 30
Native/default VLAN
switchport trunk native vlan 99
port trunk pvid vlan 99

Routing

Static Routes

TaskCiscoHuawei
Add static route
ip route 10.0.0.0 255.0.0.0 192.168.1.254
ip route-static 10.0.0.0 255.0.0.0 192.168.1.254
Default route
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
Show routing table
show ip route
display ip routing-table

OSPF

TaskCiscoHuawei
Enable OSPF
router ospf 1
ospf 1
Set Router ID
router-id 1.1.1.1
router-id 1.1.1.1
Advertise network
network 192.168.1.0 0.0.0.255 area 0
(on interface)
ospf 1 area 0
Show OSPF neighbors
show ip ospf neighbor
display ospf peer
Show OSPF routes
show ip route ospf
display ospf routing

Key difference: Cisco advertises networks into OSPF from the router config using

network
statements. Huawei enables OSPF per interface by entering the interface and typing
ospf 1 area 0
.

Spanning Tree

TaskCiscoHuawei
Show STP status
show spanning-tree
display stp brief
Set STP mode
spanning-tree mode rapid-pvst
stp mode rstp
Set bridge priority
spanning-tree vlan 10 priority 4096
stp instance 0 priority 4096
Enable PortFast
spanning-tree portfast
stp edged-port enable
Show root bridge
show spanning-tree root
display stp root

ACLs (Access Control Lists)

TaskCiscoHuawei
Standard ACL
access-list 10 permit 192.168.1.0 0.0.0.255
acl number 2010
→
rule permit source 192.168.1.0 0.0.0.255
Extended ACL
access-list 100 permit tcp any host 10.0.0.1 eq 80
acl number 3010
→
rule permit tcp source any destination 10.0.0.1 0 destination-port eq 80
Apply to interface (in)
ip access-group 100 in
traffic-filter inbound acl 3010
Show ACLs
show access-lists
display acl all

Key difference: Huawei ACL ranges — 2000–2999 for basic (standard) ACLs, 3000–3999 for advanced (extended) ACLs. Applied with

traffic-filter
instead of
ip access-group
.

Diagnostics & Troubleshooting

TaskCiscoHuawei
Ping
ping 8.8.8.8
ping 8.8.8.8
Traceroute
traceroute 8.8.8.8
tracert 8.8.8.8
Show ARP table
show arp
display arp
Show MAC table
show mac address-table
display mac-address
Show CDP/LLDP neighbors
show cdp neighbors
display lldp neighbor
Show CPU usage
show processes cpu
display cpu-usage
Show memory usage
show processes memory
display memory-usage
Debug mode
debug ip ospf events
debugging ospf event
Stop all debug
undebug all
undo debugging all

Quick Reference: Key Concept Mapping

Cisco TermHuawei Equivalent
no
undo
show
display
configure terminal
system-view
write memory
save
switchport access vlan
port default vlan
switchport trunk allowed vlan
port trunk allow-pass vlan
ip access-group
traffic-filter
network
(OSPF)
ospf area
(per interface)
spanning-tree portfast
stp edged-port enable
native vlan
pvid

Common Mistakes When Switching Between Vendors

1. Forgetting

undo
vs
no

Typing
no shutdown
on Huawei may work on some versions, but the correct command is
undo shutdown
. Get into the habit early.

2. OSPF network advertisement
Engineers from Cisco often wonder why their Huawei OSPF adjacency won’t form. Check that you’ve enabled OSPF on the interface itself, not just in the OSPF process.

3. Interface numbering
Huawei chassis switches use slot/card/port format. A port like

GE0/0
on Cisco becomes
GE0/0/0
on Huawei. Always run
display interface brief
first.

4. Saving configuration
On both platforms, unsaved configs are lost on reload. Huawei will prompt you when rebooting if unsaved changes exist — a nice touch Cisco lacks.

5. ACL numbering ranges
Applying a basic ACL with number 3001 on Huawei makes it an advanced ACL. Always use 2000–2999 for basic, 3000–3999 for advanced.

Conclusion

The core networking concepts — routing, switching, ACLs, STP — are identical between Cisco and Huawei. It’s the syntax and command structure that trips people up. Once you internalize the key mappings (

show
→
display
,
no
→
undo
, per-interface OSPF on Huawei), you’ll move between platforms with confidence.

Bookmark this page for quick reference during your next deployment or migration.

Have a Cisco or Huawei command you’d like added to this cheat sheet? Drop it in the comments below.

Need help with a multi-vendor network migration or infrastructure project? Check out my Services page.

Scroll to Top