


php Editor Banana will introduce you to the query commands of Huawei switches in detail. As an important part of network equipment, Huawei switches' configuration and management are important links in network operation and maintenance. Understanding and mastering the query commands of Huawei switches can help administrators perform network troubleshooting, performance monitoring, and configuration management. In this article, we will gradually introduce the query commands of Huawei switches to help readers better understand and apply these commands. Let’s find out together!
Preface
Hello everyone, I am Mr. Lin. We have summarized the configuration commands and examples of Huawei switches before. A friend mentioned how to check the switch configuration when configuring the switch or during the project. Configuration status? How can I check which ports and vlans I have configured?
It is very important to query the switch configuration, which can quickly solve the problems during the configuration process.
Text
In this issue, we summarize Huawei switch configuration and query commands on a special topic. It is very convenient to use together with the project.
1. Basic Huawei switch configuration commands
1. Create vlan
//User view, that is, run the command in Quidway mode.
system-view //Enter the configuration view
[Quidway] vlan 10 //Create vlan 10 and enter the vlan10 configuration view. If vlan10 exists, directly enter the vlan10 configuration view
[Quidway-vlan10] quit / /Return to the configuration view
[Quidway] vlan 100 //Create vlan 100 and enter the vlan100 configuration view. If vlan10 exists, directly enter the vlan100 configuration view
[Quidway-vlan100] quit //Return Configuration view
2. Add the port to vlan:
[Quidway] interface GigabitEthernet2/0/1 (10G optical port)
[Quidway- GigabitEthernet2 /0/1] port link-type access //Define the port transmission mode
[Quidway- GigabitEthernet2/0/1] port default vlan 100 //Add the port to vlan100
[Quidway- GigabitEthernet2/0/1] quit //Return to the configuration view
[Quidway] interface GigabitEthernet1/0/0 //Enter the configuration view of the first Gigabit network port on slot 1. 0 represents port 1
[Quidway- GigabitEthernet1/0/0] port link-type access //Define port transmission mode
[Quidway- GigabitEthernet2/0/1] port default vlan 10 //Add this port Go to vlan10
[Quidway- GigabitEthernet2/0/1] quit
3. Add multiple ports to VLAN
system-view
[Quidway]vlan 10
[Quidway-vlan10]port GigabitEthernet 1/0/0 to 1/0/29 //Add ports 0 to 29 to vlan10
[Quidway-vlan10]quit
4. Switch configuration IP address
[Quidway] interface Vlanif100 // Entering the vlan100 interface view is different from the place where the vlan 100 command is entered
[Quidway-Vlanif100] ip address 119.167.200.90 255.255.255.252 // Define the vlan100 management IP layer 3 switching gateway route
[Quidway-Vlanif100] quit //Return to the view
[Quidway] interface Vlanif10 //Enter the vlan10 interface view and enter the vlan 10 command from a different place
[ Quidway-Vlanif10] ip address 119.167.206.129 255.255.255.128 // Define vlan10 management IP layer three switching gateway route
[Quidway-Vlanif10] quit
5. Configuration Default static route:
[Quidway]ip route-static 0.0.0.0 0.0.0.0 119.167.200.89 //Configure the default static route.
6. Switch save settings and reset commands
save //Save configuration information
reset saved-configuration //Reset switch configuration
reboot //Restart the switch
7. Common display commands for switches
In user view mode:
display current-configuration //Show that the switch is running now Configuration details
display device //Display the status of each device
display interface? //Display port status, use? You can view the following options
display version //View switch firmware version information
display vlan? // View vlan configuration information
8. Restore the switch to factory settings
reset saved-configuration //Reset the switch configuration
2. Huawei switch configuration status query command
We have summarized the configuration commands of Huawei switches above. In the project, in addition to configuration commands, we will also often use query commands to view the configuration. Condition.
1. Query port usage
dis interface brief Check which port of the switch is a 10G port, as well as the port status and which port is in use.
As shown below, use this command.
Port 0/0/1 and port 0/0/2 are in use. Other interfaces are not used; if other ports are configured in the actual project and their status does not show up but down, then the port configuration must be checked.
If you need to view more detailed information about the port, you can directly enter:
display interface?
2. Usage of the ip address corresponding to the virtual interface
dis ip int brief Displays the ip address and usage corresponding to the virtual interface state.
The configuration of virtual interfaces is extremely common on switches. A network configuration sometimes requires the creation of 3 to 5 virtual interfaces. Understand The configuration of the virtual interface is also very necessary.
3. Display the created vlan situation dis vlan
Display the created vlan situation dis vlan
This article ends here. I hope it can help you. After reading it, if you think what is the Huawei switch query command? "Detailed introduction :Huawei switch configuration and switch query commands" If it is good, I hope you can support it! Browse more pages of this website’s learning website to learn more related knowledge!
The above is the detailed content of What are Huawei switch query commands? Detailed introduction: Huawei switch configuration and switch query commands. For more information, please follow other related articles on the PHP Chinese website!

Photoshop officially logs on to iPhone! Say goodbye to the limitations of mobile image editing! Photoshop, a benchmark software in the field of image editing, has finally officially landed on iPhone! Photoshop has been the industry standard for more than three decades, but in the field of mobile phone image editing, users have had to rely on other applications. This situation has changed with the release of Photoshop iPhone version on February 25. You can now search for "Photoshop" on the App Store to download this free app. In addition to core imagery and design tools, numerous features are available for free: Selections, layers and masks Click Select Tool Stain Repair Painting

Your phone's camera does so much filtering, processing, and AI adjustments, it can make you question reality itself. In a world where Google can put you into photos you take, what's even real? If you'd rather avoid letting your phone decide what

The article details steps to completely uninstall Xiaomi Game Center, remove residual files, prevent auto-reinstallation, and verify the app's removal from a device.

Yope: A Gen Z Photo-Sharing App Review – Is It Worth the Hype? I'm always eager to explore new social media apps, especially those focused on photo sharing. Yope (iOS and Android), the current trendy app, launched in September 2024 and boasts impres

Article discusses the fastest way to uninstall Xiaomi Game Center in 2025 using built-in settings, with optional third-party tools for efficiency.Character count: 159

Instagram Screenshot Notifications: The Complete Guide Ever wondered if taking a screenshot of someone's Instagram Story or post alerts them? Let's clear up the confusion. While screenshots of regular posts and Stories don't trigger notifications,

The article provides a detailed guide on uninstalling Xiaomi Game Center, discussing standard and alternative methods, and potential performance improvements post-uninstallation.

Article discusses uninstalling stuck Xiaomi Game Center, troubleshooting, and exploring gaming alternatives. Main issue is app malfunction and removal.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
