search
HomeSoftware TutorialMobile ApplicationWhat are Huawei switch query commands? Detailed introduction: Huawei switch configuration and switch query commands

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

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

##4. View the configuration details of the switch being used n

Display the configuration details of the switch currently running. You can see the configuration of the switch in detail. This command is very important. You can view the IP address of the switch in detail. Configuration of address, vlan, and port.

display current configuration

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

5. Display switch device status

Display device status, right It is necessary to check the status of the switch.

display device

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

6. Check the switch cpu usage

When you feel that the switch is very When the card is stuck, it is better to check the cpu utilization of the switch

Display cpu-usage Check the CPU utilization of the switch

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令 华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

Seven , Check the switch memory usage

Check the switch memory utilization.

Display memory

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令 华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

If you find that the utilization of both CPU and memory is very high, then enter the command# Display interface port number can continuously check the data flow under each port.

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令 华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

Enter the port configuration interface and enter the Shutdown command to forcefully close the port and disconnect it from the network. Contact the terminal user. After asking it to terminate the download process, restore its network.

7. Check the switch model and firmware version

Check the switch model and firmware version. It is very important to understand the switch parameters. Use the switch according to the switch performance.

display version

华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令华为交换机查询命令是什么 详细介绍:华为交换机配置与交换机查询命令

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!

Statement
This article is reproduced at:甜虾韭. If there is any infringement, please contact admin@php.cn delete
Photoshop Is Officially Available on iPhonePhotoshop Is Officially Available on iPhoneMar 06, 2025 am 09:56 AM

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

How to Take Photos on Android Without All the Post-Processing JunkHow to Take Photos on Android Without All the Post-Processing JunkMar 13, 2025 pm 01:09 PM

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

Completely Uninstall Xiaomi Game Center: No Leftovers!Completely Uninstall Xiaomi Game Center: No Leftovers!Mar 18, 2025 pm 06:00 PM

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.

I Tried Yope, Gen Z's New Favorite Photo-Sharing AppI Tried Yope, Gen Z's New Favorite Photo-Sharing AppMar 05, 2025 am 10:41 AM

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

The Fastest Way to Uninstall Xiaomi Game Center (2025)The Fastest Way to Uninstall Xiaomi Game Center (2025)Mar 18, 2025 pm 06:03 PM

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 Won't (Usually) Snitch If You ScreenshotInstagram Won't (Usually) Snitch If You ScreenshotMar 07, 2025 am 09:56 AM

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,

How to Uninstall Xiaomi Game CenterHow to Uninstall Xiaomi Game CenterMar 18, 2025 pm 06:01 PM

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

Xiaomi Game Center Stuck? Here's How to Uninstall It!Xiaomi Game Center Stuck? Here's How to Uninstall It!Mar 18, 2025 pm 06:01 PM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

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

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool