16.3.1 Packet Tracer - Troubleshoot Static and Default Routes Answers
Topology
Addressing Table
| Device | Interface | IP Addresses |
|---|---|---|
| R1 | G0/0 | 172.31.1.1/25 |
| 2001:DB8:1::1/64 | ||
| S0/0/0 | 172.31.1.194/30 | |
| 2001:DB8:2::194/64 | ||
| R2 | G0/0 | 172.31.0.1/24 |
| 2001:DB8:3::1/64 | ||
| S0/0/0 | 172.31.1.193/30 | |
| 2001:DB8:2::193/64 | ||
| S0/0/1 | 172.31.1.197/30 | |
| 2001:DB8:4::197/64 | ||
| R3 | G0/0 | 172.31.1.129/26 |
| 2001:DB8:5::1/64 | ||
| S0/0/1 | 172.31.1.198/30 | |
| 2001:DB8:4::198/64 | ||
| PC1 | NIC | 172.31.1.126/25 |
| 2001:DB8:1::126/64 | ||
| PC2 | NIC | 172.31.0.254/24 |
| 2001:DB8:3::254/64 | ||
| Server | NIC | 172.31.1.190/26 |
| 2001:DB8:5::190/64 |
Objectives
In this activity you will troubleshoot static and default routes and repair any errors that you find.
- Troubleshoot IPv4 static routes.
- Troubleshoot IPv4 default routes.
- Troubleshoot IPv6 static routes.
- Configure IPv4 static routes.
- Configure IPv4 default routes.
- Configure IPv6 static routes.
Background / Scenario
A newly hired network technician is attempting to preconfigure a simple topology that will be delivered to a customer. The technician has not been able to establish connectivity between the three LANs. You have been asked to troubleshoot the topology and verify connectivity between the hosts on the three LANs over IPv4 and IPv6.
Instructions
Contents
- Test connectivity
- Step 1: Locate and document the problems (route checklist, Problems 1, 2, 3, 4, 5)
- Step 2: Repair the problems (Fixes 1, 2, 3, 4, 5)
- Final verification
- Device Configs - Final
Test connectivity
Before looking at the routers, test which hosts can reach each other over IPv4 and IPv6:
Step 1: Locate and document the problems.
Review the routing tables on R1, R2, and R3.
Check the static routes exactly as they are configured (the no commands in Step 2 must match them):
Routes each router needs
List the remote networks that each router must reach, then compare the list with its routing table:
| Router | Destination | Required route | Found in the routing table |
|---|---|---|---|
| R1 | Any remote IPv4 network | Default route via R2 (172.31.1.193) | ✘ next hop 172.31.1.195 (Problem 1) |
| R1 | LAN 2, R2-R3 link, LAN 3 (IPv6) | 2001:DB8:3::/64, 2001:DB8:4::/64, 2001:DB8:5::/64 via Serial0/0/0 | ✔ |
| R2 | LAN 1 (IPv4) | 172.31.1.0/25 via R1 (172.31.1.194) | ✘ via R3 (172.31.1.198) (Problem 3) |
| R2 | LAN 3 (IPv4) | 172.31.1.128/26 via R3 (172.31.1.198) | ✘ via R1 (172.31.1.194) (Problem 3) |
| R2 | LAN 1 (IPv6) | 2001:DB8:1::/64 via 2001:DB8:2::194 | ✘ destination 2001:DB6:1::/64 (Problem 2) |
| R2 | LAN 3 (IPv6) | 2001:DB8:5::/64 via 2001:DB8:4::198 | ✔ |
| R3 | LAN 1 (IPv4) | 172.31.1.0/25 via Serial0/0/1 | ✘ mask /28 (Problem 5) |
| R3 | LAN 2 and R1-R2 link (IPv4) | 172.31.0.0/24 and 172.31.1.192/30 via Serial0/0/1 | ✔ |
| R3 | LAN 1 (IPv6) | 2001:DB8:1::/64 via Serial0/0/1 | ✘ missing (Problem 4) |
| R3 | LAN 2 and R1-R2 link (IPv6) | 2001:DB8:3::/64 and 2001:DB8:2::/64 via Serial0/0/1 | ✔ |
Problem 1: R1 – the IPv4 default route uses the wrong next hop
See Gateway of last resort is 172.31.1.195 in the R1 tab. 172.31.1.195 is the broadcast address of the 172.31.1.192/30 link, not the address of R2 (172.31.1.193).
Problem 2: R2 – the IPv6 route to LAN 1 has the wrong destination network
See S 2001:DB6:1::/64 in the R2 tab: LAN 1 is 2001:DB8:1::/64.
Problem 3: R2 – the next hops of the two IPv4 static routes are swapped
In the R2 tab, LAN 1 (172.31.1.0/25) points to R3 (172.31.1.198) and LAN 3 (172.31.1.128/26) points to R1 (172.31.1.194).
Problem 4: R3 – the IPv6 route to LAN 1 is missing
The R3 IPv6 routing table has static routes to 2001:DB8:2::/64 and 2001:DB8:3::/64, but none to 2001:DB8:1::/64.
Problem 5: R3 – the IPv4 route to LAN 1 has the wrong mask
See S 172.31.1.0/28 in the R3 tab: LAN 1 is 172.31.1.0/25.
Record your findings in a table like the one below.
| # | Location | Problem | Solution |
|---|---|---|---|
| 1 | R1 | The IPv4 default route next hop address is incorrect. | Change the next hop address to 172.31.1.193. |
| 2 | R2 | IPv6 route to LAN 1 has the wrong network address for the destination network. | Change destination address from 2001:DB6:1::/64 to 2001:DB8:1::/64. |
| 3 | R2 | The next hop addresses in the two IPv4 routes are reversed. | Change the statements to ip route 172.31.1.0 255.255.255.128 172.31.1.194 and ip route 172.31.1.128 255.255.255.192 172.31.1.198. |
| 4 | R3 | The IPv6 route to LAN 1 is missing. | Configure a directly connected static route to 2001:DB8:1::/64. |
| 5 | R3 | The IPv4 route to LAN 1 has the wrong mask for the network. | Change the mask to 255.255.255.128. |
Step 2: Repair the problems.
Configure the devices so that full connectivity exists between the hosts on the LANs over IPv4 and IPv6.
Note: Your task is to establish connectivity using the existing static route design. Changing the types of static routes used will result in a loss of points.
Fix 1: R1: replace the IPv4 default route.
R1(config)# no ip route 0.0.0.0 0.0.0.0 172.31.1.195 R1(config)# ip route 0.0.0.0 0.0.0.0 172.31.1.193
R1# show ip route static
S* 0.0.0.0/0 [1/0] via 172.31.1.193Fix 2: R2: correct the destination of the IPv6 route to LAN 1.
R2(config)# no ipv6 route 2001:DB6:1::/64 2001:DB8:2::194 R2(config)# ipv6 route 2001:DB8:1::/64 2001:DB8:2::194
R2# show ipv6 route 2001:DB8:1::/64 Routing entry for 2001:DB8:1::/64 Known via "static", distance 1, metric 0 Route count is 1/1, share count 0 Routing paths: Routing paths:2001:DB8:2::194 Last update 2001:DB8:2::194 on , 00:00:00 ago
Fix 3: R2: swap back the next hops of the two IPv4 routes.
R2(config)# no ip route 172.31.1.0 255.255.255.128 172.31.1.198 R2(config)# no ip route 172.31.1.128 255.255.255.192 172.31.1.194 R2(config)# ip route 172.31.1.0 255.255.255.128 172.31.1.194 R2(config)# ip route 172.31.1.128 255.255.255.192 172.31.1.198
R2# show ip route static
172.31.0.0/16 is variably subnetted, 8 subnets, 5 masks
S 172.31.1.0/25 [1/0] via 172.31.1.194
S 172.31.1.128/26 [1/0] via 172.31.1.198Fix 4: R3: add the missing IPv6 route to LAN 1 (directly connected, like the other R3 IPv6 routes).
R3(config)# ipv6 route 2001:DB8:1::/64 Serial0/0/1
R3# show ipv6 route 2001:DB8:1::/64 Routing entry for 2001:DB8:1::/64 Known via "static", distance 1, metric 0 Route count is 1/1, share count 0 Routing paths: Routing paths: directly connected, via Serial0/0/1 Last update 0.0.0.0 on Serial0/0/1, 00:00:00 ago
Fix 5: R3: correct the mask of the IPv4 route to LAN 1.
R3(config)# no ip route 172.31.1.0 255.255.255.240 Serial0/0/1 R3(config)# ip route 172.31.1.0 255.255.255.128 Serial0/0/1
R3# show ip route static
172.31.0.0/16 is variably subnetted, 7 subnets, 5 masks
S 172.31.0.0/24 is directly connected, Serial0/0/1
S 172.31.1.0/25 is directly connected, Serial0/0/1
S 172.31.1.192/30 is directly connected, Serial0/0/1Final verification
All hosts must reach each other over IPv4 and IPv6:
Device Configs - Final
ROUTER R1
! ============================================================== !--- 16.3.1 Packet Tracer - Troubleshoot Static and Default Routes !--- 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 ! -------------------------------------------------------------- !--- Step 2: Repair the problems. ! -------------------------------------------------------------- !--- R1: the IPv4 default route points to 172.31.1.195 (broadcast address of the R1-R2 link). Remove it and use R2 S0/0/0 (172.31.1.193) as the next hop. no ip route 0.0.0.0 0.0.0.0 172.31.1.195 ip route 0.0.0.0 0.0.0.0 172.31.1.193 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 172.31.1.193 !--- From PC1, ping 172.31.0.254 and 172.31.1.190 -> success after R2 and R3 are also fixed ! ==============================================================
ROUTER R2
! ============================================================== !--- 16.3.1 Packet Tracer - Troubleshoot Static and Default Routes !--- 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 ! -------------------------------------------------------------- !--- Step 2: Repair the problems. ! -------------------------------------------------------------- !--- R2: the next hop addresses in the two IPv4 routes are reversed. Remove both wrong routes first. no ip route 172.31.1.0 255.255.255.128 172.31.1.198 no ip route 172.31.1.128 255.255.255.192 172.31.1.194 !--- LAN 1 (172.31.1.0/25) via R1 S0/0/0; LAN 3 (172.31.1.128/26) via R3 S0/0/1. ip route 172.31.1.0 255.255.255.128 172.31.1.194 ip route 172.31.1.128 255.255.255.192 172.31.1.198 !--- R2: the IPv6 route to LAN 1 uses the wrong destination network (2001:DB6:1::/64). Replace it with 2001:DB8:1::/64, keeping the same next hop. no ipv6 route 2001:DB6:1::/64 2001:DB8:2::194 ipv6 route 2001:DB8:1::/64 2001:DB8:2::194 end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification: !--- show ip route static -> 172.31.1.0/25 via 172.31.1.194, 172.31.1.128/26 via 172.31.1.198 !--- show ipv6 route -> S 2001:DB8:1::/64 via 2001:DB8:2::194 (no 2001:DB6:1::/64 entry) !--- From PC2, ping PC1 and the Server over IPv4 and IPv6 -> success after R1 and R3 are also fixed ! ==============================================================
ROUTER R3
! ============================================================== !--- 16.3.1 Packet Tracer - Troubleshoot Static and Default Routes !--- FIX SCRIPT FOR ROUTER R3 !--- 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. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Step 2: Repair the problems. ! -------------------------------------------------------------- !--- R3: the IPv4 route to LAN 1 has the wrong mask (/28). Replace it with 255.255.255.128 (/25), keeping the directly connected design. no ip route 172.31.1.0 255.255.255.240 Serial0/0/1 ip route 172.31.1.0 255.255.255.128 Serial0/0/1 !--- R3: the IPv6 route to LAN 1 is missing. Add a directly connected static route, like the other R3 IPv6 routes. ipv6 route 2001:DB8:1::/64 Serial0/0/1 end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification: !--- show ip route static -> 172.31.1.0/25 is directly connected, Serial0/0/1 !--- show ipv6 route -> S 2001:DB8:1::/64 via Serial0/0/1, directly connected !--- From the Server, ping PC1 and PC2 over IPv4 and IPv6 -> success after R1 and R2 are also fixed ! ==============================================================





