A simulated CLI for this lab — click a router or a PC, type the commands, and watch routes appear only when the next hop is really reachable. Pings succeed only when a forward and a return path both exist in state. This models Lab 10’s commands only, not real routers: unsupported commands say so instead of faking it. Type ? for help and use Tab to complete a command.
Microsoft Windows [Version 10.0.19045.0]
(c) Microsoft Corporation. All rights reserved.
Up/down arrows recall commands. The full command list is in the walkthrough below.
Interactive lab
Lab 10 — Static Routes
Three routers, three LANs, no routing protocol. Address the links, then tell each router where the remote networks live — with statics, a summary, a longest-prefix override, and a floating backup that only wakes up when the primary link dies.
Click a device to open its console, type the real commands, and check your work when you think it’s done. The lab checks each step as you go.
Walkthrough — commands in order
Three routers, three LANs, no routing protocol. Tell each router where the remote networks live by hand — one route per network, then a summary that replaces two, a longer prefix that beats the summary, and a floating backup that only wakes up when the primary link dies.
PC1 10.0.1.10 ──┐
PC2 10.0.2.10 ──┤ R1 G0/0 10.0.1.1 · G0/1 10.0.2.1
├─ G0/2 10.0.0.1 ── 10.0.0.0/24 ── R2 G0/0 10.0.0.2
│ R2 G0/1 10.1.0.2 ── 10.1.0.0/24 ── R3 G0/0 10.1.0.1
└─ G0/3 10.0.3.1 ── 10.0.3.0/24 ── R3 G0/1 10.0.3.2
PC3 10.1.2.10 ── R3 G0/2 10.1.2.1 R3 G0/3 203.0.113.1 ── ISP 203.0.113.2
Adapted from the pack's five-router chain to three routers with a direct R1–R3 link — the same concepts, fewer hops. The ISP has no real internet behind it: a default route points at it, but nothing beyond it answers.Where this shows up in the data center
I don’t configure static routes on the production fabric, but I read routing tables every time a provisioned host can’t reach something: which hop is missing, which prefix actually matches, and whether the next hop is even up. The checks are the same ones as this lab — longest prefix wins, a route with an unreachable next hop is not installed, and a floating static only matters once the primary is gone — and the same prove-it-first discipline as checking LLDP neighbors and optical levels before touching a fiber link.
R1(config)# interface g0/0 R1(config-if)# ip address 10.0.1.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# interface g0/1 R1(config-if)# ip address 10.0.2.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# interface g0/2 R1(config-if)# ip address 10.0.0.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# interface g0/3 R1(config-if)# ip address 10.0.3.1 255.255.255.0 R1(config-if)# no shutdown R2(config)# interface g0/0 R2(config-if)# ip address 10.0.0.2 255.255.255.0 R2(config-if)# no shutdown R2(config-if)# interface g0/1 R2(config-if)# ip address 10.1.0.2 255.255.255.0 R2(config-if)# no shutdown R3(config)# interface g0/0 R3(config-if)# ip address 10.1.0.1 255.255.255.0 R3(config-if)# no shutdown R3(config-if)# interface g0/1 R3(config-if)# ip address 10.0.3.2 255.255.255.0 R3(config-if)# no shutdown R3(config-if)# interface g0/2 R3(config-if)# ip address 10.1.2.1 255.255.255.0 R3(config-if)# no shutdown
Ping PC1 to PC2 now — it works, both LANs hang off R1. Ping PC1 to PC3 and it times out: R1 has no route to 10.1.2.0/24 yet.
R1(config)# ip route 10.1.0.0 255.255.255.0 10.0.0.2 R1(config)# ip route 10.1.2.0 255.255.255.0 10.0.0.2 R2(config)# ip route 10.0.1.0 255.255.255.0 10.0.0.1 R2(config)# ip route 10.0.2.0 255.255.255.0 10.0.0.1 R2(config)# ip route 10.0.3.0 255.255.255.0 10.0.0.1 R2(config)# ip route 10.1.2.0 255.255.255.0 10.1.0.1 R3(config)# ip route 10.0.0.0 255.255.255.0 10.1.0.2 R3(config)# ip route 10.0.1.0 255.255.255.0 10.1.0.2 R3(config)# ip route 10.0.2.0 255.255.255.0 10.1.0.2 R3(config)# ip route 10.0.3.0 255.255.255.0 10.1.0.2
Ping PC1 to PC3 now — it works. The forward path goes R1 → R2 → R3 and the reply comes back the same way.
R1(config)# no ip route 10.1.0.0 255.255.255.0 10.0.0.2 R1(config)# no ip route 10.1.2.0 255.255.255.0 10.0.0.2 R1(config)# ip route 10.1.0.0 255.255.0.0 10.0.0.2
Check show ip route on R1: the two /24 lines are gone and 10.1.0.0/16 is there instead — and PC1 can still reach PC3.
R1(config)# ip route 10.1.2.0 255.255.255.0 10.0.3.2
The return path is still via R2 (R3’s statics point back that way), so the traffic is asymmetric — out over the direct link, back through R2. That’s normal here, and the ping still works.
R1(config)# ip route 10.1.2.0 255.255.255.0 10.0.0.2 200 R1(config)# interface g0/3 R1(config-if)# shutdown R1(config-if)# no shutdown
While G0/3 is down, show ip route static shows the floating route as [200/0] via 10.0.0.2 — the [1/0] route is gone because its next hop is unreachable. Bring G0/3 back up and the [1/0] route returns; the floating route goes quiet again.
R3(config)# interface g0/3 R3(config-if)# ip address 203.0.113.1 255.255.255.0 R3(config-if)# no shutdown R3(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.2 R1(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.2 R1(config)# ip route 0.0.0.0 0.0.0.0 10.0.3.2 R2(config)# ip route 0.0.0.0 0.0.0.0 10.1.0.1
show ip route on R1 shows two S* lines — both defaults installed. A ping to 8.8.8.8 still fails: the default points at the ISP, but there is no real internet behind it in this lab.
Verify it worked
Don’t trust the config until a show command proves it. These are the outputs you should see — if yours differ, that’s the troubleshooting.
R1# show ip route static (while G0/3 is shut, step 5)
S 10.1.0.0/16 [1/0] via 10.0.0.2 S 10.1.2.0/24 [200/0] via 10.0.0.2
R1# show ip route (final)
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 10.0.0.2 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 10.0.0.2, GigabitEthernet0/2
S* 0.0.0.0/0 [1/0] via 10.0.3.2, GigabitEthernet0/3
10.0.0.0/8 is variably subnetted, 10 subnets, 3 masks
C 10.0.0.0/24 is directly connected, GigabitEthernet0/2
L 10.0.0.1/32 is directly connected, GigabitEthernet0/2
C 10.0.1.0/24 is directly connected, GigabitEthernet0/0
L 10.0.1.1/32 is directly connected, GigabitEthernet0/0
C 10.0.2.0/24 is directly connected, GigabitEthernet0/1
L 10.0.2.1/32 is directly connected, GigabitEthernet0/1
C 10.0.3.0/24 is directly connected, GigabitEthernet0/3
L 10.0.3.1/32 is directly connected, GigabitEthernet0/3
S 10.1.0.0/16 [1/0] via 10.0.0.2
S 10.1.2.0/24 [1/0] via 10.0.3.2PC1: ping 10.1.2.10 (final)
Pinging 10.1.2.10 with 32 bytes of data:
Reply from 10.1.2.10: bytes=32 time<1ms TTL=126
Reply from 10.1.2.10: bytes=32 time<1ms TTL=126
Reply from 10.1.2.10: bytes=32 time<1ms TTL=126
Reply from 10.1.2.10: bytes=32 time<1ms TTL=126
Ping statistics for 10.1.2.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msCheck yourself
Three questions from the exam angle. Tap to reveal the answer — say it out loud first.
Q1. R1 has a static for 10.1.2.0/24 via 10.0.0.2, but show ip route doesn’t show it. What’s wrong?
Q2. Why does the /24 via the direct link win over the /16 summary, even though both match 10.1.2.10?
Q3. PC1 can ping PC3, but a ping to 8.8.8.8 fails even though every router has a default route. Is the default broken?