Huawei vs Cisco: Command Line Comparison

How familiar are you with user interfaces for configuring and troubleshooting your network devices?

Every vendor has its own command line interface and it is not an easy task to master them all. But in my humble opinion, you are good to go if you could get hold of networking giants such as Cisco, Juniper and Huawei as most of the market is captured by them.

In this post, I am going to share Huawei vs Cisco: Command Line Comparison for networking professionals who are new to Huawei (or even Cisco) devices.

Huawei vs Cisco:

The Huawei command line structure is different but similar enough to be picked up extremely quickly by those used to working with Cisco IOS.

For example, instead of using the command “show”, you use the command “display” on Huawei devices.

It is important to note that “display” commands can be executed from anywhere, including inside an interface, without having to exit out of configuration mode and without having to add a prefix to the command, which is unlike Cisco wherein you need to type “do” at the start in order to execute any EXEC mode command from within the configuration mode.

The main difference between using Cisco IOS and Huawei CLI (besides the slightly different commands) is that Huawei uses only open standard protocols whereas Cisco uses a mixture of open and proprietary.

Common Command Views:

The CLI provides various command views for Cisco and Huawei devices. The most common ones are mentioned below:

Cisco:

  • User view User can type in harmless EXEC commands that won’t hurt live operations. In the user mode, you will see ‘>‘ at the command prompt.
  • Privileged mode – This mode allows users to view all configurations on the router and allow to change some less important configuration.
  • Configuration mode  This is the root access, privileged level 15 mode wherein you have full admin access to the router. You can do the configuration, change the IOS version, backup restore and much more!

Huawei:

  • User view – In the user view, you can view the running status and statistics of the device.
  • System view – In the system view, you can set the system parameters of the device and enter other function views from this view. It is like the configuration mode on Cisco devices.

Operating Techniques:

  • Incomplete Keyword – You can enter incomplete keywords on the device if the entered characters can match a unique keyword. For example, to execute the display current-configuration command, you can enter d cudi cu or dis cu
  • Full Help – Enter a question mark (?) in any command view to obtain all the commands and their simple descriptions
  • Partial Help – Enter a character string followed directly by a question mark (?) to display all keywords that begin with this character string

Basic Commands:

Let us have a look at some of the basic commands on Cisco and Huawei along with their descriptions.

Huawei vs Cisco: Command Line Comparison

Switching & Routing Commands:

Switching involves moving packets between devices on the same network. 

In switching, packets are transferred from source to destination using MAC addresses where MAC address is actually the physical address of a device. It is important to note that switching is done within the network.

Commonly used switching commands are listed in the table below:

Huawei vs Cisco: Command Line Comparison

Routing means moving packets between different networks.

A router is able to determine where to send a packet using the Network ID within the Network layer header. Router uses IP addresses at layer 3 of the OSI layer so as to determine the path that traffic is going to take. The IP address is the logical address assigned to a device. 

Some of the most frequent used routing commands are as follows:

Huawei vs Cisco: Command Line Comparison

MPLS Commands:

MPLS is an acronym for Multiprotocol Label Switching which is a type of data-carrying technique for high-performance telecommunications networks. The reason for including MPLS commands is that it is the most widely used technology in Internet Service Providers and Telecom Networks all over the world.

MPLS directs data from one network node to the next based on short path labels rather than long network addresses, avoiding complex look-ups in a routing table.

Below table shows some of the basic MPLS commands used on Core network devices.

Huawei vs Cisco: Command Line Comparison

I hope you have found this post interesting and helpful.

If you have got any questions or feedback about CLI references, you are more than welcome to drop a comment below and I will try to respond as soon as possible.

The following two tabs change content below.

Haider Khalid

IP Network Engineer, CCIE# 52939
Haider Khalid is a Cisco Certified Network Engineer (CCIE# 52939) who has worked with several ISPs & Telecom vendors in Pakistan, Middle East and the UK. He is always keen to learn new technologies and likes to share them with his peers and other people. In case of any questions or feedback, please feel free to drop a comment below or connect with him on LinkedIn.

Latest posts by Haider Khalid (see all)

3 thoughts on “Huawei vs Cisco: Command Line Comparison”

  1. Hello this I have no experience in this field nor a technology freak. However I’ve used Huwaei cellphone and this is such valuable information. You have simplified evrtything nicely.Thanks for sharing.

    Will be following your work from now on.

    Cheers
    Sibu

Leave a Reply

Your email address will not be published. Required fields are marked *