IPv4 addressing · Fundamentals · Module 5
Summarization and finding addressing mistakes · page 2 of 3
Show topologyHide topology
Interfaces and addresses · Et = Ethernet. LAN C, LAN D and branch LAN 2 are planned and not cabled yet.
- 192.168.8.0/26 · LAN AR1 Et0/0 192.168.8.1H1 eth0 192.168.8.10
- 192.168.8.64/26 · LAN BR1 Et0/1 192.168.8.65R3 Et0/0 192.168.8.126
- 192.168.9.224/30R1 Et0/2 192.168.9.225R2 Et0/0 192.168.9.226
- 192.168.9.228/31R2 Et0/2 192.168.9.228R4 Et0/0 192.168.9.229
- 192.168.9.0/25 · branch LAN 1 · SW1R2 Et0/1 192.168.9.1no other device yet
- 192.168.9.192/27 · branch LAN 3 · SW2R4 Et0/1 192.168.9.193no other device yet
Device icons joined by plain cables, each cable labeled with its subnet. Down the middle, top to bottom: R3, a router; R1, the HQ router; R2, the branch router; R4, a branch router; and the switch SW2. R3 is cabled to R1 (192.168.8.64/26), R1 to R2 (192.168.9.224/30), R2 to R4 (192.168.9.228/31) and R4 to SW2 (192.168.9.192/27). At the upper left, the host H1, a laptop, is cabled down from its base to R1 (192.168.8.0/26). Left of R2, the switch SW1 is cabled across to it (192.168.9.0/25).
Verify
R4’s summary route
R4 reaches HQ and the rest of the branch through one summary. How does it show in R4’s routing table?
It shows as a route typed by hand, code S for static, with a prefix length shorter than those of the networks it covers. Around it, expect R4’s two own subnets, each with a C line and an L line for R4’s address in it (Figure 5.3).
R2, the branch router, at the top; R4, a branch router, under it; the switch SW2 under R4. The cable from R2 to R4 is labeled 192.168.9.228/31, the cable from R4 to SW2 192.168.9.192/27. Left of the first cable a separate highlighted arrow points from R4 up toward R2, labeled “one route for HQ and branch LAN 1”.
show ip route lists every route of the table, after a legend of route codes and the gateway line.
On R4, with every interface as planned:
Tap a line, or “Not in the output”, then submit.
Find the route R4 uses for H1’s address, 192.168.8.10.
R4#show ip route… 13 more lines (see Full output)
R4 reaches HQ and branch LAN 1 through one static route, the summary toward R2; its own two subnets are connected routes.
- Field by field,
Sis a static route, typed by hand;192.168.8.0/23is the summary; andvia 192.168.9.228is the next hop, R2’s end of their link. - The header for R4’s routes inside the branch block:
4 subnets, 3 masks. - R4’s two own subnets, LAN 3 and the link to R2, inside the summary’s block too. For them R4 uses these longer, connected routes, since of several matching routes, the router uses the one with the longest prefix.
- R4’s own two addresses, each as a
/32.
Full output · 21 lines
R4#show ip routeCodes: 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, m - OMP n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA 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 H - NHRP, G - NHRP registered, g - NHRP registration summary o - ODR, P - periodic downloaded static route, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfR & - replicated local route overrides by connected Gateway of last resort is not set S 192.168.8.0/23 [1/0] via 192.168.9.228 192.168.9.0/24 is variably subnetted, 4 subnets, 3 masksC 192.168.9.192/27 is directly connected, Ethernet0/1L 192.168.9.193/32 is directly connected, Ethernet0/1C 192.168.9.228/31 is directly connected, Ethernet0/0L 192.168.9.229/32 is directly connected, Ethernet0/0
R2 holds a summary too, toward HQ.
On R2, with every interface as planned:
R2#show ip route static… 13 more lines (see Full output)Gateway of last resort is not set 1S 192.168.8.0/24 [1/0] via 192.168.9.225 192.168.9.0/24 is variably subnetted, 7 subnets, 5 masks2S 192.168.9.192/27 [1/0] via 192.168.9.229
- R2’s summary toward HQ: the code, the block and the next hop.
- R2’s route to R4’s LAN 3, inside the branch block.
Full output · 18 lines
R2#show ip route staticCodes: 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, m - OMP n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA 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 H - NHRP, G - NHRP registered, g - NHRP registration summary o - ODR, P - periodic downloaded static route, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfR & - replicated local route overrides by connected Gateway of last resort is not set S 192.168.8.0/24 [1/0] via 192.168.9.225 192.168.9.0/24 is variably subnetted, 7 subnets, 5 masksS 192.168.9.192/27 [1/0] via 192.168.9.229
Key idea
In show ip route a static summary is one S line whose prefix length is shorter than those of the networks it covers, with a next hop; show ip route with an address shows the entry that covers that address, if there is one.