Huawei VRP Basic Commands: Your First Switch Lab

Huawei VRP Basic Commands cover showing a hand plugging an Ethernet cable into a lab switch beside a laptop.

You type description LAB-PC1 on a Huawei switch, and the CLI rejects it. The command may be valid. The prompt tells you whether you are in the interface view where the command belongs.

This first-switch lab teaches Huawei VRP basic commands through one task. You will name a switch, label a port, check what changed, and confirm which configuration will be used at the next startup.

What You Need for Your First Huawei Switch Lab

Use one isolated lab switch and a console session. If available, connect a powered-on test PC with an enabled Ethernet adapter to a spare switch port. You can complete the configuration steps without a PC. An active Ethernet connection is useful for the link-state check, and this lab requires no IP address on the PC.

The examples follow the single-stage workflow documented for Huawei S5700-series switches in the V200R011C10 command reference. Run display version and display interface brief to identify your software and port names. The lab uses GigabitEthernet 0/0/1. Substitute a port shown on your device if it uses a different name. The terminal outputs below are illustrative excerpts.

Huawei VRP Basic Commands by CLI View

Read the prompt before entering a command
View Example prompt Commands used in this lab
User view <HUAWEI> display version, display interface brief, system-view, save
System view [LAB-SW1] sysname LAB-SW1, interface GigabitEthernet 0/0/1
Interface view [LAB-SW1-GigabitEthernet0/0/1] description LAB-PC1, display this, quit

From interface view, quit takes you back one level to system view. Use return to go directly to user view from a configuration view. In the examples below, type only the command that follows the prompt.

Step 1. Name the Switch and Inspect the Port

Start in user view. Enter system view, give the switch a lab name, then enter the interface view for the port you want to label.

<HUAWEI> system-view
[HUAWEI] sysname LAB-SW1
[LAB-SW1] interface GigabitEthernet 0/0/1
[LAB-SW1-GigabitEthernet0/0/1] display this

The prompt now shows the switch name and the selected interface. In the relevant part of the output, a port without a configured description has no description line.

#
interface GigabitEthernet0/0/1
+#

Step 2. Add the Description and Verify the Change

Stay in interface view and add the description. Run display this again to check the running configuration in that view.

[LAB-SW1-GigabitEthernet0/0/1] description LAB-PC1
[LAB-SW1-GigabitEthernet0/0/1] display this
#
interface GigabitEthernet0/0/1
 description LAB-PC1
#

The new line confirms that the description is configured on the intended port. Now check the port’s operational state separately.

[LAB-SW1-GigabitEthernet0/0/1] quit
[LAB-SW1] return
<LAB-SW1> display interface brief

Find the row for your port and read its PHY column. If the test PC is connected and the link comes up, the physical status should be up. A port can have the correct description while the link remains down. If that happens, check the selected port, cable, and test PC’s Ethernet adapter before changing the configuration.

Step 3. Save and Check the Startup Configuration

Once you have verified the lab changes, save from user view and follow the device’s confirmation prompt. Then inspect the saved configuration used for the next startup and look for the switch name and interface description.

<LAB-SW1> save
<LAB-SW1> display saved-configuration

display this and display saved-configuration answer separate questions. The first checks the running configuration in the current view. The second checks the saved configuration. If your platform uses a two-stage configuration mode, follow its documented commit procedure before checking the running state and saving.

Try It Without the Walkthrough

Choose another spare lab port and describe it as LAB-PC2. Before you type anything, name the view you need. Then show the configuration line, check the physical state, and return to user view. You have completed the exercise when you can explain what each check proves.

If you are preparing for Huawei’s associate-level networking certification, see how these CLI skills fit into the HCIA-Datacom H12-811 exam guide.

References

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Two people can both be new to Huawei certification and need different starting points. A student learning how a network...
Published by PeopleDumps | October 21, 2026 Huawei has officially announced the worldwide release of the HCIP-Storage V6.0 Certification (English...
Moving enterprise applications to the cloud is rarely as simple as creating a virtual machine and uploading application files. A...
Cloud computing has fundamentally changed the way organizations deploy applications, store information, and manage IT infrastructure. Instead of purchasing physical...