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.
Last updated: July 2026

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 display commands to inspect state
  • Run connectivity tools such as ping and tracert
  • 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:

TaskExample command (system-view)
Rename the devicesysname SW1
Create VLANvlan 10
Enter an interfaceinterface GigabitEthernet0/0/1
Start OSPF processospf 1
Configure AAAaaa
Enable SSH server featuresstelnet 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 withTypical purpose
Interfaceinterface GE0/0/1Layer 2/3 interface settings
VLANvlan 10VLAN attributes
VLANIFinterface Vlanif10SVI / inter-VLAN gateway IP
OSPFospf 1Process-level OSPF
OSPF areaarea 0 (under OSPF)Area networks and stubs
AAAaaaLocal users, schemes
ACLacl 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:

ActionCommand / keyResult
Leave one levelquitParent view only
Jump to user-viewreturnFrom any depth back to <Huawei>
Jump to user-viewCtrl+ZSame 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.

IntentVRP pattern
Remove an IP addressundo ip address
Bring an interface up after shutdownundo shutdown
Delete a descriptionundo description
Remove a static routeundo ip route-static ... (match original)
Disable a featureundo + 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:

  1. undo is not a synonym for deleting a file or wiping NVRAM. File deletion and reset saved-configuration are separate operations.
  2. undo must be typed in the same view where the original command applies.
  3. 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 bandCapability (conceptual)
0–1Visit / monitoring-style access
2–9Partial configuration depending on policy
10–15Management; 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; display often from user-view (though many display commands also work in system-view).
  • quit vs return — one level versus all the way to user-view.
  • undo vs no vs delete — only undo negates configuration lines; delete targets files; reset targets 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:

  1. Login → confirm <hostname> user-view.
  2. system-view → confirm [hostname].
  3. sysname if needed.
  4. interface ... → configure → quit back to system-view.
  5. return or Ctrl+Z → user-view.
  6. display to 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.

Test Your Knowledge

Which prompt indicates that a Huawei VRP device is in user-view?

A
B
C
D
Test Your Knowledge

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?

A
B
C
D
Test Your Knowledge

On Huawei VRP, which command correctly removes an IP address from an interface?

A
B
C
D
Test Your Knowledge

Which statement about VRP CLI navigation is true?

A
B
C
D