0% found this document useful (0 votes)
26 views12 pages

Configuring A Huawei Switch

Uploaded by

Robin roars
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views12 pages

Configuring A Huawei Switch

Uploaded by

Robin roars
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

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

The software/hardware requirement is mentioned below:


a. PC with Windows 7 or above
b. ENSP

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.

Key Features of Huawei eNSP

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.

Step 1: Enter system view

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:

<Huawei> display current-configuration

<Huawei> display interface brief

b. How many Ethernet or Fast Ethernet interfaces does the switch have? 22

c. What is the range of values shown for the VTY lines?________


d. Examine the current contents of NVRAM as follows:

%% Non-volatile configuration memory is not present

Step 3: Assign a name to the switch

Enter in system-view

Write sysname Desired name

*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?__________________

b. What does the configuration show as the hostname of this switch?__

Step 5: Set the access passwords

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

Step 6: Set the command mode passwords

Set the enable password


system-view
[Huawei]user-interface console 0
set authentication password cipher 1234

Step 7: Configure the layer 3 access to the switch

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

Verify the interface settings on VLAN 1 as:

a. What is the bandwidth on this interface?


b. What are the VLAN states: VLAN1 is ________, Line protocol is _________ .

<Huawei> system-view

[Huawei] display interface Vlanif 1

Bandwidth: 1000000 kbps

VLAN1 is up, Line protocol is up

[Huawei] interface Vlanif 1

[Huawei-Vlanif1] undo shutdown

[Huawei-Vlanif1] quit

<Huawei> save

Enable the virtual interface using the no shutdown command

Step 9: Save the configuration

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.

Step 10 Examine the startup configuration file

To see the configuration that is stored in NVRAM

[Huawei] display current-configuration

[Huawei] display saved-configuration

a. What is displayed? __________________

b. Are all the changes that were entered recorded in the file?______________

Step 11: Configure the hosts attached to the switch


Configure the hosts to use the same IP subnet for the address, mask, and default gateway as on
the switch. Assign next IPs to attached PCs.
Step 12: Verify connectivity

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:

[Huawei] display mac-address

a. How many dynamic addresses are there?___________________________


b. How many total MAC addresses are there?__________________________
c. How many addresses have been user defined? ______________________
d. Do the MAC addresses match the host MAC addresses? ________________
Step 16: Clear the MAC address table

To remove the existing MAC addresses use the clear mac-address-table command from the
privileged EXEC mode prompt as follows:

[Huawei] reset mac-address

Step 17: Verify the results

Verify that the mac-address-table was cleared as follows

[Huawei] display mac-address


How many total MAC addresses are there now?_____________________
a. Why are there so many?
b. How many dynamic addresses are there?

Step 20: Exit the switch


12. Leave the switch welcome screen

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

You might also like