0% found this document useful (0 votes)
357 views8 pages

Basic Router Configuration Lab Guide

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 PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
357 views8 pages

Basic Router Configuration Lab Guide

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 PDF, TXT or read online on Scribd

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 ([Link]) 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: [Link]/24).
o G0/0/1: Connects to Switch1 (IP: [Link]/24).
2. Router2:
o G0/0/0: Connects to Router1 (IP: [Link]/24).
o G0/0/1: Connects to Router3 (IP: [Link]/24).
o G0/0/2: Connects to Switch2 (IP: [Link]/24).
3. Router3:
o G0/0/0: Connects to Router2 (IP: [Link]/24).
o G0/0/1: Connects to Switch3 (IP: [Link]/24).

Switch and PC Configuration:

• Switch1 connects to PCs with IPs [Link] and [Link].


• Switch2 connects to PCs with IPs [Link] and [Link].
• Switch3 connects to PCs with IPs [Link] and [Link].

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 [Link] [Link]
quit
interface GigabitEthernet0/1
ip address [Link] [Link]
quit
ospf 1
area 0
network [Link] [Link]
network [Link] [Link]
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 [Link] [Link]
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 ([Link]), ping PC4 ([Link]) or PC6 ([Link]) 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?

Common questions

Powered by AI

The integration of OSPF greatly enhances network scalability compared to static routing by enabling automatic route sharing and dynamic adjustment to network changes . OSPF propagates routes without manual input, which simplifies the process of expanding or modifying the network, as it automatically recalculates routes for added efficiency . This adaptability is crucial in larger networks where constant manual updates, as required in static routing, would be impractical . Consequently, OSPF allows for seamless scaling and management of complex network topologies, addressing the limitations of static routing in large or frequently changing networks .

Subnet masks in the network configuration define which portion of the IP address represents the network identifier and which part identifies the host. In the lab exercise, a subnet mask of 255.255.255.0 (/24) is used consistently across all interfaces, separating the network ID from the host IDs . This allows for efficient address management and routing within each subnet, ensuring that devices are correctly addressed and communicate within their assigned network segment without clashes, hence maintaining organized routing paths .

The recommended testing methodology involves performing ping tests between the PCs to verify end-to-end connectivity. Specifically, from PC1 (IP: 192.168.10.2), attempt pings to PC4 (IP: 192.168.20.2) or PC6 (IP: 192.168.30.2) to assess network communication . Multiple attempts may be necessary if the initial ping fails, suggesting checking configurations if persistent issues arise . This practical testing ensures each segment of the network communicates properly as designed.

In the lab setup, IP addresses and subnet masks are assigned to each router’s Ethernet or GigabitEthernet ports as per the network design. Each router connects through designated interfaces using a /24 subnet mask, for example, Router1 uses 192.168.1.1/24, Router2 uses 192.168.1.2/24, and so on . Similarly, switch interfaces connected to PCs are configured with consecutive addresses within the same subnet, such as 192.168.10.2, 192.168.10.3, for devices under Switch1 . This ensures clear demarcation and routing capability across the network topology outlined in the document.

To implement OSPF on a router, begin by entering the system-view mode and configuring the IP address for each GigabitEthernet interface. For example, set the IP address on interface GigabitEthernet0/0/0 as 192.168.1.1 with subnet mask 255.255.255.0 and similarly configure other interfaces . Then enable OSPF by entering 'ospf 1 area 0' and include relevant networks using the 'network' command with the appropriate wildcard masks . Save the configuration after setting up OSPF to ensure persistence across reboots .

To verify OSPF neighborhood relationships, use the command 'display ospf peer' on each router . This shows OSPF-peer events, indicating the active neighbor relationships established through the OSPF protocol . This verification is crucial to ensure that OSPF routing is functioning correctly and that routes are properly shared between routers in the network .

Dynamic routing automatically adjusts to changes in the network topology, such as link failures or congestion, without requiring manual reconfiguration . This adaptability is achieved through dynamic routing protocols, which continuously learn and share routes with other routers, ensuring that the network can respond to changes fluidly and maintain optimal routing paths . This reduces the administrative burden compared to static routing, which requires manual updates to routing tables whenever changes occur .

Static routing minimizes resource usage by eliminating dynamic protocol processing, thereby using less CPU power and bandwidth, which can reduce costs through cheaper routers and WAN links . It also provides enhanced security by allowing administrators to manually control which network routes are active, reducing exposure to unauthorized routing paths . In contrast, dynamic routing uses more resources since protocols need to continuously communicate route information to adapt to network changes, using more CPU and bandwidth but offering the advantage of flexibility and ease of management in large networks .

Static routing is less feasible in larger networks because it requires manual route configuration and maintenance for each router whenever changes occur, such as adding a new network . This task becomes arduous and unsustainable as the network grows, requiring extensive understanding of the entire network topology to ensure correct routing . Administratively, this imposes a high workload on network administrators, who must ensure all routers' routing tables are updated with every new route, making it impractical for dynamic environments .

The advantages of static routing include no overhead on the router's CPU, as it eliminates the need for dynamic protocol processes, potentially allowing the use of a cheaper router . There is also no bandwidth usage between routers because routes are manually configured, saving on potential WAN link costs . Moreover, static routing adds a level of security, as the administrator can control access to networks by selecting which routes are enabled . These advantages collectively influence network operations by reducing resource requirements and increasing control over routing paths, which is beneficial in small, stable networks.

You might also like