#

Thursday, December 31, 2020

Getting Started with Huawei Command Line (VRP) on AR1000v

This post is about 1st hands on experience on the command line interface of Huawei routers, which is called VRP (Versatile Routing Platform). This is like the IOS of Cisco, JUNOS of Juniper etc but it seems the syntax is bit different from those, so I am going through some initial configurations like router management to understand how it works.

I am doing this on EVE-NG and the exact image I am using is huaweiar1k-5.170 which is used in AR1000v router. I think this is the Huawei's equivalent for Cisco's CSR1000v, the cloud services router..

It will start booting saying "Booting Wind River Linux" & it will take sometime showing lot of console messages and finally will rest asking to give the credentials..
















Following are the default login credentials.
username: admin
password: Admin@huawei.com / admin@huawei.com / Admin@huawei / admin@huawei / admin

But the image I use in EVE-NG which I got from somewhere internet has different credentials like the following, so may be in your lab also the following will be the credentials.
username: super
password: super

After you login with default credentials, the 1st thing you will have to do will be to change the password..

You will notice that the default mode is <Huawei> which is called user-view (this is like the privilege mode of Cisco Cisco#) and the config mode is [Huawei] which is called system-view (this is like the config mode of Cisco Cisco(config)#). Also note that the display commands can be issued at system-view mode too.

Command help is just like in Cisco where you hit ? and it lists down the commands and there is context sensitive help with command completion with 'Tab'

Show commands now starts with display, let's see the version info with display version command..












Now let's see the configured interface IPs..















Let's configure an IP address to g0/0/0 interface.






There is a helpful command in VRP which Cisco does not have, which is display this command. It shows the configuration of the current section where the user is in right now. As an example, if I hit it here, the configuration in interface g0/0/0 will be shown..








Let's configure something like console password and idle-timeout for console to 5 mins. idle-timeout 5 0  means 5 mins and 0 seconds..









Let's configure a login banner..
Command is header shell information "TEXT"













Now you can see it works when you logout and login again using the console password configured..
You can also upload a text file for the banner too.

Now let's view the routing table,











And the ARP table,






This 100.1.1.50 is a PC I have which is connected to the Gi0/0/0 interface and it is learned because I pinged from it for testing..

Basic ping and trace commands are like the following..










If you want to change the hostname, following command will do that, 
sysname NAME

Finally  save command will save the current configuration and following commands will view the config files,
display current-configuration
display saved-configuration

I think this is enough to getting started with Huawei VRP, also unlike in Cisco routers, there is a web GUI too for this. We can use the IP address I configured to access it.













Username to the Web GUI is just same credentials as the CLI, but If you use the EVE image like me, the username super will not be able to login to the Web UI. For that you have to give that user the service type of http like the following and everything will be fine..

[Huawei]aaa
[Huawei-aaa]local-user super service-type telnet terminal http

2 comments: