Huawei CX920 Basic CLI LAB
Huawei CX920 Basic CLI LAB
During the LAB try to use the online help “?” and TAB key while configure the switch.
1
Huawei Chassis E9000: CX920 Switch
1. Change the hostname of LSW1 and LSW2 to SW_ToR and SW_CX920 respectively with the
command “sysname”.
2. Display the current configuration of SW-CX920 (Use Ctrl+C to stop dispaying information)
3. Create VALN 20 with description “Management VLAN” on the two switches.
4. Create VLAN 100 to 110 in batch on the two switches.
5. Display the created VLAN with “display vlan” command.
6. On the CX920 switch verify the interface status with “display interface brief” (use TAB to insert
the command).
7. Configure the G0/0/1 on the SW_CX920 as trunk interface, allow VLAN 20 and VLAN 100 to 110
and set the description as “To_SW_ToR”.
8. Verify the configuration of the interface using the command “display this” in the interface view.
9. Configure the G0/0/1 on the SW_ToR as trunk interface, allow VLAN 20 and VLAN 100 to 110 and
set the description as “SW_CX920”.
10. Verify the configuration of the interface using the command “display this” in the interface view.
11. On the SW_ToR configure the GE0/0/2 as access port and set the default vlan to 20.
12. Configure an interface vlanif 20 on the SW_ToR and SW_CX920 with ip address 10.10.10.10/24
and 10.10.10.11/24 respectively.
13. Test ping between the two switches.
14. Set an IP address to the PC1 as 10.10.10.100/24 and test ping from PC1 to SW_ToR and SW-
CX920.
15. Create a new SSH user on the SW_CX920 (Try to use the Online Help “?”).
system-view
aaa
local-user MyName password cipher MyPassword
local-user MyName service-type ssh
local-user MyName privilege level 15
quit
stelnet server enable
ssh user MyName authentication-type password
ssh user MyName service-type all
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
quit
quit
2
Huawei Chassis E9000: CX920 Switch
17. From the SW_ToR run the command bellow to access via SSH to the SW_CX920 with the new
user created:
System-view
ssh client first-time enable
stelnet 10.10.10.11
18. After access to the SW_CX920 run the command “display users” to check the connected users.
19. On the switch SW_CX920 configure a default route with next hop as SW_ToR:
ip route-static 0.0.0.0 0.0.0.0 10.10.10.10
20. Save the configuration with command “save” and reboot the switch.