16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode Answers

Packet Tracer Packet Tracer Labs Original source

16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode Answers

Topology

16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode topology

Addressing Table

Device Interface IP Address / Prefix Default Gateway
R1 G0/0/0 192.168.0.1/28 N/A
2001:db8:acad::1/64
G0/0 192.168.0.17/28
2001:db8:acad:16::1/64
G0/1 172.16.1.1/24
2001:db8:acad:171::1/64
G0/2 209.165.200.1/25
2001:db8:acad:209::1/64
R2 G0/0/0 192.168.0.14/28 N/A
2001:db8:acad::14/64
G0/0 192.168.0.30/28
2001:db8:acad:16::2/64
G0/1 172.16.2.1/24
2001:db8:acad:172::1/64
G0/2 209.165.200.129/25
2001:db8:acad:210::1/64
PC1 NIC 172.16.1.2/24 172.16.1.1
2001:db8:acad:171::2/64 fe80::1
PC2 NIC 209.165.200.2/25 209.165.200.1
2001:db8:acad:209::2/64 fe80::1
PC3 NIC 172.16.2.2/24 172.16.2.1
2001:db8:acad:172::2/64 fe80::2
PC4 NIC 209.165.200.130/25 209.165.200.129
2001:db8:acad:210::2/64 fe80::2

Objectives

Background / Scenario

All the network devices in this Packet Tracer Physical Mode (PTPM) activity have been preconfigured to include intentional errors that are preventing the network from routing as intended. Your task is to evaluate the network, identify, and correct the configuration errors to restore full connectivity. You may find errors with the route statements or with other configurations that impact the accuracy of the route statements.

Note: The static routing approach used in this activity is used to assess your ability to configure different types of static routes only. This approach may not reflect networking best practices.

Contents

Instructions

Part 1: Evaluate Network Operation

Use the ping and/or traceroute commands from the router to test the following criteria and record the results.

Note: Use the PCs in the wiring closet to gain console access to networking devices in order to explore and change the device configurations.

Criterion Expected first hop Result before the fixes After the fixes (final check)
R1 to 172.16.2.1 192.168.0.14 ✘ no reply (* * *) ✔ R2 reached in one hop; next hop 192.168.0.14 (routing table)
R1 to 209.165.200.129 192.168.0.30 ✘ no reply (* * *) ✔ 192.168.0.30
R1 to 172.16.2.1, R1 G0/0/0 down 192.168.0.30 ✘ no reply (* * *) ✔ 192.168.0.30
R2 to 2001:db8:acad:171::1 2001:DB8:ACAD::1 ✔ 2001:DB8:ACAD::1 ✔ 2001:DB8:ACAD::1
R2 to 2001:db8:acad:209::1 2001:DB8:ACAD:16::1 ✘ 2001:DB8:ACAD::1 ✔ 2001:DB8:ACAD:16::1
R2 to 2001:db8:acad:171::1, R2 G0/0/0 down 2001:DB8:ACAD:16::1 ✘ no reply (* * *) ✔ 2001:DB8:ACAD:16::1

What we learned:
Five of the six criteria fail. Only the IPv6 trace from R2 to 2001:db8:acad:171::1 already uses the expected next hop, and only because the primary default route (AD 90) is the only IPv6 default route that R2 can install. The trace to 2001:db8:acad:209::1 follows the same default route instead of a specific route through the switches, and there is no working backup path when G0/0/0 is down.

Part 2: Gather Information, Create an Action Plan, and Implement Corrections

a. For each criterion that is not met, gather information by examining the running configuration and routing tables to develop a hypothesis for what is causing the malfunction.

R1:

Copy

R1# show running-config | include ip route

ip route 209.165.200.128 255.255.255.128 192.168.0.3

ip route 0.0.0.0 0.0.0.0 192.168.0.14 80

ip route 0.0.0.0 0.0.0.0 192.168.0.3

R2:

Copy

R2# show running-config | include ipv6 route

ipv6 route 2001:DB8:ACAD:209::/64 2001:DB7:ACAD:16::1

ipv6 route ::/0 2001:DB8:ACAD::1 90

ipv6 route ::/0 2001:DB8:ACAD:15::1

Compare the static routes with the routing tables:

Copy

R1# show ip route static

     209.165.200.0/24 is variably subnetted, 3 subnets, 2 masks

S       209.165.200.128/25 [1/0] via 192.168.0.3

S*   0.0.0.0/0 [1/0] via 192.168.0.3

Copy

R2# show ipv6 route

IPv6 Routing Table - 10 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP

       U - Per-user Static route, M - MIPv6

       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary

       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect

       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2

       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2

       D - EIGRP, EX - EIGRP external

S   ::/0 [90/0]

     via 2001:DB8:ACAD::1

C   2001:DB8:ACAD::/64 [0/0]

     via GigabitEthernet0/0/0, directly connected

L   2001:DB8:ACAD::14/128 [0/0]

     via GigabitEthernet0/0/0, receive

C   2001:DB8:ACAD:16::/64 [0/0]

     via GigabitEthernet0/0, directly connected

L   2001:DB8:ACAD:16::2/128 [0/0]

     via GigabitEthernet0/0, receive

C   2001:DB8:ACAD:172::/64 [0/0]

     via GigabitEthernet0/1, directly connected

L   2001:DB8:ACAD:172::1/128 [0/0]

     via GigabitEthernet0/1, receive

C   2001:DB8:ACAD:210::/64 [0/0]

     via GigabitEthernet0/2, directly connected

L   2001:DB8:ACAD:210::1/128 [0/0]

     via GigabitEthernet0/2, receive

L   FF00::/8 [0/0]

     via Null0, receive

What we learned:
R1: the default route installed is the one via 192.168.0.3 with AD 1; the route via 192.168.0.14 (AD 80) loses and does not appear. The route to 209.165.200.128/25 also points to 192.168.0.3, an address that no device uses, so all R1 traffic is lost.

R2: the only IPv6 static route installed is ::/0 [90/0] via 2001:DB8:ACAD::1. The routes via 2001:DB7:ACAD:16::1 and 2001:DB8:ACAD:15::1 are missing from the table: their next hops are not in any connected IPv6 network, so the router cannot resolve them and does not install the routes.

Primary and backup paths

R1 and R2 are connected by two parallel paths: the direct G0/0/0 link and the path through the switches (R1 G0/0 > S1 > S2 > R2 G0/0). The static routes must use them as follows:

Traffic Primary path (AD 1) Backup path (floating, AD 80)
R1 IPv4 default route (to 172.16.2.0/24 and beyond) G0/0/0 > next hop 192.168.0.14 G0/0 > S1 > S2 > next hop 192.168.0.30
R1 to 209.165.200.128/25 (PC4 LAN) Always through the switches: next hop 192.168.0.30 –
R2 IPv6 default route (to 2001:DB8:ACAD:171::/64 and beyond) G0/0/0 > next hop 2001:DB8:ACAD::1 G0/0 > S2 > S1 > next hop 2001:DB8:ACAD:16::1
R2 to 2001:DB8:ACAD:209::/64 (PC2 LAN) Always through the switches: next hop 2001:DB8:ACAD:16::1 –
Problem 1: Wrong next hop in the routes to the 209 networks

R1: ip route 209.165.200.128 255.255.255.128 192.168.0.3 – no device uses 192.168.0.3; R2 G0/0 is 192.168.0.30. R2: ipv6 route 2001:DB8:ACAD:209::/64 2001:DB7:ACAD:16::1 – the next hop has a typo (DB7 instead of DB8).

Problem 2: The primary default routes have a high administrative distance

R1: ip route 0.0.0.0 0.0.0.0 192.168.0.14 80; R2: ipv6 route ::/0 2001:DB8:ACAD::1 90. The primary route through the direct G0/0/0 link must use the default AD (1).

Problem 3: The floating default routes use AD 1 and a wrong next hop

R1: ip route 0.0.0.0 0.0.0.0 192.168.0.3; R2: ipv6 route ::/0 2001:DB8:ACAD:15::1. With AD 1 these backup routes win over the primary routes, and their next hops do not exist. The backup path is through the switches (R2 G0/0 192.168.0.30, R1 G0/0 2001:DB8:ACAD:16::1) and needs a higher AD (80).

Key concept: floating static routes and administrative distance
When a router has two routes to the same network, it installs the one with the lowest administrative distance (AD). A static route has AD 1 by default. A floating static route is a backup route configured with a higher AD (here 80): it stays out of the routing table while the primary route exists, and it "floats" into the table only when the primary route disappears, for example when G0/0/0 goes down.

In this activity the roles were reversed: the primary routes had AD 80 or 90, and the backup routes had AD 1 with a wrong next hop. On R1 the backup route therefore won and sent all traffic to 192.168.0.3. The fix gives the primary route AD 1 and the backup route AD 80.

b. Create an action plan that you think will fix the issue. Develop a list of all the commands you intend to use to fix the issue, and a list of all the commands you need to revert the configuration, should your action plan fail to correct the issue.

c. Execute your action plans one at a time for each criterion that fails, and record the fix actions.

Routing problems on both routers:

  1. Wrong IP for next hop: R1 route to 209.165.200.128/25 via 192.168.0.3; R2 route to 2001:db8:acad:209::/64 via 2001:db7:acad:16::1.
  2. AD set high versus default: the primary default route uses AD 80 on R1 (via 192.168.0.14) and AD 90 on R2 (via 2001:db8:acad::1).
  3. Default AD used and wrong next hop IP: the floating default route uses AD 1 with next hop 192.168.0.3 on R1 and 2001:db8:acad:15::1 on R2.

Fix 1: Correct the next hop of the routes to the 209 networks.

Copy

R1(config)# no ip route 209.165.200.128 255.255.255.128 192.168.0.3

R1(config)# ip route 209.165.200.128 255.255.255.128 192.168.0.30

Copy

R2(config)# no ipv6 route 2001:db8:acad:209::/64 2001:db7:acad:16::1

R2(config)# ipv6 route 2001:db8:acad:209::/64 2001:db8:acad:16::1

Copy

R1# show ip route static

     209.165.200.0/24 is variably subnetted, 3 subnets, 2 masks

S       209.165.200.128/25 [1/0] via 192.168.0.30

S*   0.0.0.0/0 [1/0] via 192.168.0.3

Copy

R2# show ipv6 route 2001:DB8:ACAD:209::/64

Routing entry for 2001:DB8:ACAD:209::/64

  Known via "static", distance 1, metric 0

  Route count is 1/1, share count 0

  Routing paths:

  Routing paths:2001:DB8:ACAD:16::1

      Last update 2001:DB8:ACAD:16::1 on , 00:00:00 ago

What we learned:
Both routes to the 209 networks now use a reachable next hop and are installed: R1 via 192.168.0.30 and R2 via 2001:DB8:ACAD:16::1. R1 still uses the default route via 192.168.0.3 until Fix 3.

Fix 2: Recreate the primary default routes with the default AD.

Copy

R1(config)# no ip route 0.0.0.0 0.0.0.0 192.168.0.14 80

R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.0.14

Copy

R2(config)# no ipv6 route ::/0 2001:db8:acad::1 90

R2(config)# ipv6 route ::/0 2001:db8:acad::1

Fix 3: Recreate the floating default routes with the correct next hop and AD 80.

Copy

R1(config)# no ip route 0.0.0.0 0.0.0.0 192.168.0.3

R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.0.30 80

Copy

R2(config)# no ipv6 route ::/0 2001:db8:acad:15::1

R2(config)# ipv6 route ::/0 2001:db8:acad:16::1 80

Copy

R1# show running-config | include ip route

ip route 209.165.200.128 255.255.255.128 192.168.0.30

ip route 0.0.0.0 0.0.0.0 192.168.0.14

ip route 0.0.0.0 0.0.0.0 192.168.0.30 80

Copy

R1# show ip route static

     209.165.200.0/24 is variably subnetted, 3 subnets, 2 masks

S       209.165.200.128/25 [1/0] via 192.168.0.30

S*   0.0.0.0/0 [1/0] via 192.168.0.14

Copy

R2# show running-config | include ipv6 route

ipv6 route 2001:DB8:ACAD:209::/64 2001:DB8:ACAD:16::1

ipv6 route ::/0 2001:DB8:ACAD::1

ipv6 route ::/0 2001:DB8:ACAD:16::1 80

Copy

R2# show ipv6 route ::/0

Routing entry for 0.0.0.0/0, 11 known subnets

  Attached (9 connections)

  Variably subnetted with 4 masks

S*      ::/0 [1/0] via 2001:DB8:ACAD::1

C       2001:DB8:ACAD::/64 is directly connected, GigabitEthernet0/0/0

        2001:DB8:ACAD::14/128 is directly connected, GigabitEthernet0/0/0

C       2001:DB8:ACAD:16::/64 is directly connected, GigabitEthernet0/0

        2001:DB8:ACAD:16::2/128 is directly connected, GigabitEthernet0/0

C       2001:DB8:ACAD:172::/64 is directly connected, GigabitEthernet0/1

        2001:DB8:ACAD:172::1/128 is directly connected, GigabitEthernet0/1

S       2001:DB8:ACAD:209::/64 [1/0] via 2001:DB8:ACAD:16::1

C       2001:DB8:ACAD:210::/64 is directly connected, GigabitEthernet0/2

        2001:DB8:ACAD:210::1/128 is directly connected, GigabitEthernet0/2

        FF00::/8 is directly connected, Null0

What we learned:
On both routers the primary default route (AD 1) through the direct G0/0/0 link is now installed, and the floating default route through the switches waits in the configuration with AD 80. It appears in the routing table only when the primary route disappears.

Final verification

Repeat the tests from Part 1. Every criterion must now be met:

Device Configs - Final

ROUTER R1

Copy

! ==============================================================

!--- 16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode

!--- FIX SCRIPT FOR ROUTER R1

!--- 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.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Part 2: Gather Information, Create an Action Plan, and Implement Corrections.

! --------------------------------------------------------------



!--- 1. Wrong IP for next hop: the route to 209.165.200.128/25 points to 192.168.0.3 (no device uses it). Use R2 G0/0 (192.168.0.30).

no ip route 209.165.200.128 255.255.255.128 192.168.0.3

ip route 209.165.200.128 255.255.255.128 192.168.0.30



!--- 2. AD set high versus default: the primary default route via R2 G0/0/0 (192.168.0.14) has AD 80. Recreate it with the default AD.

no ip route 0.0.0.0 0.0.0.0 192.168.0.14 80

ip route 0.0.0.0 0.0.0.0 192.168.0.14



!--- 3. Default AD used and wrong next hop IP: the floating default route uses AD 1 and next hop 192.168.0.3. Use 192.168.0.30 with AD 80.

no ip route 0.0.0.0 0.0.0.0 192.168.0.3

ip route 0.0.0.0 0.0.0.0 192.168.0.30 80



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 [1/0] via 192.168.0.14; S 209.165.200.128/25 [1/0] via 192.168.0.30

!---   traceroute 172.16.2.1      -> first hop 192.168.0.14

!---   traceroute 209.165.200.129 -> first hop 192.168.0.30

!--- Note: after testing the failover (shutdown on G0/0/0 -> first hop 192.168.0.30), enter "no shutdown" on G0/0/0 again.

! ==============================================================

ROUTER R2

Copy

! ==============================================================

!--- 16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode

!--- FIX SCRIPT FOR ROUTER R2

!--- 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.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Part 2: Gather Information, Create an Action Plan, and Implement Corrections.

! --------------------------------------------------------------



!--- 1. Wrong IP for next hop: the route to 2001:db8:acad:209::/64 points to 2001:db7:acad:16::1. Use R1 G0/0 (2001:db8:acad:16::1).

no ipv6 route 2001:db8:acad:209::/64 2001:db7:acad:16::1

ipv6 route 2001:db8:acad:209::/64 2001:db8:acad:16::1



!--- 2. AD set high versus default: the primary default route via R1 G0/0/0 (2001:db8:acad::1) has AD 90. Recreate it with the default AD.

no ipv6 route ::/0 2001:db8:acad::1 90

ipv6 route ::/0 2001:db8:acad::1



!--- 3. Default AD used and wrong next hop IP: the floating default route uses AD 1 and next hop 2001:db8:acad:15::1. Use 2001:db8:acad:16::1 with AD 80.

no ipv6 route ::/0 2001:db8:acad:15::1

ipv6 route ::/0 2001:db8:acad:16::1 80



end



! --------------------------------------------------------------

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

! --------------------------------------------------------------

copy running-config startup-config





! ==============================================================

!--- Verification:

!---   show ipv6 route                    -> S ::/0 [1/0] via 2001:DB8:ACAD::1; S 2001:DB8:ACAD:209::/64 [1/0] via 2001:DB8:ACAD:16::1

!---   traceroute 2001:db8:acad:171::1    -> first hop 2001:db8:acad::1

!---   traceroute 2001:db8:acad:209::1    -> first hop 2001:db8:acad:16::1

!--- Note: after testing the failover (shutdown on G0/0/0 -> first hop 2001:db8:acad:16::1), enter "no shutdown" on G0/0/0 again.

! ==============================================================

Download Packet Tracer (.pka) file:

Icon

16.3.2 Packet Tracer - Troubleshoot IPv4 and IPv6 Static and Default Routes - Physical Mode .pka

1 file(s) 876.33 KB

Download

Previous Lab
16.3.1 Packet Tracer – Troubleshoot Static and Default Routes

← All Packet Tracer articles Home