LabComnet6 - IT - Routing Protocols 2 (03 Routers)
LabComnet6 - IT - Routing Protocols 2 (03 Routers)
Topology
IP Addressing
Given the range 10.ID.0.0/16, please assign IP addresses for the above network.
Subnets of the PCs have 1000 IP addresses each and the serial connection subnets
use /30 subnet masks.
⇨ Range of addresses 100.019.0.0/16
⇨ Each subnet at least 1000 IP => 210 =1024 >1000
⇨ The subnet mask will use 32-10=22 bit
+ Subnet 1: 100.019.0.0/22
+ Subnet 2: 100.019.4.0/22
+ Subnet 3: 100.019.8.0/22
+ Subnet 4: 100.019.12.0/30
1
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
S0 10.19.12.10 255.255.255.252 N/A
Learning Objectives
Upon completion of this lab, you will be able to:
● Perform basic configuration tasks on a router
● Configure and activate interfaces
● Configure OSPF routing on all routers
● Configure OSPF router IDs
● Verify OSPF routing using show commands
● Configure a static default route
● Propagate default route to OSPF neighbors
● Configure OSPF Hello and Dead Timers
● Document the OSPF configuration
Scenarios
In this lab activity, there are two separate scenarios. In the first scenario, you will learn how to configure the
routing protocol OSPF using the network shown in the Topology Diagram in Scenario A. The segments of the
network have been subnetted using VLSM. OSPF is a classless routing protocol that can be used to provide
subnet mask information in the routing updates. This will al ow VLSM subnet information to be propagated
throughout the network. In the second scenario, you will learn to configure OSPF on a multi-access network.
You wil also learn to use the OSPF election process to determine the designated router (DR), backup
designated router (BDR), and DRother states.
2
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Task 1: Perform Basic Router Configurations.
Clear any existing configurations on the routers and perform basic configuration of the R1 and R2 routers
according to the following guidelines:
1. Configure the router hostname.
2. Disable DNS lookup. (R(config)#no ip domain-lookup)
3. Configure a privileged EXEC mode password. (R(config)#enable secret class)
4. Configure a message-of-the-day banner. (R(config)#banner motd & )
5. Configure a password for console connections.
(R(config)#line console 0
R(config-line)#password cisco
R(config-line)#login
R(config-line)#exit)
Route1:
Route2:
3
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router1:
Route2:
Router3:
4
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
network <address> <wildcard-mask> area 0: Only declare the Network address directly connected to R1
with Wildcard Mask
Use an area ID of 0 for the OSPF area-id parameter. 0 will be used for the OSPF area ID in all of the network
statements in this topology.
Step 3: Similarly, configure the router to advertise the network attached to the Serial0 interface.
Router1:
Step 2: Configure the router to advertise the LAN2 network in the OSPF updates.
Step 3: Configure the router to advertise the network attached to the Serial0 interface.
Notice that when the network for the serial link from R1 to R2 is added to the OSPF configuration, the router
sends a notification message to the console stating that a neighbor relationship with another OSPF router has
been established.
Step 4: Repeat from step 1 of this task for R3.
Router2:
Router3:
5
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Step 2: On the R1 router, use the show ip protocols command to view information about the routing
protocol operation.
Notice that the information that was configured in the previous Tasks, such as protocol, process ID, neighbor
ID, and networks, is shown in the output. The IP addresses of the adjacent neighbors are also shown.
Notice that the output specifies the process ID used by OSPF. Remember, the process ID must be the same
on al routers for OSPF to establish neighbor adjacencies and share routing information.
6
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Task 6: Examine OSPF Routes in the Routing Tables
View the routing table on the R1 router. OSPF routes are denoted in the routing table with an "O".
R1#show ip route
Notice that unlike RIPv2 and EIGRP, OSPF does not automatically summarize at major network boundaries.
7
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Step 2: Use the show interfaces serial0 command on the R1 router to view the bandwidth of the
Serial0 interface.
R1#show interfaces serial0
On most serial links, the bandwidth metric wil default to 1544 Kbits. If this is not the actual bandwidth of the
serial link, the bandwidth will need to be changed so that the OSPF cost can be calculated correctly.
Step 3: Use the bandwidth command to change the bandwidth of the serial interfaces of the R1 router
to the actual bandwidth, 64 kbps.
Step 4: Use the show ip ospf interface command on the R1 router to verify the cost of the serial
links.
8
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
The result of the calculation: 108/64,000 bps =0.0016875seconds
R1#show ip ospf interface
Step 5: Use the ip ospf cost command to configure the OSPF cost on the R2 router.
An alternative method to using the bandwidth command is to use the ip ospf cost command, which allows
you to directly configure the cost. Use the ip ospf cost command to change the bandwidth of the serial
interfaces of the R2 router to 1562.
9
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Step 6: Use the show ip ospf interface command on the R2 router to verify that the cost of the
link the cost of each of the Serial links is now 1562.
10
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Step 4: View the routing table on the R2 and R3 routers to verify that the static default route is being
redistributed via OSPF. Please explain the output in details:
11
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router2:
12
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router3:
● Routing table
Router1:
13
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router2:
Router3:
● Interface summarization
Router1:
14
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
15
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
16
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Route 2
17
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
18
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
19
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Route 3
20
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
21
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
22
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
23
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router2:
24
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Router3:
END.
25