Configuring A Huawei Switch
Configuring A Huawei Switch
Objective
This lab exercise is designed for understanding and using basic configuration commands on a
Huawei Switch interacting through Huawei ENSP.
Software/Hardware Requirement
Introduction
Huawei eNSP (Enterprise Network Simulation Platform) is a powerful network simulation tool
developed by Huawei to help users design, configure, and test enterprise networks in a virtual
environment. It is widely used for learning and practicing network configurations, making it an
ideal platform for students, network engineers, and IT professionals.
1. Device Simulation: Supports routers, switches, and other Huawei network devices with
realistic CLI for hands-on practice.
2. Network Topology Design: Allows users to build complex network topologies with drag-
and-drop functionality.
3. Protocol Support: Includes support for various network protocols like VLANs, OSPF, BGP,
STP, and more.
4. Integration: Works with VirtualBox/VMware to integrate virtual machines, enabling end-
to-end network testing.
5. User-Friendly Interface: Provides a graphical interface for configuring devices and
visualizing network behavior.
Design a simple network using Packet Tracer
This exercise emphasizes on the need of getting knowledge of simulation environment of the
networking area. You are required to create a simple network topology connecting 3 PCs
through a switch and ensure the connectivity.
From your ENSP Window, go to Switches section and select a S3700 Switch.
Similarly, place a switch and 3 PC (End Devices) in your Packet Tracers Window.
Now, in order to connect the devices, select the copper straight-through cable from the
“Connections” section and connect the devices as shown below:
The above snapshot shows that all the devices have been connected. The network will work
fine when all the lights are green. To make the network working, we need to configure PC’s IP
addresses.
Similarly, assign IP addresses along with their gateways to the 3 PCs attached in the network as
demonstrated in the dialog boxes below. In following case, we have assigned 192.168.1.1,
192.168.1.2 and 192.168.1.3 respectively.
After done with the configuration, you will see that all the lights are green now showing that
network is now in operating state after you select start device.
After successfully creating the topology, run the command display mac-address table on
switch CLI and note down its entries (if any).
After the packet is sent successfully again run the command and note down entries of mac
address table. Remove the entries by running command: reset mac-address. Repeat the whole
scenario in simulation environment and observe stages at which mac-address table entries
change.
Now double click the switch and go to CLI tab. Follow the steps below to complete the lab.
Privileged mode gives access to all the switch commands. Many of the privileged commands
configure operating parameters. Therefore, privileged access should be password-protected to
prevent unauthorized use. The privileged command set includes those commands contained
in user EXEC mode, as well as the configure command through which access to the remaining
command modes is gained.
system-view
*Notice the prompt changed in the configuration to reflect.
Step 2: Examine the current switch configuration
a. Examine the following current running configuration file:
b. How many Ethernet or Fast Ethernet interfaces does the switch have? 22
Enter in system-view
*Notice the prompt changed in the configuration to reflect its new name. Type exit or
press Ctrl-Z to go back into privileged mode.
Step 4: Examine the current running configuration
Examine the current configuration that follows to verify that there is no configuration except
for the hostname:
a. Are there any passwords set on the lines?__________________
Enter config-line mode for the console. Set the password on this line as huawei for login.
Configure the vty lines 0 to 3 with the password 1234 as follows:
<Huawei> system-view
4. Enter the configuration commands, one for each line. End by pressing Ctrl Z.
[Huawei] user-interface vty 0 3
[Huawei-ui-vty0-3] set authentication password cipher <your_password>
Ctrl+z
Save
display user-interface vty 0
Set the IP address of the switch to 192.168.1.2 with a subnet mask of 255.255.255.0 as
follows:
<Huawei> system-view
[Huawei] interface Vlanif 1
[Huawei-Vlanif1] ip address 192.168.1.2 255.255.255.0
[Huawei-Vlanif1] undo shutdown
[Huawei-Vlanif1] quit
*Note: This is done on the internal virtual interface VLAN 1.
Set the default gateway for the switch and the default management VLAN to 192.168.1.1 as
follows:
[Huawei] ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
[Huawei] save
Show Results using
[Huawei] display ip interface brief
Step 8: Verify the management LANs settings
<Huawei> system-view
[Huawei-Vlanif1] quit
<Huawei> save
The basic configuration of the switch has just been completed. *Note: This will ensure that the
changes made will not be lost if the system is rebooted or loses power.
b. Are all the changes that were entered recorded in the file?______________
To verify that hosts and switch are correctly configured, ping the switch IP address from the
hosts.
a. Were the pings successful? _________________________________
If the answer is no, troubleshoot the hosts and switch configurations.
Step 13: Record the MAC addresses of the host
Determine and record the layer 2 addresses of the PC network interface cards. Check by using
command ipconfig /all in command prompt of the Packet Tracer PC (in Desktop tab).
a. PC1:_____________________________________________________
b. PC4:_____________________________________________________
Step 14: Determine the MAC addresses that the switch has learned
To determine the what MAC addresses the switch has learned use the show mac-address-table
command as follows at the privileged EXEC mode prompt:
To remove the existing MAC addresses use the clear mac-address-table command from the
privileged EXEC mode prompt as follows:
Lab Report
Repeat Steps 1-20 for configuring a cisco switch, write commands used for each step and submit
a lab report supplementing with screen shots.
Lab Worksheet
Q.1 Identify the differences between interface and line of a Huawei device.
Q.2 If switch doesn’t know the destination address, what will it do? If it does then what
action is taken?
Q.3 How many memories are present in a switch? Briefly write each function