Common commands for Huawei switches

Source: Internet
Author: User

A summary of common commands commonly used by Huawei switches is as follows:

1. View port status under Linux

[Email protected]:~# netstat-an|grep-e "6002|6003"

2. Huawei Switch Displays the current configuration

4. Show all current VLANs

Note: All shorthand commands are the only representative of the complete command.

5. Display version Information

6. Modify Switch commands

7. Enter the interface view

[Huawei]interface GIGABITETHERNET0/0/12[HUAWEI-GIGABITETHERNET0/0/12]

8. set the operating mode of the port

Trunk Mode

[Huawei-gigabitethernet0/0/12]port Link-type Trunk

Access Mode

[Huawei-gigabitethernet0/0/12]port link-type Access

Hybrid Mode

[Huawei-gigabitethernet0/0/12]port Link-type Hybrid

9. change the VLAN of the port

[Huawei-gigabitethernet0/0/12]port default VLAN 3

Close the port

[Huawei-gigabitethernet0/0/12]shutdown

One. activating Port

[Huawei-gigabitethernet0/0/12]undo shutdown

Save the configuration file

Enter the VLAN View

Enter system View

Enter virtual terminal

[Huawei]user-interface vty 0 4

Set Password mode

[Huawei-ui-vty0-4]authentication-mode Password Taoge

Set Password

[Huawei-ui-vty0-4]set Authentication Password Taotao

set User Level

[Huawei-ui-vty0-4]user Privilege Level 3

Create a VLAN

[Huawei]display VLAN 121error:the VLAN does not exist. Hint Current VLAN 121 does not exist [Huawei]vlan 121[huawei-vlan121]vlan 121 created successfully

Add a port to a VLAN

[Huawei-vlan121]port GIGABITETHERNET0/0/12

Add a VLAN Description

[Huawei-vlan121]description Taotao.test

Delete a VLAN Description

[Huawei-vlan121]description ']

. exit VLAN View

[Huawei-vlan121]quit

The specific command is also related to the model, OK, here it is! Welcome everyone to pay attention to my blog, if there is doubt, please add QQ Group: 454796847, 135430763 common progress!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Common commands for Huawei switches

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.