VRP CLI Views and Core Commands
Key Takeaways
- Huawei VRP uses hierarchical CLI views: user-view (<Huawei>), system-view ([Huawei]), interface-view, and protocol or feature views such as VLAN-view.
- Enter configuration with system-view; leave one level with quit; jump all the way to user-view with return or Ctrl+Z.
- Use ? for context-sensitive help and Tab for command completion; incomplete keywords that are unique still work.
- Negate a configuration with the undo keyword placed before the original command—not Cisco-style no.
- Most interface, VLAN, routing, and AAA commands only work in the correct view; wrong-view errors are a common H12-811 trap.
Why VRP Views Matter on H12-811
Huawei devices run VRP (Versatile Routing Platform). Whether you face an S-series campus switch or an AR-series router, the CLI language is VRP. HCIA-Datacom expects you to recognize which view a command belongs to, how to move between views, and how to reverse configuration with undo. Candidates who learned Cisco IOS often fail items that look familiar but differ in prompt style and negation syntax.
Think of VRP as a tree of contexts. You always start at the root (user-view). Configuration branches open only after you enter system-view. From system-view you open more specific leaves—an Ethernet interface, a VLAN, OSPF process, AAA scheme, and so on. Commands typed in the wrong leaf are rejected or, worse, never apply where you intended.
User-View: Monitoring and Non-Disruptive Tasks
After login the default context is user-view. The prompt uses angle brackets:
<Huawei>
Huawei is the default device name; after sysname it becomes your custom hostname, for example <SW1>.
In user-view you mainly:
- Run
displaycommands to inspect state - Run connectivity tools such as
pingandtracert - Save or reset configuration files (covered in the next section)
- Reboot the device when authorized
You cannot assign an IP address, create a VLAN, or enable OSPF from user-view. If a practice item shows a prompt with angle brackets and then an interface or vlan command, the engineer is already in the wrong place.
System-View: The Configuration Root
Enter system-view with:
<Huawei> system-view
[Huawei]
The prompt switches to square brackets. Almost every lasting configuration change starts here. Global commands that live in system-view include:
| Task | Example command (system-view) |
|---|---|
| Rename the device | sysname SW1 |
| Create VLAN | vlan 10 |
| Enter an interface | interface GigabitEthernet0/0/1 |
| Start OSPF process | ospf 1 |
| Configure AAA | aaa |
| Enable SSH server features | stelnet server enable (plus related steps) |
Partial command names work when unique: sys often expands to system-view on many VRP releases. Exam wording usually shows the full keyword so you recognize the official form.
Interface-View and Other Feature Views
From system-view, open an interface:
[Huawei] interface GigabitEthernet0/0/1
[Huawei-GigabitEthernet0/0/1]
The prompt appends the interface name so you always know the active context. Interface-view commands include ip address, port link-type, port default vlan, shutdown / undo shutdown, and description text.
VLAN configuration uses a similar pattern:
[Huawei] vlan 20
[Huawei-vlan20]
Inside VLAN-view you can set a description or other VLAN attributes depending on the platform. Creating the VLAN itself is often done with vlan 20 from system-view; batch creation may use vlan batch 10 20 30 on switches that support it.
Other common leaves you will see later in the guide:
| View (prompt suffix example) | Entered with | Typical purpose |
|---|---|---|
| Interface | interface GE0/0/1 | Layer 2/3 interface settings |
| VLAN | vlan 10 | VLAN attributes |
| VLANIF | interface Vlanif10 | SVI / inter-VLAN gateway IP |
| OSPF | ospf 1 | Process-level OSPF |
| OSPF area | area 0 (under OSPF) | Area networks and stubs |
| AAA | aaa | Local users, schemes |
| ACL | acl 2000 / acl name ... | Access control entries |
You do not need every feature view memorized for this chapter, but you must internalize the pattern: system-view → feature → optional sub-view, with the prompt always reflecting depth.
Navigation: quit, return, and Ctrl+Z
VRP gives three navigation tools with different depth:
| Action | Command / key | Result |
|---|---|---|
| Leave one level | quit | Parent view only |
| Jump to user-view | return | From any depth back to <Huawei> |
| Jump to user-view | Ctrl+Z | Same effect as return |
Example path:
<Huawei> system-view
[Huawei] interface GigabitEthernet0/0/1
[Huawei-GigabitEthernet0/0/1] quit
[Huawei] quit
<Huawei>
Or, from deep interface-view, a single return or Ctrl+Z lands in user-view without stepping through every parent. Exam traps often ask what quit does versus return. quit is one step; return/Ctrl+Z is all the way home.
Typing system-view again from user-view re-enters configuration. There is no separate “enable” password mode like classic Cisco privilege escalation on every platform—privilege and authentication are modeled with user levels and AAA (covered in remote management).
Command Help and Completion
Two daily skills cut lab time and prevent syntax mistakes:
Question mark (?) — context-sensitive help:
- Alone at a prompt lists available keywords for that view
- After a partial keyword lists completions (
dis?→display) - After a full command lists next parameters (
display ip ?)
Tab completion — press Tab after a unique prefix to expand the keyword. Ambiguous prefixes print matching options instead of expanding.
Abbreviated commands work when unambiguous: dis ip int b is commonly accepted as display ip interface brief on VRP. On the exam, prefer recognizing the full form in questions; in labs, abbreviations speed practice.
The undo Keyword (Not no)
Cisco IOS uses no to reverse many settings. VRP uses undo as a prefix.
| Intent | VRP pattern |
|---|---|
| Remove an IP address | undo ip address |
| Bring an interface up after shutdown | undo shutdown |
| Delete a description | undo description |
| Remove a static route | undo ip route-static ... (match original) |
| Disable a feature | undo + the enable/feature command |
Examples:
[Huawei-GigabitEthernet0/0/1] shutdown
[Huawei-GigabitEthernet0/0/1] undo shutdown
[Huawei-GigabitEthernet0/0/1] ip address 192.0.2.1 24
[Huawei-GigabitEthernet0/0/1] undo ip address
Important exam nuances:
undois not a synonym for deleting a file or wiping NVRAM. File deletion andreset saved-configurationare separate operations.undomust be typed in the same view where the original command applies.- Some removals require repeating arguments so VRP knows which object to remove (especially routes, ACL rules, and static mappings).
If a question offers both no shutdown and undo shutdown, only undo shutdown is correct Huawei syntax.
Privilege Levels (Overview)
VRP local users can be assigned levels 0–15. Higher levels unlock more commands. Typical study association:
| Level band | Capability (conceptual) |
|---|---|
| 0–1 | Visit / monitoring-style access |
| 2–9 | Partial configuration depending on policy |
| 10–15 | Management; 15 is full control |
Exact command maps can be customized, but HCIA items usually treat level 15 as super-user style access for local AAA users used by console, Telnet, or SSH. You will configure levels when building local users in the remote-management section.
Hostname and First-Login Hygiene
After entering system-view, set a meaningful name early:
[Huawei] sysname Core-SW1
[Core-SW1]
The prompt updates immediately. Good lab hygiene also includes setting a timezone/clock when required by the platform and confirming software version with display version before major changes—both reinforce that you are on the expected image.
Exam Traps for CLI Views
- Wrong prompt for the task — interface IP only in interface-view; VLAN creation from system-view;
displayoften from user-view (though manydisplaycommands also work in system-view). quitvsreturn— one level versus all the way to user-view.undovsnovsdelete— onlyundonegates configuration lines;deletetargets files;resettargets saved configuration or statistics in specific commands.- Assuming Cisco privilege
enable— VRP flow is login → user-view →system-view. - Forgetting the prompt symbols —
< >user-view,[ ]configuration views.
Practical Drill Sequence
Memorize this muscle-memory sequence for any new device lab:
- Login → confirm
<hostname>user-view. system-view→ confirm[hostname].sysnameif needed.interface ...→ configure →quitback to system-view.returnor Ctrl+Z → user-view.displayto verify; save when the design is correct (next section).
What “Done” Looks Like for This Section
You should be able to look at any VRP prompt and answer: Am I allowed to change configuration here? How do I go up one level? How do I return to monitoring? How do I reverse the last setting without reloading? Those four questions underpin VLAN, routing, ACL, and WLAN labs throughout HCIA-Datacom.
Which prompt indicates that a Huawei VRP device is in user-view?
An engineer is in interface-view on a Huawei switch and wants to return directly to user-view in one action. Which method is correct?
On Huawei VRP, which command correctly removes an IP address from an interface?
Which statement about VRP CLI navigation is true?