17.8.3 Packet Tracer – Troubleshooting Challenge Answers
Topology
Addressing Table
| Device | Interface | IP Address / Prefix | Default Gateway |
|---|---|---|---|
| R1 | G0/0 | 172.16.1.62 /26 | N/A |
| G0/0 | 2001:DB8:CAFE::1/64 | ||
| G0/0 | FE80::1 | ||
| G0/1 | 172.16.1.126 /26 | N/A | |
| G0/1 | 2001:DB8:CAFE:1::1/64 | ||
| G0/1 | FE80::1 | ||
| G0/2 | 172.16.1.254 /25 | N/A | |
| G0/2 | 2001:DB8:CAFE:2::1/64 | ||
| G0/2 | FE80::1 | ||
| S0/0/1 | 10.0.0.2 /30 | N/A | |
| S0/0/1 | 2001:DB8:2::1/64 | ||
| S0/0/1 | FE80::1 | ||
| Main | S0/0/0 | 209.165.200.226 /30 | N/A |
| S0/0/0 | 2001:DB8:1::1/64 | ||
| S0/0/0 | FE80::2 | ||
| S0/0/1 | 10.0.0.1 /30 | N/A | |
| S0/0/1 | 2001:DB8:2::2/64 | ||
| S0/0/1 | FE80::2 | ||
| S1 | VLAN 1 | 172.16.1.61 /26 | 172.16.1.62 |
| S2 | VLAN 1 | 172.16.1.125 /26 | 172.16.1.126 |
| S3 | VLAN 1 | 172.16.1.253 /25 | 172.16.1.254 |
| IT | NIC | 172.16.1.1 /26 | 172.16.1.62 |
| 2001:DB8:CAFE::2/64 | FE80::1 | ||
| FE80::2 | |||
| Marketing | NIC | 172.16.1.65 /26 | 172.16.1.126 |
| 2001:DB8:CAFE:1::2/64 | FE80::1 | ||
| FE80::2 | |||
| R&D | NIC | 172.16.1.129 /25 | 172.16.1.254 |
| 2001:DB8:CAFE:2::2/64 | FE80::1 | ||
| FE80::2 | |||
| Web | NIC | 64.100.0.3 /29 | 64.100.0.1 |
| 2001:DB8:ACAD::3/64 | FE80::1 | ||
| FE80::2 |
Objectives
- Troubleshoot common issues in a LAN.
Background / Scenario
After an update to the network, some devices were misconfigured. You must correct the configurations and verify that all the PCs can access the Web server, R1, and the switches. In addition, all PCs should be able to access R1 using SSH. You should verify connectivity for both IPv4 and IPv6 except for the switches.
Instructions
Router R1 and all the switches have been preconfigured with the following:
- Enable password: Ciscoenpa55
- Console password: Ciscoconpa55
- Admin username and password for SSH: Admin1/Admin1pa55
Required number of hosts per subnet:
- IT: 50 hosts
- Marketing: 50 hosts
- R&D: 100 hosts
If all configuration problems have been fixed, all devices should be able to ping each other and the web server.
Troubleshooting Walkthrough
Contents
- How to reach the devices
- Step 1: Assess connectivity from each PC
- Step 2: Locate each problem (Problems 1, 2, 3, 4, 5, 6)
- Step 3: Fix the problems (Fix 1, Fix 2, Fix 3, Fix 4, Fix 5, Fix 6)
- Step 4: Final verification
- Issues Found and Solutions
- Device Configs - Final
How to reach the devices
| Device | Access | Login |
|---|---|---|
| R1, S1, S2, S3 | Console (click the device > CLI) | Console password Ciscoconpa55, then enable with Ciscoenpa55 |
| R1 | SSH from a PC: ssh -l Admin1 <R1 gateway address> |
Username Admin1, password Admin1pa55. The session opens at R1>; type enable and enter Ciscoenpa55 to reach R1#. |
Step 1: Assess connectivity from each PC
On each PC, check the IPv4 and IPv6 settings with ipconfig /all, then ping the R1 gateway (IPv4 and IPv6), the LAN switch and the web server (IPv4 and IPv6):
Step 1 results
| PC | IPv4 gateway | IPv6 gateway | LAN switch | Web server IPv4 | Web server IPv6 |
|---|---|---|---|---|---|
| IT | ✘ (Problem 5) | ✔ | S1: ✘ (Problem 5) | ✘ (Problem 5) | ✔ |
| Marketing | ✘ (Problem 1) | ✔ | S2: ✘ (Problem 1, Problem 4) | ✘ (Problem 1) | ✔ |
| R&D | ✔ | ✘ (Problem 6) | S3: ✔ | ✔ | ✘ (Problem 6) |
Step 2: Locate each problem
Problem 1: R1 G0/1 (Marketing gateway) has the wrong IPv4 address
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 172.16.1.62 YES manual up up
GigabitEthernet0/1 192.168.1.126 YES manual up up
GigabitEthernet0/2 172.16.1.254 YES manual up up
Serial0/0/0 unassigned YES unset administratively down down
Serial0/0/1 10.0.0.2 YES manual up up
Vlan1 unassigned YES unset administratively down downR1# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
ip address 192.168.1.126 255.255.255.192
duplex auto
speed auto
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:CAFE:1::1/64Problem 2: The SSH account on R1 is missing
R1# show running-config | include username R1#
Problem 3: The R1 VTY lines accept only Telnet
R1# show running-config | section line vty
line vty 0 4
exec-timeout 5 0
login local
transport input telnetR1# show ip ssh
SSH Enabled - version 1.99
Authentication timeout: 120 secs; Authentication retries: 3C:\> ssh -l Admin1 172.16.1.254
[Connection to 172.16.1.254 closed by foreign host]Problem 4: S2 VLAN 1 has the wrong subnet mask
S2# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 172.16.1.125 YES manual up upS2# show running-config | include default-gateway
ip default-gateway 172.16.1.126The brief output does not show the mask. Check the VLAN 1 configuration:
S2# show running-config | section interface Vlan1
interface Vlan1
ip address 172.16.1.125 255.255.255.224Problem 5: The IT PC has the wrong IPv4 address and default gateway
See the ipconfig /all output of the IT PC in Step 1.
Problem 6: The R&D PC has the wrong IPv6 address
See the ipconfig /all output of the R&D PC in Step 1.
Devices with no faults: S1 and S3
S1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 172.16.1.61 YES manual up upS1# show running-config | include default-gateway
ip default-gateway 172.16.1.62S3# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 172.16.1.253 YES manual up upS3# show running-config | include default-gateway
ip default-gateway 172.16.1.254Step 3: Fix the problems
Note: Apply the fixes one at a time in this order and run the test under each fix before moving on.
Fix 1: R1 G0/1: set the Marketing gateway address.
R1(config)# interface gigabitethernet 0/1 R1(config-if)# ip address 172.16.1.126 255.255.255.192
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 172.16.1.62 YES manual up up
GigabitEthernet0/1 172.16.1.126 YES manual up up
GigabitEthernet0/2 172.16.1.254 YES manual up up
Serial0/0/0 unassigned YES unset administratively down down
Serial0/0/1 10.0.0.2 YES manual up up
Vlan1 unassigned YES unset administratively down downC:\> ping 172.16.1.126
Pinging 172.16.1.126 with 32 bytes of data:
Reply from 172.16.1.126: bytes=32 time<1ms TTL=255
Reply from 172.16.1.126: bytes=32 time<1ms TTL=255
Reply from 172.16.1.126: bytes=32 time<1ms TTL=255
Reply from 172.16.1.126: bytes=32 time<1ms TTL=255
Ping statistics for 172.16.1.126:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msFix 2: R1: create the local SSH account.
R1(config)# username Admin1 secret Admin1pa55
R1# show running-config | include username
username Admin1 secret 5 $1$mERr$Ty/EkWXcSXEwIckISrps8/Fix 3: R1 VTY lines: allow SSH (login local is already configured).
R1(config)# line vty 0 4 R1(config-line)# transport input ssh
R1# show running-config | section line vty
line vty 0 4
exec-timeout 5 0
login local
transport input sshC:\> ssh -l Admin1 172.16.1.254 Password: Warning: Unauthorized Access is Prohibited! R1>
Fix 4: S2: correct the VLAN 1 subnet mask.
S2(config)# interface vlan 1 S2(config-if)# ip address 172.16.1.125 255.255.255.192
S2# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 172.16.1.125 YES manual up upC:\> ping 172.16.1.125
Pinging 172.16.1.125 with 32 bytes of data:
Request timed out.
Reply from 172.16.1.125: bytes=32 time<1ms TTL=255
Reply from 172.16.1.125: bytes=32 time<1ms TTL=255
Reply from 172.16.1.125: bytes=32 time<1ms TTL=255
Ping statistics for 172.16.1.125:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msNote: After Fix 1, the ping from the Marketing PC to S2 succeeds even with the wrong /27 mask, because S2 sends its replies through the gateway 172.16.1.126, which now works. Problem 1 masks Problem 4, so check the mask with show running-config | section interface Vlan1, not only with ping.
Fix 5: IT PC: on Desktop > IP Configuration, set IPv4 Address 172.16.1.1, Subnet Mask 255.255.255.192, Default Gateway 172.16.1.62. IPv6 is already correct (2001:DB8:CAFE::2/64, gateway FE80::1).
C:\> ipconfig FastEthernet0 Connection:(default port) Connection-specific DNS Suffix..: Link-local IPv6 Address.........: FE80::2 IPv6 Address....................: 2001:DB8:CAFE::2 IPv4 Address....................: 172.16.1.1 Subnet Mask.....................: 255.255.255.192 Default Gateway.................: FE80::1 172.16.1.62
C:\> ping 172.16.1.62
Pinging 172.16.1.62 with 32 bytes of data:
Reply from 172.16.1.62: bytes=32 time<1ms TTL=255
Reply from 172.16.1.62: bytes=32 time<1ms TTL=255
Reply from 172.16.1.62: bytes=32 time<1ms TTL=255
Reply from 172.16.1.62: bytes=32 time<1ms TTL=255
Ping statistics for 172.16.1.62:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msFix 6: R&D PC: on Desktop > IP Configuration, set IPv6 Address 2001:DB8:CAFE:2::2/64 and IPv6 Gateway FE80::1. IPv4 is already correct (172.16.1.129/25, gateway 172.16.1.254).
C:\> ipconfig /all FastEthernet0 Connection:(default port) Connection-specific DNS Suffix..: Physical Address................: 00D0.FFAB.2186 Link-local IPv6 Address.........: FE80::2 IPv6 Address....................: 2001:DB8:CAFE:2::2 IPv4 Address....................: 172.16.1.129 Subnet Mask.....................: 255.255.255.128 Default Gateway.................: FE80::1 172.16.1.254 DHCP Servers....................: 0.0.0.0 DHCPv6 IAID.....................: DHCPv6 Client DUID..............: 00-01-00-01-53-A6-A4-20-00-D0-FF-AB-21-86 DNS Servers.....................: 2001:DB8:ACAD::2 64.100.0.2
C:\> ping 2001:db8:acad::3
Pinging 2001:db8:acad::3 with 32 bytes of data:
Reply from 2001:DB8:ACAD::3: bytes=32 time=18ms TTL=125
Reply from 2001:DB8:ACAD::3: bytes=32 time=13ms TTL=125
Reply from 2001:DB8:ACAD::3: bytes=32 time=2ms TTL=125
Reply from 2001:DB8:ACAD::3: bytes=32 time=2ms TTL=125
Ping statistics for 2001:DB8:ACAD::3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 18ms, Average = 8msStep 4: Final verification
All PCs must reach each other, R1, the switches and the web server over IPv4 and IPv6 (switches IPv4 only), and open an SSH session to R1:
Issues Found and Solutions
| # | Device | Issue | Command that reveals it | Solution |
|---|---|---|---|---|
| 1 | R1 G0/1 | Wrong IPv4 address on the Marketing LAN gateway (192.168.1.126; the /26 mask is correct) | R1: show ip interface brief |
Set it to 172.16.1.126 255.255.255.192 |
| 2 | R1 | No local user account for SSH (no username line in the running-config) | R1: show running-config | include username |
Create it: username Admin1 secret Admin1pa55 |
| 3 | R1 VTY lines | VTY lines accept only Telnet (transport input telnet), so SSH sessions are closed | R1: show running-config | section line vty |
Apply transport input ssh (login local is already configured) |
| 4 | S2 VLAN 1 | Wrong subnet mask on VLAN 1 (255.255.255.224 /27): S2 is in 172.16.1.96/27, so the Marketing PC is outside its subnet | S2: show running-config | section interface Vlan1 |
Set ip address 172.16.1.125 255.255.255.192 |
| 5 | IT PC | Wrong IPv4 address and wrong default gateway (192.168.1.1, gateway 192.168.1.62) | IT: ipconfig /all |
IP 172.16.1.1 / 255.255.255.192, gateway 172.16.1.62 |
| 6 | R&D PC | Wrong IPv6 address (2001:DB8:CAFE::2, the address of the IT PC) | R&D: ipconfig /all |
Set it to 2001:DB8:CAFE:2::2/64 (gateway FE80::1) |
No changes needed on: S1, S3 (see Devices with no faults), and the Marketing PC (see Step 1, Marketing tab).
Addressing scheme (172.16.1.0/24)
| Subnet | Hosts required | Network / CIDR | Usable host range |
|---|---|---|---|
| IT | 50 | 172.16.1.0/26 | 172.16.1.1 – 172.16.1.62 |
| Marketing | 50 | 172.16.1.64/26 | 172.16.1.65 – 172.16.1.126 |
| R&D | 100 | 172.16.1.128/25 | 172.16.1.129 – 172.16.1.254 |
Device Configs - Final
ROUTER R1
! ============================================================== !--- 17.8.3 Packet Tracer - Troubleshooting Challenge !--- FIX SCRIPT FOR ROUTER R1 !--- Usage: open the R1 console, log in with the console password Ciscoconpa55, type "enable" and enter the enable password Ciscoenpa55, then paste this file at the R1# prompt. This is a troubleshooting activity: the script contains only the fixes for R1. Every line beginning with "!" is a comment; IOS ignores it. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Issue 1: R1 G0/1 (Marketing LAN gateway). ! -------------------------------------------------------------- !--- G0/1 has the wrong IPv4 address 192.168.1.126 (the interface is up/up and the /26 mask is correct). Set the Marketing gateway to 172.16.1.126/26; the new primary address replaces the old one. interface gigabitethernet 0/1 ip address 172.16.1.126 255.255.255.192 exit ! -------------------------------------------------------------- !--- Issues 2 and 3: SSH access to R1. ! -------------------------------------------------------------- !--- R1 has no local user account. Create Admin1 with the encrypted password Admin1pa55. username Admin1 secret Admin1pa55 !--- The VTY lines accept only Telnet (transport input telnet). Allow SSH; login local is already configured. line vty 0 4 transport input ssh exit end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification: !--- show ip interface brief -> GigabitEthernet0/1 172.16.1.126 up/up !--- show ip ssh -> SSH Enabled !--- From each PC: ssh -l Admin1 172.16.1.62 (password Admin1pa55) -> R1> ! ==============================================================
SWITCH S2
! ============================================================== !--- 17.8.3 Packet Tracer - Troubleshooting Challenge !--- FIX SCRIPT FOR SWITCH S2 !--- Usage: open the S2 console, log in with the console password Ciscoconpa55, type "enable" and enter the enable password Ciscoenpa55, then paste this file at the S2# prompt. This is a troubleshooting activity: the script contains only the fix for S2. Every line beginning with "!" is a comment; IOS ignores it. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Issue 4: S2 VLAN 1 subnet mask. ! -------------------------------------------------------------- !--- VLAN 1 has the correct address but the wrong mask 255.255.255.224 (/27). Set 172.16.1.125/26 from the Addressing Table (Marketing subnet 172.16.1.64/26). VLAN 1 is already up/up. interface vlan 1 ip address 172.16.1.125 255.255.255.192 exit end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification: !--- show running-config | section interface Vlan1 -> ip address 172.16.1.125 255.255.255.192 !--- ping 172.16.1.126 -> reaches the default gateway (R1 G0/1) ! ==============================================================






