Lab 9

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Laboratory No: 9 Date: _____________

Basic Router Configuration

Objective
1. This lab exercise is designed for understanding and using basic configuration
commands on a Huawei Router interacting through ENSP.
Software/Hardware Requirement
2. The software/hardware requirement is mentioned below:
a. PC with Windows 7 or above
b. Huawei Packet Tracer (ENSP)

Procedure
3. Open ensp and setup a network similar to the following network. Use Router &
switch.

Set the IP Address, Subnet Masks (255.255.255.0) and Gateway (Router IP Address) of
each PC
Without static routing communication between pc1 and pc4

Configuring Static Routing


Static routing occurs when you manually add routes in each router’s routing table.
There are pros and cons to static routing, but that’s true for all routing processes. Static
routing has the following benefits:
There is no overhead on the router CPU, which means you could possibly buy a
cheaper router than if you were using dynamic routing.
There is no bandwidth usage between routers, which means you could possibly save
money on WAN links.
It adds security, because the administrator can choose to allow routing access to
certain networks only.
Static routing has the following disadvantages:
The administrator must really understand the internetwork and how each router is
connected in order to configure routes correctly.
If a network is added to the internetwork, the administrator has to add a route to it on all
routers—by hand.
It’s not feasible in large networks because maintaining it would be a full-time job in itself.
The command syntax to add a static route to a routing table is as following:
Configuration of Lab_A
Assign IP Address and Subnet to Each Ethernet Port/Gigabit Port Connected as
Shown in Topo.

Router 1 Commands for Static Routing

After the router is configured, you can type show running-config and show ip route to see
the static routes:
Do the same on Lab_B router. For the Lab_B router to be able to route to all networks,
the networks have to be configured in its routing table. After doing this ping the devices
to check that they are communicating with each other. Try this step two to three times if
unsuccessful for the first time. If still unsuccessful check the configuration.

Configure Dynamic Routing (Routing Information Protocol)


Dynamic routing is a network routing method where routers automatically learn and share
routes with other routers using dynamic routing protocols. These protocols continuously
adjust to changes in the network topology, such as link failures, congestion, or new
routes, without requiring manual reconfiguration.

Router Configuration:

1. Router1:
o G0/0/0: Connects to Router2 (IP: 192.168.1.1/24).
o G0/0/1: Connects to Switch1 (IP: 192.168.10.1/24).
2. Router2:
o G0/0/0: Connects to Router1 (IP: 192.168.1.2/24).
o G0/0/1: Connects to Router3 (IP: 192.168.2.1/24).
o G0/0/2: Connects to Switch2 (IP: 192.168.20.1/24).
3. Router3:
o G0/0/0: Connects to Router2 (IP: 192.168.2.2/24).
o G0/0/1: Connects to Switch3 (IP: 192.168.30.1/24).

Switch and PC Configuration:

• Switch1 connects to PCs with IPs 192.168.10.2 and 192.168.10.3.


• Switch2 connects to PCs with IPs 192.168.20.2 and 192.168.20.3.
• Switch3 connects to PCs with IPs 192.168.30.2 and 192.168.30.3.

Configuration Steps

1. Configure Each Router

Assign IP addresses to the interfaces and enable OSPF(Open Shortest Path First).

system-view
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
quit
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
quit
ospf 1
area 0
network 192.168.1.0 0.0.0.255
network 192.168.10.0 0.0.0.255
quit
save

Follow same steps for router 2 and 3 with there respective IP-address and subnet

2. Configure Each Switch with their IP Address

system-view
vlan 1
interface Vlanif1
ip address 192.168.10.254 255.255.255.0
quit
save

3. Verify OSPF Neighbors: On each router:

plaintext
Copy code
display ospf peer

4. Check Routing Table: On each router:

plaintext
Copy code
display ip routing-table

5. Ping Between PCs:

• From PC1 (192.168.10.2), ping PC4 (192.168.20.2) or PC6 (192.168.30.2) to test


end-to-end connectivity.
Lab Report
Design a dynamic routing using 03 routers. Explain your steps of working and the concept
of static and dynamic routing (supplement it with screenshots).

Lab Worksheet
Q.1 What is Routing and on which OSI layer it happens?
Q.2 Write any two advantages of static routing.
Q.3 What happens when default routing is applied in networks other than stub
networks?

You might also like