Gateways Everywhere
Lesson 30 of 35 in Coddy's LAN Labs course.
Every desktop needs its default gateway: the router's address in that desktop's own subnet. Sales machines point at 10.10.1.1, Engineering machines at 10.10.2.1. Get one of them wrong and only one direction works, as you saw in the troubleshooting chapters.
With gateways on both sides, a ping from Engineering to Sales comes back with ttl=63, via core, and trace shows the router as the single hop between the two subnets. This is the whole office, working.
Challenge
EasySet the gateways for sales1, sales2 and eng1 (in that order), ping sales1 from eng1, then trace the path from eng1 to sales2.
Expected output:
sales1: gateway 10.10.1.1
sales2: gateway 10.10.1.1
eng1: gateway 10.10.2.1
eng1 -> sales1: reply from 10.10.1.11 (ttl=63, via core)
trace eng1 -> sales2
1 10.10.2.1 core
2 10.10.1.12 sales2Try it yourself
All lessons in LAN Labs
4Routers and Gateways
Two NetworksThe Default GatewayBoth Sides Need a Way BackRouting TablesRecap - Connect the Floors7Growing the Office
The PlanSales Comes OnlineEngineering JoinsGateways EverywhereRecap - The Printer2Addresses on the LAN
Giving a Host an AddressThe First PingWhat ARP LearnedThe Switch Learns TooRecap - First Conversation8Capstone - Fix the Branch
Survey the DamageFix the Address ClashMasks and GatewaysRecap - Prove It WorksPractice on your own: Terminal playground