The basic Huawei router commands are system-view (enter configuration mode), sysname (name the router), display ip interface brief (interface status), display current-configuration (running config), display ip routing-table (routes), display ospf peer brief (OSPF neighbours), undo shutdown (enable an interface) and save (write the config). Huawei’s VRP uses display where Cisco uses show, and undo where Cisco uses no. This free PDF is one paste-ready lab for two Huawei AR routers: SSH login, a PPP link with CHAP, OSPF area 0 and a five-ping test.
What Are the Basic Huawei Router Commands?
| Task | Command |
|---|---|
| Enter configuration mode | system-view |
| Set the router name | sysname AR1 |
| Show interface status | display ip interface brief |
| Show the running config | display current-configuration |
| Show the saved config | display saved-configuration |
| Show the routing table | display ip routing-table |
| Show OSPF neighbours | display ospf peer brief |
| Show PPP state on a serial link | display interface Serial 1/0/0 |
| Bring an interface up | undo shutdown |
| Save the config | save |
| Wipe the saved config | reset saved-configuration, then reboot |
Run reset saved-configuration before a lab on a used router, because old config causes odd conflicts.
Huawei vs Cisco Commands: What’s the Equivalent?

| Task | Cisco IOS | Huawei VRP |
|---|---|---|
| Enter config mode | configure terminal | system-view |
| Set hostname | hostname R1 | sysname AR1 |
| Interface summary | show ip interface brief | display ip interface brief |
| Running config | show running-config | display current-configuration |
| Saved config | show startup-config | display saved-configuration |
| Routing table | show ip route | display ip routing-table |
| OSPF neighbours | show ip ospf neighbor | display ospf peer brief |
| Enable an interface | no shutdown | undo shutdown |
| Save config | write memory | save |
| Reboot | reload | reboot |
Our Cisco commands cheat sheet PDF is a good side-by-side partner.
What’s Inside the Free Huawei Router Configuration PDF?
The PDF walks through one lab. Two Huawei AR routers (AR1220 or AR2220, or the same lab in a simulator) sit back to back over a serial link. Each serves a LAN through a Layer 2 switch and one PC.

| Device | Interface | IP address | Role |
|---|---|---|---|
| AR1 | GE 0/0/0 | 192.168.10.1/24 | LAN gateway |
| AR1 | Serial 1/0/0 | 10.10.10.1/30 | WAN, DCE side |
| AR2 | GE 0/0/0 | 192.168.20.1/24 | LAN gateway |
| AR2 | Serial 1/0/0 | 10.10.10.2/30 | WAN, DTE side |
| PC1 | NIC | 192.168.10.100/24 | Gateway 192.168.10.1 |
| PC2 | NIC | 192.168.20.100/24 | Gateway 192.168.20.1 |
It has nine sections: topology and addressing, console access, SSH, interface IPs, PPP with CHAP, OSPF, end-to-end tests, saving the config and a quick-reference table. Studying for HCIA Datacom? This lab is one scenario. The Huawei HCIA Datacom Workbook has 10 chapters and 53 topics mapped to the H12-811 exam.
How Do You Configure SSH on a Huawei Router?
Huawei calls SSH login STelnet. Generate the RSA key first, then enable the server, create the user, and lock the VTY lines to SSH.

<Huawei> system-view
[Huawei] sysname AR1
[AR1] rsa local-key-pair create
(type 2048 when it asks for the modulus bits)
[AR1] stelnet server enable
[AR1] aaa
[AR1-aaa] local-user netadmin password irreversible-cipher <YourStrongPassword>
[AR1-aaa] local-user netadmin service-type ssh
[AR1-aaa] local-user netadmin privilege level 15
[AR1-aaa] quit
[AR1] ssh user netadmin authentication-type password
[AR1] ssh user netadmin service-type stelnet
[AR1] user-interface vty 0 4
[AR1-ui-vty0-4] authentication-mode aaa
[AR1-ui-vty0-4] protocol inbound ssh
[AR1-ui-vty0-4] quit
protocol inbound sshswitches Telnet off on the VTY lines. Keep your console cable handy.- SSH 2.0 is the default server version, so no version command is needed.
ssh server compatible-ssh1x enableis only for old clients. - The lab passwords in the PDF are samples. Replace them before using any of this on a live router.
To test, run display ssh server status, then connect from the other router with stelnet 192.168.10.1. Huawei’s CLI login guide for AR1200 and AR2200 shows the same flow, and the ssh server authentication-retries command takes 1 to 5 retries, default 3.
How Do You Set Up PPP with CHAP on a Huawei Serial Link?
PPP is the link protocol, and CHAP is the handshake that proves each side knows a shared secret. The link comes up only if LCP and IPCP both open.
[AR1] interface Serial 1/0/0
[AR1-Serial1/0/0] link-protocol ppp
[AR1-Serial1/0/0] ip address 10.10.10.1 255.255.255.252
[AR1-Serial1/0/0] ppp authentication-mode chap
[AR1-Serial1/0/0] ppp chap user AR1
[AR1-Serial1/0/0] ppp chap password cipher <SharedSecret>
[AR1-Serial1/0/0] undo shutdown
Mirror it on AR2 with ppp chap user AR2 and the same secret. Then run display interface Serial 1/0/0 and look for LCP opened, IPCP opened, and ping 10.10.10.2 from AR1.
On a real V.35 cable only the DCE end takes baudrate. Per Huawei’s AR documentation, the default is 64000 bit/s, and a DTE end uses virtualbaudrate, which must match the DCE rate or packets are dropped. The router that authenticates its peer also needs that peer’s name and password in AAA with service type PPP, per Huawei’s CHAP guide for AR1200 and AR2200. The protocols are defined in RFC 1661 (PPP) and RFC 1994 (CHAP).
How Do You Configure OSPF on a Huawei Router?
Put both routers in OSPF process 1, area 0, and advertise the LAN and the WAN subnet. Huawei’s network command takes a wildcard mask: 0.0.0.255 for a /24 and 0.0.0.3 for a /30. Our subnet mask cheat sheet covers wildcard masks.
[AR1] ospf 1 router-id 1.1.1.1
[AR1-ospf-1] area 0
[AR1-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0] network 10.10.10.0 0.0.0.3
[AR1-ospf-1-area-0.0.0.0] quit
[AR1-ospf-1] silent-interface GigabitEthernet 0/0/0
[AR1-ospf-1] quit
silent-interface stops Hello packets going out the LAN port, while the subnet is still advertised. No neighbour? Check that area 0 is on both routers and the network statements match. OSPF is defined in RFC 2328, and our OSPF and MPLS LDP PDF goes deeper.
How Do You Verify the Huawei Lab Before You Ping?

Run display ospf lsdb brief too if you want the link-state database. Then test in order and stop at the first failure:
ping 192.168.10.1from AR1 (the LAN interface is up)ping 10.10.10.2from AR1 (the PPP link works)ping 192.168.20.1from AR1 (OSPF learned the far LAN)ping 192.168.20.100from AR1 (the path reaches PC2)ping 192.168.20.100from PC1 (end to end)
Then tracert 192.168.20.100 on PC1 should show AR1, AR2 and PC2. Run return and save on both routers, because an unsaved config disappears on a power cycle. If pings fail, use our network troubleshooting commands PDF.
Go deeper
One topology teaches the commands. The exam tests more.
The Huawei HCIA Datacom Workbook: 10 chapters, 53 topics mapped to H12-811.
See the Huawei HCIA Workbook →Where Does This Free PDF Stop?
It’s one lab: two routers, one OSPF area, plain Layer 2 switches.
- No VLANs, STP or Eth-Trunk on the switches
- No WLAN, NAT, IPv6 or ACLs, even though the PDF’s cover says “ACL Hardening”
- No break-and-fix labs
- No exam mapping
The Huawei HCIA Datacom Workbook covers VLANs, STP, VRRP, OSPF, WLAN, AAA, ACLs, NAT, IPv6 and SDN, with a 30-day money-back guarantee.
No questions yet. Ask the first one.