T113 Lab 7 Implement Multi-Area OSPFv2
T113 Lab 7 Implement Multi-Area OSPFv2
Name: _____________
Name:_____________
Name:_____________
Name:_____________
Name:_____________
Topology
Gig0/0 Gig0/1
Gig0/0
Gig0/0
Gig0/1 Gig0/1
FA0/11 FA0/11
Lab-7- Implement Multi-Area OSPFv2
Objectives
Part 1: Configure Basic Device Settings and Verify Connectivity
Part 2: Configure Multiarea OSPFv2
Part 3: Explore Link State Advertisements (LSAs)
Background / Scenario
To make dynamic routing more efficient and scalable, OSPF supports hierarchical routing using areas.
An OSPF area is a group of routers that share the same link-state information in their link-state databases (LSDBs).
When a large OSPF area is divided into smaller areas, it is called multiarea OSPF. Multi-area OSPF is useful in
larger network deployments to reduce processing and memory overhead.
In this lab you will configure multiarea OSPFv2 for IPv4.
Note: This lab is an exercise in developing, deploying, and verifying how OSPF operates and does not reflect networking
best practices.
Note: Loopback interfaces are used to simulate user networks and therefore require the ip ospf network point-
to-point interface config command.
Instructions
Step 1: Configure basic settings on R1, R2, R3, S1, and S2.
a. On each device, apply the following basic settings and interface addressing.
Router R1
hostname YOURNAME-R1
line con 0
logging sync
exec-time 0 0
!
interface GigabitEthernet0/0
description Link to R2
ip add 172.16.0.2 255.255.255.252
no shut
exit
!
interface GigabitEthernet0/1
description Link to S1
ip address 10.10.0.1 255.255.255.252
no shut
exit
!
line vty 0 4
privilege level 15
password cisco
login
transport input all
Lab-7- Implement Multi-Area OSPFv2
Router R2
hostname YOURNAME-R2
!
interface GigabitEthernet0/0
description Link to R1
ip add 172.16.0.1 255.255.255.252
no shut
exit
!
interface GigabitEthernet0/1
description Link to R3
ip address 172.16.1.1 255.255.255.252
no shut
exit
!
interface lo0
description Link to Internet
ip add 209.165.200.225 255.255.255.224
exit
!
line vty 0 4
privilege level 15
password cisco
login
transport input all
!
line con 0
logging sync
exec-time 0 0
exit
Router R3
hostname YOURNAME-R3
line con 0
logging sync
exec-time 0 0
exit
!
interface GigabitEthernet0/0
description Link to R2
ip add 172.16.1.2 255.255.255.252
no shut
exit
!
interface GigabitEthernet0/1
description Link to S2
ip address 10.10.4.1 255.255.255.252
no shut
exit
!
line vty 0 4
privilege level 15
password cisco
login
Lab-7- Implement Multi-Area OSPFv2
Switch S1
hostname YOURNAME-S1
line con 0
exec-timeout 0 0
logging synchronous
!
interface fa0/11
description Link to R1
no switchport
ip address 10.10.0.2 255.255.255.252
no shut
exit
!
interface Lo0
description Simulates a LAN
ip address 10.10.1.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo2
description Simulates a LAN
ip add 10.10.2.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo3
description Simulates a LAN
ip add 10.10.3.1 255.255.255.0
ip ospf network point-to-point
exit
!
line vty 0 4
privilege level 15
password cisco
login
transport input all
Switch S2
hostname YOURNAME-S2
line con 0
logging sync
exec-time 0 0
!
interface fa0/11
description Link to R3
no switchport
ip address 10.10.4.2 255.255.255.252
no shut
exit
!
int Lo0
description Simulates a LAN
ip address 10.10.5.1 255.255.255.0
ip ospf network point-to-point
exit
Lab-7- Implement Multi-Area OSPFv2
!
int Lo16
description Simulates a LAN
ip add 10.10.16.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo17
description Simulates a LAN
ip add 10.10.17.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo18
description Simulates a LAN
ip add 10.10.18.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo19
description Simulates a LAN
ip add 10.10.19.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo20
description Simulates a LAN
ip add 10.10.20.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo21
description Simulates a LAN
ip add 10.10.21.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo22
description Simulates a LAN
ip add 10.10.22.1 255.255.255.0
ip ospf network point-to-point
exit
!
int Lo23
description Simulates a LAN
ip add 10.10.23.1 255.255.255.0
ip ospf network point-to-point
exit
!
line vty 0 4
privilege level 15
password cisco
login
transport input all
Lab-7- Implement Multi-Area OSPFv2
Step 2: Verify interfaces and direct connectivity between R1, R2, R3, S1, and S2.
a. On S1, verify the status of the configured interfaces.
S1#show ip int brief | include manual
FastEthernet0/11 10.10.0.2 YES manual up up
Loopback0 10.10.1.1 YES manual up up
Loopback2 10.10.2.1 YES manual up up
Loopback3 10.10.3.1 YES manual up up
S1#
Notice the loopback interfaces configured on S1. Theses interfaces were configured for lab purposes to simulate other
LANs.
Note: Loopback interfaces were numbered based on the network address (e.g., Lo2 = 10.10.2.0/24) for convenience
only.
b. On R1, R2, and R3, verify the status of the configured interfaces.
R1# show ip int brief | include manual
GigabitEthernet0/0 172.16.0.2 YES manual up up
GigabitEthernet0/1 10.10.0.1 YES manual up up
R1#
Again, notice the loopback interfaces configured on S2. Theses interfaces were configured for lab purposes to
simulate other LANs.
Lab-7- Implement Multi-Area OSPFv2
All devices should be able to reach the other directly connected networks. Troubleshoot if necessary.
Lab-7- Implement Multi-Area OSPFv2
b. On S1, enter OSPF router configuration mode using process ID 123, assign S1 the router ID 1.1.1.2, and set the
reference bandwidth to distinguish between Gigabit Ethernet and FastEthernet interfaces.
S1(config)#router ospf 123
S1(config-router)#router-id 1.1.1.2
S1(config-router)#auto-cost reference-bandwidth 1000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.
Note: The reference bandwidth must be configured the same on all routers in the OSPF area.
Lab-7- Implement Multi-Area OSPFv2
c. On S1, advertise the FastEthernet 0/11 interface 10.10.0.0/30 network in OSPF Area 1 as shown.
Note: Deduct the subnet mask (i.e., /30 = 255.255.255.252) from 255.255.255.255, resulting in a wildcard mask of
0.0.0.3.
S1(config-router)#network 10.10.0.0 0.0.0.3 area 1
S1(config-router)#
d. On S1, advertise the Lo0 interface 10.10.1.0/24 network in OSPF Area 1 as shown.
S1(config-router)#network 10.10.1.0 0.0.0.255 area 1
S1(config-router)#end
e. On S1, advertise the Lo2 interface 10.10.2.0/24 and 10.10.3.0/24 networks in OSPF Area 1 as shown.
Note: Deduct the subnet mask (i.e., /23 = 255.255.254.0) from 255.255.255.255, resulting in a wildcard mask of
0.0.1.255.
S1(config-router)#network 10.10.2.0 0.0.1.255 area 1
S1(config-router)#end
f. On S1, verify the OSPF protocol settings using the show ip protocols command.
S1# show ip protocols | section ospf
Routing Protocol is "ospf 123"
Outgoing update filter list for all interfaces is not
set Incoming update filter list for all interfaces is
not set Router ID 1.1.1.2
Number of areas in this router is 1. 1 normal 0 stub 0
nssa Maximum path: 4
Routing for Networks:
10.10.0.0 0.0.0.3 area
1
10.10.1.0 0.0.0.255 area 1
10.10.2.0 0.0.1.255 area 1
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 110)
The output confirms the RID, the number of areas, and the networks advertised. Notice there are no Routing
Information Sources because there are no OSPF neighbors.
g. On S1, verify the OSPF interfaces using the show ip ospf interface brief command.
S1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 123 1 10.10.1.1/24 1 P2P 0/0
Lo2 123 1 10.10.2.1/24 1 P2P 0/0
Lo3 123 1 10.10.3.1/24 1 P2P 0/0
Fa0/11 123 1 10.10.0.2/30 1 DR 1/1
S1#
The output confirms that both Fa0/11 and Loopback interfaces were correctly assigned to Area 1.
Lab-7- Implement Multi-Area OSPFv2
b. On R1, verify the OSPF configuration using the show ip protocols command.
R1# show ip protocols | begin ospf
Routing Protocol is "ospf 123"
Outgoing update filter list for all interfaces is not
set Incoming update filter list for all interfaces is
not set Router ID 1.1.1.1
It is an area border router
Number of areas in this router is 2. 2 normal 0 stub 0
nssa Maximum path: 4
Routing for Networks:
10.10.0.0 0.0.0.3 area
1
172.16.0.0 0.0.0.3 area 0
Routing Information Sources:
Gateway Distance Last Update
1.1.1.2 110 00:07:55
Distance: (default is 110)
Like the previous output of S1, this output confirms the router ID, and the networks advertised. However, notice
that it also explicitly states that R1 is an area border router (ABR), that it is in two areas, and that it has established
an adjacency and exchanged routing information with S2 (i.e., 1.1.1.2).
Lab-7- Implement Multi-Area OSPFv2
c. On R1, verify that the reference bandwidth has been changed using the show ip ospf | begin Ref
command.
R1#show ip ospf | begin Ref
Reference bandwidth unit is 1000
mbps Area BACKBONE(0) (Inactive)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:10:51.448 ago
SPF algorithm executed 3 times
Area ranges are
Number of LSA 3. Checksum Sum 0x019F16
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA
0 Number of DoNotAge LSA
0 Flood list length 0
Area 1
Number of interfaces in this area is 1
Area has no authentication
<Output omitted>
R1#
The output confirms that the reference bandwidth has been changed to distinguish GigabitEthernet interfaces. The
output also confirms that R1 is in two areas and has two link-state databases (LSDBs).
Note: Area 0 is currently inactive because there are no other peers configured.
d. On R1, verify the active OSPF interfaces using the show ip ospf interface brief command.
R1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Gi0/0 123 0 172.16.0.2/30 1 DR 0/0
Gi0/1 123 1 10.10.0.1/30 1 BDR 1/1
R1#
e. On R1, verify which OSPF neighbors R1 has established an adjacency with using the show ip ospf
neighbor command.
R1#show ip ospf neighbor
The output confirms that R1 has one neighbor (i.e., 1.1.1.2 = S1), they have a full adjacency established, the IP
address of S1 is 10.10.0.2, and R1 can reach S1 using its G0/1 interface.
Lab-7- Implement Multi-Area OSPFv2
f. On R1, use the show ip ospf neighbor detail command to get additional neighbor information.
R1# show ip ospf neighbor detail
Neighbor 1.1.1.2, interface address 10.10.0.2
In the area 1 via interface GigabitEthernet0/1
Neighbor priority is 1, State is FULL, 6 state changes
DR is 10.10.0.2 BDR is 10.10.0.1
Options is 0x12 in Hello (E-bit, L-bit)
Options is 0x52 in DBD (E-bit, L-bit, O-bit)
LLS Options is 0x1 (LR)
Dead timer due in 00:00:38
Neighbor is up for
00:16:37
Index 1/1/1, retransmission queue length 0, number of retransmission
0 First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
R1#
As shown, the output confirms various information about the OSPF neighbor including DR and BDR status.
g. On R1, verify the OSPF routes in the routing table using the show ip route ospf command.
R1#show ip route ospf | begin Gateway
Gateway of last resort is not set
The output displays entries for the S1 LANs. The O designation identifies these as OSPF internal routes.
Network routes learned from other OSPF routers in the same area are known as intra-area routes and are
identified in the IP routing table with an O.
h. On R1, get detailed information about the OSPF entry using the show ip route ospf 10.10.1.0 command.
R1#show ip route 10.10.1.0
Routing entry for 10.10.1.0/24
Known via "ospf 123", distance 110, metric 2, type intra area
Last update from 10.10.0.2 on GigabitEthernet0/1, 00:25:25
ago Routing Descriptor Blocks:
* 10.10.0.2, from 1.1.1.2, 00:25:25 ago, via GigabitEthernet0/1
Route metric is 11, traffic share count is 1
The output confirms that R1 learned about the intra-area route 10.10.1.0 from 10.10.0.2 with a router ID
of 1.1.1.2 in OSPF 123.
Lab-7- Implement Multi-Area OSPFv2
b. On R2, propagate a default route to the internet. In our lab, Lo0 represents the internet.
R2(config-router)#default-information originate
R2(config-router)#exit
R2(config)#
R2(config)#ip route 0.0.0.0 0.0.0.0 lo0
%Default route without gateway, if not a point-to-point interface, may
impact performance
R2(config)# exit
R2#
Lab-7- Implement Multi-Area OSPFv2
c. On R2, verify the OSPF configuration using the show ip protocols command.
R2#show ip protocols | begin ospf
Routing Protocol is "ospf 123"
Outgoing update filter list for all interfaces is not
set Incoming update filter list for all interfaces is
not set Router ID 2.2.2.1
It is an autonomous system boundary
router Redistributing External Routes
from,
Number of areas in this router is 1. 1 normal 0 stub 0
nssa Maximum path: 4
Routing for Networks:
172.16.0.0 0.0.0.3 area 0
172.16.1.0 0.0.0.3 area 0
Routing Information Sources:
Gateway Distance Last Update
1.1.1.1 110 00:24:29
Distance: (default is 110)
Again, this output confirms the router ID chosen, number of areas R2 is in (i.e., 1), networks advertised, and that it
has established an adjacency and exchanged routing information with R1 (i.e., 1.1.1.1). R2 does not have an
adjacency with S1 because it is in another area.
Notice as well, that it explicitly states that R2 is an autonomous system boundary router (ASBR). This is because it is
now propagating a default route to all other routers in the OSPF domain.
d. On R2, verify that the reference bandwidth has been changed as shown.
R2#show ip ospf | begin Ref
Reference bandwidth unit is 1000
mbps Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:02:27.531 ago
SPF algorithm executed 5 times
<Output omitted>
The output confirms that the reference bandwidth has been changed and also confirms that R2 has two interfaces in its
link-state database (LSDB).
e. On R2, verify the active OSPF interfaces and assigned areas using the show ip ospf interface brief
command.
R2#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Gi0/1 123 0 172.16.1.1/30 1 DR 0/0
Gi0/0 123 0 172.16.0.1/30 1 BDR 1/1
The output confirms that the two interfaces are in Area 0, their IP addresses, state, and neighbors.
Lab-7- Implement Multi-Area OSPFv2
The output confirms that R2 has one fully adjacent neighbor (i.e., 1.1.1.1 = R1).
g. On R2, use the show ip ospf neighbor detail command for more neighbor information.
R2#show ip ospf neigh detail
Neighbor 1.1.1.1, interface address 172.16.0.2, interface-id
5 In the area 0 via interface GigabitEthernet0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 172.16.0.2 BDR is 172.16.0.1
Options is 0x12 in Hello (E-bit, L-bit)
<Output omitted>
The output confirms various information about the OSPF neighbor including DR and BDR status.
h. On R2, verify the OSPF routes in the routing table using the show ip route ospf command.
R2#show ip route ospf | begin Gateway
The output displays that there is now a default gateway and two entries for the OSPF Area 1 networks. Notice how
these routes are identified as O IA which means they are routes from another area. Network routes learned from
OSPF routers in another area using an ABR are known as interarea routes as opposed to intra-area routes.
Loopback0
Lab-7- Implement Multi-Area OSPFv2
b. On R3, verify the active OSPF interfaces using the show ip ospf interface brief command.
R3#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Gi0/0 123 0 172.16.1.2/30 10 BDR 1/1
Gi0/1 123 2 10.10.4.1/30 1 DR 0/0
The output confirms the interfaces, process ID, areas, IP addresses, cost, state, and neighbors.
c. On R3, verify the OSPF routes in the routing table using the show ip route ospf command.
R3#show ip route ospf | begin Gateway
Gateway of last resort is 172.16.1.1 to network 0.0.0.0
The output verifies that R3 has received a default route from R2, 4 interarea routes (i.e., O IA routes) and one intra-
area OSPF route (i.e., O routes). The O*E2 route indicates that this is an external route that did not originate
in OSPF. The asterisk identifies this as a candidate default route.
Lab-7- Implement Multi-Area OSPFv2
b. On S2, summarize the 10.10.16.0 – 10.10.23.0 networks as 10.10.16.0/19 configure an accommodating network
statement as shown.
S2(config-router)#network 10.10.16.0 0.0.7.255 area 2
S2(config-router)#end
c. On S2, verify the OSPF configuration on S2 using the show ip protocols command.
S2#show ip protocols | begin ospf
Routing Protocol is "ospf 123"
Outgoing update filter list for all interfaces is not
set Incoming update filter list for all interfaces is
not set Router ID 3.3.3.2
Number of areas in this router is 1. 1 normal 0 stub 0
nssa Maximum path: 4
Routing for Networks:
10.10.4.0 0.0.0.3 area 2
10.10.5.0 0.0.0.255 area 2
10.10.16.0 0.0.7.255 area
2 Routing Information
Sources:
Gateway Distance Last Update
3.3.3.1 110 00:00:41
2.2.2.1 110 00:00:42
Distance: (default is 110)
S2#
Lab-7- Implement Multi-Area OSPFv2
As expected, we can verify the router ID, number of areas, networks being advertised, and routing sources.
It may be surprising that R2 (i.e., 2.2.2.1) is displayed as a routing source. The reason is because it is the
source of the default route.
d. On S2, verify the active OSPF interfaces and assigned areas using the show ip ospf interface brief
command.
S2#show ip ospf int brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 123 2 10.10.5.1/24 1 P2P 0/0
Lo16 123 2 10.10.16.1/24 1 P2P 0/0
Lo17 123 2 10.10.17.1/24 1 P2P 0/0
Lo18 123 2 10.10.18.1/24 1 P2P 0/0
Lo19 123 2 10.10.19.1/24 1 P2P 0/0
Lo20 123 2 10.10.20.1/24 1 P2P 0/0
Lo21 123 2 10.10.21.1/24 1 P2P 0/0
Lo22 123 2 10.10.22.1/24 1 P2P 0/0
Lo23 123 2 10.10.23.1/24 1 P2P 0/0
Fa0/11 123 2 10.10.4.2/30 1 BDR 1/1
S2#
The output confirms that all configured interfaces are in Area 2 and their IP addresses are correct.
e. On S2, verify adjacent OSPF neighbors using the show ip ospf neighbor command.
S2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.1 1 FULL/DR 00:00:37 10.10.4.1 FastEthernet0/11
S2#
The output confirms that S2 has one fully-adjacent neighbor (i.e., 3.3.3.1= R3).
f. On S2, verify the OSPF routes using the show ip route ospf command.
S2#show ip route ospf
172.16.0.0/30 is subnetted, 2 subnets
O IA 172.16.0.0 [110/12] via 10.10.4.1, 00:06:45, FastEthernet0/11
O IA 172.16.1.0 [110/11] via 10.10.4.1, 00:06:45, FastEthernet0/11
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
O IA 10.10.0.0/30 [110/13] via 10.10.4.1, 00:06:45, FastEthernet0/11
O IA 10.10.1.0/24 [110/14] via 10.10.4.1, 00:06:45, FastEthernet0/11
O IA 10.10.2.0/24 [110/14] via 10.10.4.1, 00:13:11, FastEthernet0/11
O IA 10.10.3.0/24 [110/14] via 10.10.4.1, 00:13:11, FastEthernet0/11
O*E2 0.0.0.0/0 [110/1] via 10.10.4.1, 00:06:45,
FastEthernet0/11 S2#
The output displays 6 interarea routes (i.e., O IA routes) and the OSPF external route from 2.2.2.1(R2).
Lab-7- Implement Multi-Area OSPFv2
b. On S1, do an extended ping to the 10.10.23.1 network using the IP address of Lo2 as shown.
S1#ping 10.10.23.1 source lo2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.23.1, timeout is 2
seconds: Packet sent with a source address of 10.10.2.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/8
ms S1#
The output confirms that R1 (i.e., 1.1.1.1) is a neighbor and is the BDR on the link. Therefore, S1 must be the DR.
Lab-7- Implement Multi-Area OSPFv2
b. On S1, verify the contents of the LSDB using the show ip ospf database command.
S1# show ip ospf database
Notice how the command output is divided into the following five sections:
o Router Link States – These are the type 1 LSAs received by S1 and they identify the routers (i.e.,
1.1.1.1 = R1, 1.1.1.2 = S1) in Area 1 that sent them, and the number of links that the routers have in the area.
Therefore, R1 only has one interface in Area 1 and S1 has 4 interfaces in Area 1.
o Net Link States – These are the type 2 LSAs generated by the DR. In our example, the DR is 1.1.1.2 (i.e.,
S1) on the link 10.10.0.2.
o Summary Net Link States – These are the type 3 LSAs describing remote networks (i.e., our O IA
networks or interarea routes) and the router that advertised them to S1.
o Summary ASB Link States – This is a type 4 LSA sent by the ABR (i.e., 1.1.1.1 = R1) advertising that
there is an ASBR in the network (i.e., 2.2.2.1).
o Type-5 AS External Link States – This is a type 5 LSA advertising a default route (i.e., 0.0.0.0) and the
router that is advertising it (i.e., 2.2.2.1).
Additional information about the Router Link States type 1 LSA can be gathered using the following show ip ospf
database command.
The output displays the type 1, 2, and 3 LSAs in Area 0, and then lists the type 1, 2, 3, and 4 LSAs in Area 1. The
last section displays the type 5 LSAs
Lab-7- Implement Multi-Area OSPFv2
1- Copy and paste a Screen Shot output from your Setup to the Table below and Demo it
to your Instructor
2- Submit your Lab document to BrighTSpace with names of your team members
Show or ping
Node command Paste a Screen shot from your setup below
S1
(2.5
points show ip
) protocols |
begin ospf
S1
(2.5
show ip ospf
points
interface brief
)
S1
show ip ospf
(2.5
points neighbor
)
show ip route
S1 ospf
(2.5
points
)