9.2.1 Packet Tracer - Implement Multiarea OSPFv2 (Answers)

9.2.1 Packet Tracer - Implement Multiarea OSPFv2 (Answers)

Topology

9.2.1 Packet Tracer - Implement Multiarea OSPFv2

9.2.1 Packet Tracer - Implement Multiarea OSPFv2

Addressing Table

Device Interface IP Address Subnet Mask OSPFv2 Area
R1 G0/0 10.1.1.1 255.255.255.0 1
G0/1 10.1.2.1 255.255.255.0 1
S0/0/0 192.168.10.2 255.255.255.252 0
R2 G0/0 10.2.1.1 255.255.255.0 0
S0/0/0 192.168.10.1 255.255.255.252 0
S0/0/1 192.168.10.5 255.255.255.252 0
R3 G0/0 192.168.2.1 255.255.255.0 2
G0/1 192.168.1.1 255.255.255.0 2
S0/0/1 192.168.10.6 255.255.255.252 0

Objectives

  • Part 1: Configure Multiarea OSPFv2
  • Part 2: Verify and Examine Multiarea OSPFv2

Background

In this activity, you will configure multiarea OSPFv2. The network is already connected and interfaces are configured with IPv4 addressing. Your job is to enable multiarea OSPFv2, verify connectivity, and examine the operation of multiarea OSPFv2.

Instructions

Part 1: Configure OSPFv2

Step 1: Configure OSPFv2 on R1.

Configure OSPFv2 on R1 with a process ID of 1 and a router ID of 1.1.1.1.

R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
Step 2: Advertise each directly connected network in OSPFv2 on R1.

Configure each network in OSPFv2 assigning areas according to the Addressing Table.

R1(config-router)# network 10.1.1.0 0.0.0.255 area 1
R1(config-router)# network 10.1.2.0 0.0.0.255 area 1
R1(config-router)# network 192.168.10.0 0.0.0.3 area 0
Step 3: Configure OSPFv2 on R2 and R3.

Repeat the steps above for R2 and R3 using a router ID of 2.2.2.2 and 3.3.3.3, respectively.

R2:

R2(config)# router ospf 1
R2(config-router)# router-id 2.2.2.2
R2(config-router)# network 10.2.1.0 0.0.0.255 area 0
R2(config-router)# network 192.168.10.0 0.0.0.3 area 0
R2(config-router)# network 192.168.10.4 0.0.0.3 area 0

R3:

R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
R3(config-router)# network 192.168.2.0 0.0.0.255 area 2
R3(config-router)# network 192.168.1.0 0.0.0.255 area 2
R3(config-router)# network 192.168.10.4 0.0.0.3 area 0

Part 2: Verify and Examine Multiarea OSPFv2

Step 1: Verify connectivity to each of the OSPFv2 areas.

From R1, ping each of the following remote devices in area 0 and area 2: 192.168.1.2, 192.168.2.2, and 10.2.1.2.

R1# ping 192.168.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/7/14 ms
R1# ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 7/9/14 ms
R1# ping 10.2.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/14 ms
Step 2: Use show commands to examine the current OSPFv2 operations.

Use the following commands to gather information about your OSPFv2 multiarea implementation.

R1# show ip protocols

Routing Protocol is "ospf 1"
  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
  Number of areas in this router is 2. 2 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.1.1.0 0.0.0.255 area 1
    10.1.2.0 0.0.0.255 area 1
    192.168.10.0 0.0.0.3 area 0
  Routing Information Sources:
    Gateway         Distance      Last Update
    1.1.1.1              110      00:08:12
    2.2.2.2              110      00:08:03
    3.3.3.3              110      00:08:03
    4.4.4.4              110      00:08:03
    5.5.5.5              110      00:08:12
    9.9.9.9              110      00:08:12
  Distance: (default is 110)
R1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C       10.1.1.0/24 is directly connected, GigabitEthernet0/0
L       10.1.1.1/32 is directly connected, GigabitEthernet0/0
C       10.1.2.0/24 is directly connected, GigabitEthernet0/1
L       10.1.2.1/32 is directly connected, GigabitEthernet0/1
O       10.2.1.0/24 [110/65] via 192.168.10.1, 00:08:07, Serial0/0/0
O IA 192.168.1.0/24 [110/129] via 192.168.10.1, 00:07:57, Serial0/0/0
O IA 192.168.2.0/24 [110/129] via 192.168.10.1, 00:07:57, Serial0/0/0
     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.10.0/30 is directly connected, Serial0/0/0
L       192.168.10.2/32 is directly connected, Serial0/0/0
O       192.168.10.4/30 [110/128] via 192.168.10.1, 00:08:07, Serial0/0/0
R1# show ip ospf database
            OSPF Router with ID (1.1.1.1) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         506         0x80000002 0x000ec0 2
2.2.2.2         2.2.2.2         497         0x80000006 0x0011f2 5
4.4.4.4         4.4.4.4         497         0x80000002 0x00db3a 1
3.3.3.3         3.3.3.3         497         0x80000002 0x0006b0 2

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.2.1.2        4.4.4.4         502         0x80000001 0x004c17

                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.1.1.0        1.1.1.1         511         0x80000001 0x00db72
10.1.2.0        1.1.1.1         511         0x80000002 0x00ce7d
192.168.2.0     3.3.3.3         489         0x80000001 0x007175
192.168.1.0     3.3.3.3         489         0x80000002 0x007a6c

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count
5.5.5.5         5.5.5.5         506         0x80000002 0x00917c 1
1.1.1.1         1.1.1.1         506         0x80000005 0x00837c 2
9.9.9.9         9.9.9.9         506         0x80000002 0x004aa5 1

                Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.1.2.2        5.5.5.5         506         0x80000001 0x001f22
10.1.1.2        9.9.9.9         506         0x80000001 0x001930

                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
192.168.10.0    1.1.1.1         501         0x80000001 0x00bbee
10.2.1.0        1.1.1.1         492         0x80000002 0x0050bb
192.168.10.4    1.1.1.1         492         0x80000003 0x001252
192.168.2.0     1.1.1.1         482         0x80000004 0x00acbe
192.168.1.0     1.1.1.1         482         0x80000005 0x00b5b5
R1# show ip ospf interface

Serial0/0/0 is up, line protocol is up
  Internet address is 192.168.10.2/30, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type POINT-TO-POINT, Cost: 64
  Transmit Delay is 1 sec, State POINT-TO-POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1 , Adjacent neighbor count is 1
    Adjacent with neighbor 2.2.2.2
  Suppress hello for 0 neighbor(s)
GigabitEthernet0/0 is up, line protocol is up
  Internet address is 10.1.1.1/24, Area 1
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 9.9.9.9, Interface address 10.1.1.2
  Backup Designated Router (ID) 1.1.1.1, Interface address 10.1.1.1
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 9.9.9.9  (Designated Router)
  Suppress hello for 0 neighbor(s)
GigabitEthernet0/1 is up, line protocol is up
  Internet address is 10.1.2.1/24, Area 1
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 5.5.5.5, Interface address 10.1.2.2
  Backup Designated Router (ID) 1.1.1.1, Interface address 10.1.2.1
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 3/3, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 5.5.5.5  (Designated Router)
  Suppress hello for 0 neighbor(s)
R1# show ip ospf neighbor


Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           0   FULL/  -        00:00:30    192.168.10.1    Serial0/0/0
5.5.5.5           1   FULL/DR         00:00:31    10.1.2.2        GigabitEthernet0/1
9.9.9.9           1   FULL/DR         00:00:31    10.1.1.2        GigabitEthernet0/0

Reflection Questions

1. Which router(s) are internal routers?
R2

2. Which router(s) are backbone routers?
R1, R2, and R3 are all backbone routers.

3. Which router(s) are area border routers?
R1 and R3

4. Which router(s) are autonomous system routers?
None, all active interfaces on all three routers connect to an OSPF area.

5. Which routers are generating Type 1 LSAs?
All OSPF routers generate Type 1 LSAs.

6. Which routers are generating Type 2 LSAs?
Hidden routers in each of the areas that are DRs are. Router IDs 4.4.4.4, 5.5.5.5, 6.6.6.6, 9.9.9.9

7. Which routers are generating Type 3 LSAs?
R1 and R3 because each is an ABR and needs to flood area information from one area to the other.

8. Which routers are generating Type 4 and 5 LSAs?
None, because there is not an ASBR in the network.

9. How many inter area routes does each router have?
R1 and R3 have two IAs and R2 has 4 IAs.

10. Why would there usually be an ASBR in this type of network?
ASBR is used to connect external routing domains.

Device Configs - Final

Router R1

! ==============================================================
!--- 9.2.1 Packet Tracer - Implement Multiarea OSPFv2
!--- ANSWER SCRIPT FOR ROUTER R1 (Area Border Router: Area 1 <-> Area 0)
!--- Usage: copy this whole file and paste it into the R1 terminal (start at the R1> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
!--- Scope: IP addressing is already configured on all three routers
!--- per the activity's own Background note - this script only enables
!--- multiarea OSPFv2.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1, Steps 1-2: Configure OSPFv2 (process ID 1) on R1 and
!--- advertise each directly connected network with its correct area.
! --------------------------------------------------------------

router ospf 1

!--- Explicit router ID, as required.
 router-id 1.1.1.1

!--- LAN interfaces G0/0 and G0/1 both belong to Area 1.
 network 10.1.1.0 0.0.0.255 area 1
 network 10.1.2.0 0.0.0.255 area 1

!--- Serial link to R2 (S0/0/0) belongs to the Area 0 backbone -
!--- this is what makes R1 an Area Border Router (ABR).
 network 192.168.10.0 0.0.0.3 area 0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip ospf neighbor       -> FULL adjacency with R2 (192.168.10.1)
!---   show ip route ospf          -> O IA routes to 10.2.1.0/24, 192.168.1.0/24, 192.168.2.0/24
!---   show ip protocols           -> Router ID 1.1.1.1, area 1 and area 0 both listed
!---   ping 192.168.1.2 / ping 192.168.2.2 / ping 10.2.1.2  -> remote hosts in Area 2 and Area 0
!--- Note: R1 is an ABR (Area 1 <-> Area 0), so it originates Type 3
!--- (summary) LSAs carrying Area 2's routes into Area 1, and vice versa -
!--- that's why R1 sees Area 2's networks as O IA (inter-area) rather
!--- than O (intra-area).
! ==============================================================

Router R2

! ==============================================================
!--- 9.2.1 Packet Tracer - Implement Multiarea OSPFv2
!--- ANSWER SCRIPT FOR ROUTER R2 (internal backbone router, Area 0 only)
!--- Usage: copy this whole file and paste it into the R2 terminal (start at the R2> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
!--- Scope: IP addressing is already configured on all three routers
!--- per the activity's own Background note - this script only enables
!--- multiarea OSPFv2.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1, Step 3: Configure OSPFv2 (process ID 1) on R2 and
!--- advertise each directly connected network - all in Area 0.
! --------------------------------------------------------------

router ospf 1

!--- Explicit router ID, as required.
 router-id 2.2.2.2

!--- LAN interface G0/0 and both serial links to R1 and R3 all sit
!--- in the Area 0 backbone - R2 has no interfaces outside Area 0, so
!--- it is a purely internal backbone router (not an ABR).
 network 10.2.1.0 0.0.0.255 area 0
 network 192.168.10.0 0.0.0.3 area 0
 network 192.168.10.4 0.0.0.3 area 0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip ospf neighbor       -> FULL adjacency with R1 (192.168.10.2) and R3 (192.168.10.6)
!---   show ip route ospf          -> O IA routes to 10.1.1.0/24, 10.1.2.0/24, 192.168.1.0/24, 192.168.2.0/24 (4 inter-area routes)
!---   show ip protocols           -> Router ID 2.2.2.2, single area (0) listed
! ==============================================================

Router R3

! ==============================================================
!--- 9.2.1 Packet Tracer - Implement Multiarea OSPFv2
!--- ANSWER SCRIPT FOR ROUTER R3 (Area Border Router: Area 2 <-> Area 0)
!--- Usage: copy this whole file and paste it into the R3 terminal (start at the R3> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
!--- Scope: IP addressing is already configured on all three routers
!--- per the activity's own Background note - this script only enables
!--- multiarea OSPFv2.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1, Step 3: Configure OSPFv2 (process ID 1) on R3 and
!--- advertise each directly connected network with its correct area.
! --------------------------------------------------------------

router ospf 1

!--- Explicit router ID, as required.
 router-id 3.3.3.3

!--- LAN interfaces G0/0 and G0/1 both belong to Area 2.
 network 192.168.2.0 0.0.0.255 area 2
 network 192.168.1.0 0.0.0.255 area 2

!--- Serial link to R2 (S0/0/1) belongs to the Area 0 backbone -
!--- this is what makes R3 an Area Border Router (ABR).
 network 192.168.10.4 0.0.0.3 area 0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip ospf neighbor       -> FULL adjacency with R2 (192.168.10.5)
!---   show ip route ospf          -> O IA routes to 10.1.1.0/24, 10.1.2.0/24, 10.2.1.0/24
!---   show ip protocols           -> Router ID 3.3.3.3, area 2 and area 0 both listed
!---   ping 10.1.1.2 / ping 10.2.1.2  -> remote hosts in Area 1 and Area 0
!--- Note: R3 is an ABR (Area 2 <-> Area 0), same role as R1 - it
!--- originates Type 3 LSAs to flood Area 1's routes into Area 2, and
!--- Area 2's routes into Area 0.
! ==============================================================

Download 9.2.1 Packet Tracer - Implement Multiarea OSPFv2 .PKA file:

Subscribe
Notify of
guest

0 Corrections & Clarifications