Routing Between Subnets
Two hosts on different subnets behind a shared router. The student's task is to configure addresses and gateways for PC1 and PC2 so that ping traffic routes through the router between the subnets.
The goal
Two computers on different subnets can't reach each other directly — they need a router in between. R1 is already up and configured: each interface holds the gateway address for its own subnet. You'll assign addresses and gateways to the hosts so ping traffic routes through the router.
IP plan
| Device | Subnet | IP | Gateway |
|---|---|---|---|
| R1 (to PC1) | 192.168.1.0/24 | 192.168.1.1/24 | — |
| R1 (to PC2) | 192.168.2.0/24 | 192.168.2.1/24 | — |
| PC1 | 192.168.1.0/24 | 192.168.1.11/24 | 192.168.1.1 |
| PC2 | 192.168.2.0/24 | 192.168.2.11/24 | 192.168.2.1 |
How to open a node's console — in the guide.
Tasks
- On the PC1 console:
ip 192.168.1.11/24 192.168.1.1, thensave. On the PC2 console:ip 192.168.2.11/24 192.168.2.1, thensave. - From PC1:
ping 192.168.2.11.
Completion criteria
- PC1 —
192.168.1.11/24, gateway192.168.1.1. - PC2 —
192.168.2.11/24, gateway192.168.2.1. - Ping
PC1 → 192.168.2.11succeeds (ttl=63, through one router).
Validation
Launch the lab and click "Check" on the session page. When every step turns green — click "End" to free up the stand.