H12-831_V1-0 practice question 19 of 35

What is the meaning of display current-configuration I include vlan command?

Full set: 265 questions

Domain Network Features

Answer options
A: View eachVLANphysical interface information bound to the
B: See what's currently createdVLAN
C: CheckVLANIFinterfaceIPaddress
D: View all included"VLAN"Configuration of keywords Correct answer
Correct Answer:
D. View all included"VLAN"Configuration of keywords
Explanation

The command display current-configuration | include vlan is a combination of two functions. The display current-configuration command shows the entire active configuration on the device. The pipe symbol | redirects this output to the include vlan filter. The include filter processes the output and displays only the lines that contain the specified keyword, which in this case is "vlan". Therefore, the command's purpose is to view all lines in the current running configuration that include the keyword "vlan", regardless of the specific configuration section (e.g., interface, global, etc.).

Why Incorrect

A. View each VLAN physical interface information bound to the This is too specific. While the output will show VLANs bound to interfaces (e.g., port trunk allow-pass vlan...), it will also show other VLAN-related configurations like vlan batch....
B. See what's currently created VLAN The command display vlan is the correct and direct command to view created VLANs and their status. The questioned command only shows configuration lines, not the operational state of VLANs.
C. Check VLANIF interface IP address This is incorrect. The configuration line for an IP address (e.g., ip address 192.168.1.1 24) does not contain the keyword "vlan", so it would be filtered out by the include vlan part of the command.

References

1. Huawei S Series Switches Command Reference - CLI Login: In the section "Command Line Filtering," the documentation explains the use of the pipe character (|) with filtering keywords. It states, "The include keyword filters command output and displays only the lines that contain a specified regular expression." This directly supports that | include vlan will show all configuration lines containing the "vlan" keyword. (Refer to the Command Reference for your specific VRP version, e.g., V200R019C10, under "CLI Login > Command Line Filtering").

2. Huawei HedEx Documentation for VRP: The fundamental principles of the Versatile Routing Platform (VRP) command-line interface (CLI) are detailed in official HedEx documentation. The section on CLI usage consistently describes the | include syntax as a method to filter the output of a display command to show only lines matching the specified keyword. This confirms the command's function is to display all configuration lines containing "vlan". (Refer to VRP System Description or Command Reference documentation).

Scroll to Top