background image
304
Chapter 5
IP Routing
Hands-on Lab 5.1: Creating Static Routes
In this first lab, you will create a static route in all four routers so that the
routers see all networks. Verify with the Ping program when complete.
1.
The 2621A router is connected to network 172.16.10.0/24. It does not
know about networks 172.16.20.0/24, 172.16.30.0/24, 172.16.40.0/24,
and 172.16.50.0/24. The 2621A router fa0/1 interface has an IP address
of 172.16.10.2/24, and the 2501A Ethernet 0 interface is 172.16.10.1/
24. Create static routes so that the 2621A Router can see all networks,
as shown here.
2621A#config t
2621A(config)#ip route 172.16.20.0 255.255.255.0
172.16.10.1
2621A(config)#ip route 172.16.30.0 255.255.255.0
172.16.10.1
2621A(config)#ip route 172.16.40.0 255.255.255.0
172.16.10.1
2621A(config)#ip route 172.16.50.0 255.255.255.0
172.16.10.1
2.
Save the current configuration for the 2621A router by going to the
enabled mode, typing copy run start, and pressing Enter.
3.
On Router 2501A, which is already directly connected to networks
172.16.10.0/24 and 172.16.20.0/24, create a static route to see net-
works 172.16.30.0/24, 172.16.40.0/24, and 172.16.50.0/24, as
shown here. The 2501B serial 0 interface IP address is 172.16.20.2/24,
which we will use as our next hop address.
2501A#config t
2501A(config)#ip route 172.16.30.0 255.255.255.0
172.16.20.2
2501A(config)#ip route 172.16.40.0 255.255.255.0
172.16.20.2
2501A(config)#ip route 172.16.50.0 255.255.255.0
172.16.20.2
These commands told Router 2501A to get to network 172.16.30.0/24
and use either IP address 172.16.20.2, which is the closet neighbor
interface connected to network 172.16.30.0/24, or Router 2501B.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com