Black Friday: 50% off every workbook with code . Ends Nov 30, 23:59 ET. Buy Now

Last day: 50% off every workbook ends tonight at 23:59 ET. Code Buy Now

Skip to main content
beginner Free with email

Huawei Router Commands: Free PDF for SSH, PPP CHAP and OSPF

Reviewed 2026-10-04

Direct answer
The core Huawei router commands for an AR lab are system-view, sysname, interface, ip address, ospf 1, display ip routing-table and save. This free PDF puts SSH, PPP with CHAP and OSPF area 0 in paste-ready order for two Huawei AR routers.

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?

TaskCommand
Enter configuration modesystem-view
Set the router namesysname AR1
Show interface statusdisplay ip interface brief
Show the running configdisplay current-configuration
Show the saved configdisplay saved-configuration
Show the routing tabledisplay ip routing-table
Show OSPF neighboursdisplay ospf peer brief
Show PPP state on a serial linkdisplay interface Serial 1/0/0
Bring an interface upundo shutdown
Save the configsave
Wipe the saved configreset 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?

Huawei router commands compared with Cisco IOS: display replaces show and undo replaces no, so show ip route becomes display ip routing-table and no shutdown becomes undo shutdown
Two habits cover most of the switch from Cisco to Huawei: display for show, undo for no.
TaskCisco IOSHuawei VRP
Enter config modeconfigure terminalsystem-view
Set hostnamehostname R1sysname AR1
Interface summaryshow ip interface briefdisplay ip interface brief
Running configshow running-configdisplay current-configuration
Saved configshow startup-configdisplay saved-configuration
Routing tableshow ip routedisplay ip routing-table
OSPF neighboursshow ip ospf neighbordisplay ospf peer brief
Enable an interfaceno shutdownundo shutdown
Save configwrite memorysave
Rebootreloadreboot

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.

Huawei router commands lab: AR1 with GE 0/0/0 192.168.10.1/24 and Serial 1/0/0 10.10.10.1/30 as DCE, AR2 with GE 0/0/0 192.168.20.1/24 and Serial 1/0/0 10.10.10.2/30 as DTE
The lab behind the free PDF: two AR routers on a PPP serial link, one LAN each.
DeviceInterfaceIP addressRole
AR1GE 0/0/0192.168.10.1/24LAN gateway
AR1Serial 1/0/010.10.10.1/30WAN, DCE side
AR2GE 0/0/0192.168.20.1/24LAN gateway
AR2Serial 1/0/010.10.10.2/30WAN, DTE side
PC1NIC192.168.10.100/24Gateway 192.168.10.1
PC2NIC192.168.20.100/24Gateway 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 router commands for SSH: rsa local-key-pair create, then stelnet server enable, then protocol inbound ssh on the VTY lines, with the AAA and ssh user created in between
Generate the RSA key first. Create the AAA and ssh user between steps 2 and 3.
<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 ssh switches 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 enable is 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?

Huawei router commands to verify the lab: display interface Serial 1/0/0 shows LCP and IPCP opened, display ospf peer brief shows Full, display ip routing-table shows 192.168.20.0/24 via OSPF
Check PPP, the OSPF neighbour and the learned route before you run any ping test.

Run display ospf lsdb brief too if you want the link-state database. Then test in order and stop at the first failure:

  1. ping 192.168.10.1 from AR1 (the LAN interface is up)
  2. ping 10.10.10.2 from AR1 (the PPP link works)
  3. ping 192.168.20.1 from AR1 (OSPF learned the far LAN)
  4. ping 192.168.20.100 from AR1 (the path reaches PC2)
  5. ping 192.168.20.100 from 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.

Frequently asked questions

How do I configure a Huawei router?
Enter system-view, name the router with sysname, set interface IPs with ip address, add a routing protocol such as ospf 1, then run save. The PDF gives the full paste-ready sequence for two AR routers.
What are the commands to check a Huawei router's status?
display ip interface brief for interfaces, display ip routing-table for routes, display ospf peer brief for OSPF neighbours and display current-configuration for the running config.
How do I enable SSH on a Huawei router?
Run rsa local-key-pair create and stelnet server enable, create an AAA user with service type ssh, bind it with ssh user, and set protocol inbound ssh on the VTY lines.
How do I check if SSH is enabled on a Huawei router?
Run display ssh server status for the SSH version and STelnet state, and display ssh user-information for the users.
How do I save the configuration on a Huawei router?
Run return to get to user view, then save and answer y. display saved-configuration shows what's stored.
Do the same commands work on Huawei switches?
Most basics do: system-view, sysname, display, save and the STelnet steps. Serial, PPP and router-only features don't apply to switches.
Can I practise these commands without a real router?
Yes, in Huawei's simulators. The classic eNSP hasn't been updated since 2019, and Huawei's newer eNSP Pro (released June 2023) is available only through Huawei partner accounts.
Is this about the Huawei Wi-Fi router at 192.168.100.1?
No. This page covers Huawei AR enterprise routers you configure from the command line. Home Wi-Fi routers use a web login and a different set of settings.

Questions about this PDF

No questions yet. Ask the first one.

Ask a question

Your email address won't be published. We review every question before it appears. How we handle your data. Required fields are marked

Reviewed by

CCDE/CCIE

How to cite this resource

SMEnode Labs (2026). Huawei Router Commands: Free PDF for SSH, PPP CHAP and OSPF. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/huawei-router-commands/

APA

SMEnode Labs. (2026). Huawei Router Commands: Free PDF for SSH, PPP CHAP and OSPF. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/huawei-router-commands/

BibTeX

@misc{smenodelabs2026,
  title = {Huawei Router Commands: Free PDF for SSH, PPP CHAP and OSPF},
  author = {{SMEnode Labs}},
  year = {2026},
  url = {https://smenode-labs.com/free-pdf/networking/huawei-router-commands/},
  note = {SMEnode Labs}
}