2.5.3 Packet Tracer - Propagate a Default Route in OSPFv2 (Answers)

2.5.3 Packet Tracer - Propagate a Default Route in OSPFv2 Answers

Topology

2.5.3 Packet Tracer – Propagate a Default Route in OSPFv2

2.5.3 Packet Tracer – Propagate a Default Route in OSPFv2

Addressing Table

Device Interface IPv4 Address Subnet Mask Default Gateway
R1 G0/0 172.16.1.1 255.255.255.0 N/A
S0/0/0 172.16.3.1 255.255.255.252
S0/0/1 192.168.10.5 255.255.255.252
R2 G0/0 172.16.2.1 255.255.255.0 N/A
S0/0/0 172.16.3.2 255.255.255.252
S0/0/1 192.168.10.9 255.255.255.252
S0/1/0 209.165.200.225 255.255.255.224
R3 G0/0 192.168.1.1 255.255.255.0 N/A
S0/0/0 192.168.10.6 255.255.255.252
S0/0/1 192.168.10.10 255.255.255.252
PC1 NIC 172.16.1.2 255.255.255.0 172.16.1.1
PC2 NIC 172.16.2.2 255.255.255.0 172.16.2.1
PC3 NIC 192.168.1.2 255.255.255.0 192.168.1.1
Web Server NIC 64.100.1.2 255.255.255.0 64.100.1.1

Objectives

  • Part 1: Propagate a Default Route
  • Part 2: Verify Connectivity

Background

In this activity, you will configure an IPv4 default route to the Internet and propagate that default route to other OSPF routers. You will then verify the default route is in downstream routing tables and that hosts can now access a web server on the Internet.

Instructions

Part 1: Propagate a Default Route

Step 1: Test connectivity to the Web Server

a. From PC1, PC2, and PC3, attempt to ping the Web Server IP address, 64.100.1.2.

C:\> ping 64.100.1.2

Pinging 64.100.1.2 with 32 bytes of data:

Reply from 172.16.1.1: Destination host unreachable.
Reply from 172.16.1.1: Destination host unreachable.
Reply from 172.16.1.1: Destination host unreachable.
Reply from 172.16.1.1: Destination host unreachable.

Ping statistics for 64.100.1.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\> ping 64.100.1.2
C:\> ping 64.100.1.2

Were any of the pings successful?
No.

What message did you receive, and which device issued the message?
Destination host unreachable. The message is sent by the default gateway router of the PC (for PC1, R1 at 172.16.1.1), because no router has a route to 64.100.1.2.

b. Examine the routing tables on routers R1, R2, and R3.

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

     172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
C       172.16.1.0/24 is directly connected, GigabitEthernet0/0
L       172.16.1.1/32 is directly connected, GigabitEthernet0/0
O       172.16.2.0/24 [110/65] via 172.16.3.2, 00:06:04, Serial0/0/0
C       172.16.3.0/30 is directly connected, Serial0/0/0
L       172.16.3.1/32 is directly connected, Serial0/0/0
O    192.168.1.0/24 [110/65] via 192.168.10.6, 00:06:04, Serial0/0/1
     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.10.4/30 is directly connected, Serial0/0/1
L       192.168.10.5/32 is directly connected, Serial0/0/1
O       192.168.10.8/30 [110/128] via 192.168.10.6, 00:06:04, Serial0/0/1
                        [110/128] via 172.16.3.2, 00:06:04, Serial0/0/0
     209.165.200.0/27 is subnetted, 1 subnets
O       209.165.200.224/27 [110/128] via 172.16.3.2, 00:06:04, Serial0/0/0
R2# 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

     172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
O       172.16.1.0/24 [110/65] via 172.16.3.1, 00:06:31, Serial0/0/0
C       172.16.2.0/24 is directly connected, GigabitEthernet0/0
L       172.16.2.1/32 is directly connected, GigabitEthernet0/0
C       172.16.3.0/30 is directly connected, Serial0/0/0
L       172.16.3.2/32 is directly connected, Serial0/0/0
O    192.168.1.0/24 [110/65] via 192.168.10.10, 00:06:31, Serial0/0/1
     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
O       192.168.10.4/30 [110/128] via 192.168.10.10, 00:06:31, Serial0/0/1
                        [110/128] via 172.16.3.1, 00:06:31, Serial0/0/0
C       192.168.10.8/30 is directly connected, Serial0/0/1
L       192.168.10.9/32 is directly connected, Serial0/0/1
     209.165.200.0/24 is variably subnetted, 2 subnets, 2 masks
C       209.165.200.224/27 is directly connected, Serial0/1/0
L       209.165.200.225/32 is directly connected, Serial0/1/0
R3# 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

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
O       172.16.1.0/24 [110/65] via 192.168.10.5, 00:06:52, Serial0/0/0
O       172.16.2.0/24 [110/65] via 192.168.10.9, 00:06:52, Serial0/0/1
O       172.16.3.0/30 [110/128] via 192.168.10.9, 00:06:52, Serial0/0/1
                      [110/128] via 192.168.10.5, 00:06:52, Serial0/0/0
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/24 is directly connected, GigabitEthernet0/0
L       192.168.1.1/32 is directly connected, GigabitEthernet0/0
     192.168.10.0/24 is variably subnetted, 4 subnets, 2 masks
C       192.168.10.4/30 is directly connected, Serial0/0/0
L       192.168.10.6/32 is directly connected, Serial0/0/0
C       192.168.10.8/30 is directly connected, Serial0/0/1
L       192.168.10.10/32 is directly connected, Serial0/0/1
     209.165.200.0/27 is subnetted, 1 subnets
O       209.165.200.224/27 [110/128] via 192.168.10.9, 00:06:52, Serial0/0/1

What statement is present in the routing tables that indicates that the pings to the Web Server will fail?
Gateway of last resort is not set

Step 2: Configure a default route on R2.

Configure R2 with a directly attached default route to the Internet.

R2(config)# ip route 0.0.0.0 0.0.0.0 Serial0/1/0

Note: Router will give a warning that if this interface is not a point-to-point connection, it may impact performance. You can ignore this warning because it is a point-to-point connection.

Step 3: Propagate the route in OSPF.

Configure OSPF to propagate the default route in OSPF routing updates.

R2(config)# router ospf 1
R2(config-router)# default-information originate
Step 4: Examine the routing tables on R1 and R3.

Examine the routing tables of R1 and R3 to verify that the route has been propagated.

R1> show ip route
<output omitted>
Gateway of last resort is 172.16.3.2 to network 0.0.0.0
<output omitted>
O*E2 0.0.0.0/0 [110/1] via 172.16.3.2, 00:00:08, Serial0/0/0
R3> show ip route
<output omitted>
Gateway of last resort is 192.168.10.9 to network 0.0.0.0
<output omitted>
O*E2 0.0.0.0/0 [110/1] via 192.168.10.9, 00:08:15, Serial0/0/1

Part 2: Verify Connectivity

Verify that PC1, PC2, and PC3 can ping the web server.

C:\> ping 64.100.1.2
C:\> ping 64.100.1.2
C:\> ping 64.100.1.2

Device Configs - Final

ROUTER R2

! ==============================================================
!--- 2.5.3 Packet Tracer - Propagate a Default Route in OSPFv2
!--- ANSWER SCRIPT FOR ROUTER R2
!--- Usage: open the R2 CLI and paste this whole file at the R2> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1, Step 2: Configure a default route on R2.
! --------------------------------------------------------------

!--- Directly attached default route to the Internet through S0/1/0.
ip route 0.0.0.0 0.0.0.0 Serial0/1/0

! --------------------------------------------------------------
!--- Part 1, Step 3: Propagate the route in OSPF.
! --------------------------------------------------------------

!--- Send the default route to R1 and R3 in OSPF updates.
router ospf 1
 default-information originate
 exit

end

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


! ==============================================================
!--- Verification:
!---   show ip route static        -> S* 0.0.0.0/0 is directly connected, Serial0/1/0
!---   show ip route (on R1)       -> Gateway of last resort is 172.16.3.2, O*E2 0.0.0.0/0 via Serial0/0/0
!---   show ip route (on R3)       -> Gateway of last resort is 192.168.10.9, O*E2 0.0.0.0/0 via Serial0/0/1
!---   ping 64.100.1.2 (from PCs)  -> the Web Server replies
!--- Note: the warning about a default route without a gateway on a non point-to-point interface is
!--- expected; S0/1/0 is a point-to-point link, so it can be ignored.
! ==============================================================

Download Packet Tracer (.pka) file:

Subscribe
Notify of
guest

0 Corrections & Clarifications