Huawei H3C Cisco Command Equivalents: VRP and Comware CLI - 夜莺博客

Huawei H3C Cisco Command Equivalents: VRP and Comware CLI

Network engineers who learned Cisco IOS and then sit down in front of a Huawei VRP or H3C Comware switch usually find the CLI oddly familiar — Comware was historically derived from the same command family as VRP, and both vendors borrowed the IOS concept of hierarchical modes. The differences are systematic rather than random: enable becomes system-view, show becomes display, no becomes undo and write memory becomes save. This article gives the practical mapping table that makes the transition painless.

Command Mode Equivalents

  • Cisco enable / privileged EXEC → Huawei/H3C user view (<HUAWEI>).
  • Cisco configure terminal → Huawei/H3C system view (system-view), prompt [HUAWEI].
  • Cisco interface GigabitEthernet0/0/1interface GigabitEthernet0/0/1 (identical syntax).
  • Cisco exit/endquit / return.
  • Cisco ? help and tab completion → identical.

The Core Command Mapping

Task Cisco IOS Huawei VRP / H3C Comware
Hostname hostname SW1 sysname SW1
Save config write memory save
Show running config show running-config display current-configuration
Show version show version display version
Interface summary show ip interface brief display ip interface brief
Routing table show ip route display ip routing-table
VLAN list show vlan display vlan
Log buffer show logging display logbuffer
MAC table show mac address-table display mac-address
Negate a command no <command> undo <command>
Erase startup config erase startup-config reset saved-configuration
Reload reload reboot
Ping / traceroute ping / traceroute ping / tracert

VLAN and Interface Configuration Side by Side

Access port configuration on all three platforms follows the same shape, differing only in the keywords:

! Cisco IOS
SW1(config)# vlan 10
SW1(config-vlan)# name servers
SW1(config)# interface GigabitEthernet1/0/1
SW1(config-if)# switchport mode access
SW1(config-if)# switchport access vlan 10

! Huawei VRP
[HUAWEI] vlan 10
[HUAWEI-vlan10] name servers
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type access
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10

! H3C Comware
[H3C] vlan 10
[H3C-vlan10] name servers
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1] port link-type access
[H3C-GigabitEthernet1/0/1] port access vlan 10

The key trap: Huawei uses port default vlan while H3C uses port access vlan for the same access-port concept, and trunk allowed lists differ as port trunk allow-pass vlan (both) with Huawei's port trunk pvid vlan versus H3C's native VLAN handling. Our H3C vs Huawei command comparison covers these differences in full, and the VRP side-by-side reference adds the detail IOS migrants need.

原文链接:https://blog.router-switch.com/2023/06/master-the-basic-command-configurations-of-huawei-h3c-ruijie-and-cisco-switches-with-router-switch-com/