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,

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.

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.

follow the recommended settings for opening putty.

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

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



