Got it

Basic commands for configuring Huawei switches

Latest reply: Nov 6, 2020 01:37:47 31166 13 19 0 3

Hello there, everyone!

This post features the basic commands for configuring Huawei switches. Please have a look below.

Huawei Switches

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.

port link-type {trunk|access|hybrid}// To set the working mode of a port.Can you provide a more detailed explanation?
View more
  • x
  • convention:

great~ Use // this symbol to interpret each command.
View more
  • x
  • convention:

lucian2003
lucian2003 Created Nov 6, 2020 20:23:41 (0) (0)
it is good to know  
These basic configuration commands are very useful when the device is started, which is very helpful for a beginner.
View more
  • x
  • convention:

user-interface vty 0 4 means the user to log into the management console, right?
View more
  • x
  • convention:

what different between access trunk and hybrid ,and can you help to share if i want undo the system information ,what can i do ?
View more
  • x
  • convention:

very happy
View more
  • x
  • convention:

how to transform alcatel switch commands on huawei switch example ACL command

policy network group ToIP 172.16.20.0 172.16.21.0 172.16.22.0 172.16.23.0
policy condition ToIP_to_ToIP source network group ToIP destination network group ToIP
policy action Accepte
policy action DSCP0 dscp 0
policy rule ToIP_to_VLAN-MGMT precedence 3700 condition ToIP_to_VLAN-MGMT action Accepte
View more
  • x
  • convention:

ster
ster Created Sep 21, 2020 14:54:39 (0) (0)
Hello,
You can configure routing policies.https://support.huawei.com/enterprise/en/doc/EDOC1000141874/26892fde  
Thanks for the information
View more
  • x
  • convention:

Thanks
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.