1. One PC can't get off the LAN
R1 is the default gateway for the staff LAN behind switch SW1. Three devices work fine. One user says they can't reach anything outside the LAN, not even the gateway. Use the router config and the host settings to find the misconfigured device.
Building configuration... Current configuration : 124 bytes ! interface GigabitEthernet0/1 description STAFF-LAN ip address 192.168.10.1 255.255.255.192 duplex auto speed auto end
| Device | IPv4 address | Subnet mask | Default gateway |
|---|---|---|---|
| PC-A | 192.168.10.20 | 255.255.255.192 | 192.168.10.1 |
| PC-B | 192.168.10.62 | 255.255.255.192 | 192.168.10.1 |
| PC-C | 192.168.10.66 | 255.255.255.192 | 192.168.10.1 |
| PRN-1 | 192.168.10.33 | 255.255.255.192 | 192.168.10.1 |
Why not that one: .20 is inside 192.168.10.0/26 (usable .1 to .62), so PC-A is valid.
Why not that one: .33 is inside 192.168.10.0/26 (usable .1 to .62), so PRN-1 is valid.
Why not that one: .62 is the last usable host in 192.168.10.0/26 (broadcast is .63), so PC-B is valid.
Why not that one: R1's interface is 192.168.10.1/26 and the other three devices work, so R1 is fine.
How to find it
- 255.255.255.192 is a /26. The interesting octet is the last one: 256 - 192 = 64, so the subnets go up in blocks of 64: .0, .64, .128, .192.
- R1 is 192.168.10.1/26, so the LAN is 192.168.10.0/26: network .0, usable .1 to .62, broadcast .63.
- PC-C has .66. 66 is past 63, so it sits in the next block, 192.168.10.64/26 (usable .65 to .126). Its gateway .1 is not in its own subnet, so it can't reach it.
- PC-B is the trap: .62 looks high, but it's the last usable address of .0/26, so it's fine.
- Fix: give PC-C a free address between .2 and .62 (keeping the same mask and gateway).
Check it with a tool: PC-C's address in the subnet calculator · /26 reference · Subnetting practice quiz