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