background image
268
Chapter 5
IP Routing
By looking at the routing table, you can see that the 2501A router now
understands how to find each network.
2501A#sh ip route
[output cut]
172.16.0.0/24 is subnetted, 5 subnets
S 172.16.50.0 [1/0] via 172.16.20.2
S 172.16.40.0 [1/0] via 172.16.20.2
S 172.16.30.0 [1/0] via 172.16.20.2
C 172.16.20.0 is directly connected, Serial0
C 172.16.10.0 is directly connected, Ethernet0
2501A#
The 2501A router now has a complete routing table. As soon as the other
routers in the internetwork have the same routing table, 2501A can commu-
nicate to all remote networks.
2501B
The 2501B router is directly connected to networks 172.16.20.0, 172.16.30.0,
and 172.16.40.0. Only two routes need to be added: 172.16.10.0 and
172.16.50.0.
2501B(config)#ip route 172.16.10.0 255.255.255.0
172.16.20.1
2501B(config)#ip route 172.16.50.0 255.255.255.0
172.16.40.2
The following output shows the routing table on the 2501B router.
2501B#sh ip route
[output cut]
172.16.0.0/24 is subnetted, 5 subnets
S 172.16.50.0 [1/0] via 172.16.40.2
C 172.16.40.0 is directly connected, Serial1
C 172.16.30.0 is directly connected, Ethernet0
C 172.16.20.0 is directly connected, Serial0
S 172.16.10.0 [1/0] via 172.16.20.1
2501B#
2501B now shows all the networks in the internetwork and can commu-
nicate with all routers and networks, with the exception of the hosts on
network 172.16.50.0; this is because 2501C is not configured yet.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com