Got it

Huawei Switch Configuration for starters

Latest reply: Feb 21, 2021 17:49:40 951 21 24 0 9

Hi Everyone,


I know for starters who are new to Huawei switches, it is hard to do the initial configuration. they need to search and refer to a lot of documents.

Here I will include all basic configuration for initial setup and to make the switch up and running.


As a network engineer, I always suggest keeping a console cable in your bag.


Let's start:


first, connect the switch to your laptop with the console,


AA

and I suggest buying a USB to RJ 45 console cable. not the serial to RJ 45, you need to use a converter if you using a serial console cable.

Console


after connecting the console cable to the laptop, go to the device manager and check the COM port. see which port is used and open putty.



COM




follow the recommended settings for opening putty.


Putty




once you open the terminal, it will ask you to enter a new password.


AQ


you can set a new password accordingly.


changing hostname:


<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] undo sysname    //Restore the default host name.


setting clock zone:


[HUAWEI] clock timezone Beijing add 08:00:00
[HUAWEI] quit


once the timezone is set now set the time.


<HUAWEI> clock datetime 08:00:00 2021-02-16


to verify the time run below,


<HUAWEI> display clock
2021-02-16 00:02+08:00                                                       
Saturday                                                                        
Time Zone(Beijing) : UTC+08:00



after that go to sys-view to configure the management interface.

<HUAWEI> system-view
[HUAWEI] interface MEth 0/0/1
[HUAWEI-MEth0/0/1] ip address 192.168.201.1 255.255.255.0    //Management IP address for the switch


Configure SSH:


<HUAWEI> system-view
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa    
[HUAWEI-ui-vty0-4] protocol inbound ssh   
[HUAWEI-ui-vty0-4] quit

[HUAWEI] aaa[HUAWEI-aaa] local-user admin password irreversible-cipher admin@123    
[HUAWEI-aaa] local-user admin service-type ssh terminal   
[HUAWEI-aaa] local-user admin privilege level 15   
[HUAWEI-aaa] quit


Configure Banner:



<HUAWEI> system-view
[HUAWEI] header shell information %      # Press Enter after entering the start character '%' to start the interactive process.
The banner text supports 480 characters max, including the start and the end cha
racter.If you want to enter more than this, use banner file instead.Input banner
text, and quit with the character '%':Hello!
Welcome to system!% # Press Enter after entering the end character '%' to quit the interactive process.
[HUAWEI] quit
<HUAWEI> quit   



creating VLAN:



<HUAWEI> system-view
[HUAWEI] vlan 100
[HUAWEI-vlan100] quit


VLAN description:


<HUAWEI> system-view
[HUAWEI] vlan 100
[HUAWEI-vlan100] description Huawei


Assign IP to VLAN INterface:

<HUAWEI> system-view
[HUAWEI] interface vlan 100
[HUAWEI-vlan100] ip address 192.168.100.1 24
[HUAWEI-vlan100]quit


Adding interafce to VLAN:


[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type access
[HUAWEI-GigabitEthernet1/0/1] port default vlan 100
[HUAWEI-GigabitEthernet1/0/1] quit


Trunk port configuration:


[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] port link-type trunk
[HUAWEI-GigabitEthernet1/0/2] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet1/0/2] quit


Hybrid port configuration:


[HUAWEI] interface gigabitethernet 1/0/3
[HUAWEI-GigabitEthernet1/0/3] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/3] port hybrid tagged vlan 100
[HUAWEI-GigabitEthernet1/0/3] quit



Thanks for reading the post.



@Rumana @Justin619 @kannan1990 @Adriale @andersoncf1 @Giandiego @Mohamed619 @Mohamed_Ahmed @zaheernew @Sara_Obaid @Moschino @PRAKASHROKA @Asifsd @Kevin_Thomas @niko_makoni @Ansal

Huawei Switch Configuration for starters-3778987-1
View more
  • x
  • convention:

Thanks, really helpful to set up a new switch without referring to any documents
View more
  • x
  • convention:

IndianKid
IndianKid Created Feb 10, 2021 10:37:17 (0) (0)
Thanks  
Thanks for commands
View more
  • x
  • convention:

zaheernew
MVE Author Created Feb 10, 2021 09:55:06

awesome bro
View more
  • x
  • convention:

IndianKid
IndianKid Created Feb 10, 2021 10:37:10 (0) (0)
Thanks  
Nice.
View more
  • x
  • convention:

Kevin_Thomas
Kevin_Thomas Created Feb 10, 2021 09:57:57 (0) (0)
 
IndianKid
IndianKid Created Feb 10, 2021 10:37:02 (1) (0)
Thanks  
Great work
View more
  • x
  • convention:

IndianKid
IndianKid Created Feb 10, 2021 10:36:56 (0) (0)
Thanks  
Adriale
Adriale Created Feb 10, 2021 13:35:04 (0) (0)
:)  
user_3915171
user_3915171 Created Feb 21, 2021 17:50:08 (0) (0)
 
Very good
View more
  • x
  • convention:

very good , can you help us more take us one step ahead plz
View more
  • x
  • convention:

IndianKid
IndianKid Created Feb 12, 2021 18:17:42 (0) (0)
Sure. I will start with dhcp snooping,storm control,static Mac,port security featurs and STP.  
This should be preserved for posterity. Easily a post that will be heavily referenced.
View more
  • x
  • convention:

IndianKid
IndianKid Created Feb 14, 2021 08:32:45 (1) (0)
Thankyou @NTan33 appreciate your feedback.  
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.