Hello there, everyone!
This post features the basic commands for configuring Huawei switches. Please have a look below.

If a switch is configured, the following commands may help you. The following is a comment after //.
[Quidway] display current-configuration // Display the current configuration.
[Quidway] display interfaces // Displays interface information.
[Quidway] display vlan all // Displays vlan information.
[Quidway] display version // Displays the version information.
[Quidway] super password // Changing the Password of a Privileged User
[Quidway] sysname // Switch Naming
[Quidway] interface ethernet 0/0/1 // Enter the interface view.
[Quidway] interface vlanif x // Enter the interface view.
[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 // Configure the IP address of the VLAN.
[Quidway] ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 // Static route = gateway
[Quidway] user-interface vty 0 4 // Access the virtual terminal
[S3026-ui-vty0-4]authentication-mode password // Setting the password mode
[S3026-ui-vty0-4]set authentication-mode password simple 222 // Setting a password
[S3026-ui-vty0-4]user privilege level 3 // User level
[Quidway] interface ethernet 0/0/1 // Enter the port mode.
[Quidway] int e0/0/1 // Enter the port mode.
[Quidway-Ethernet0/1]duplex {half|full|auto} // Configuring the Working Status of a Port
[Quidway-Ethernet0/1]speed {10|100|auto} // Configuring the Working Rate of a Port
[Quidway-Ethernet0/1]flow-control // Configuring Port Flow Control
[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} // To set the working mode of a port
[Quidway-Ethernet0/1]port access vlan 3 // The current port is added to the VLAN.
[Quidway-Ethernet0/2]port trunk allow-pass vlan {ID|All} // Set the VLAN allowed by the trunk.
[Quidway-Ethernet0/3]port trunk pvid vlan 3 // Setting the PVID of a Trunk Port
[Quidway-Ethernet0/1]undo shutdown // Activating a Port
[Quidway-Ethernet0/1]shutdown // Disable the port.
[Quidway-Ethernet0/1]quit // Return
These would be the basic commands for configuring Huawei switches.



