background image
Hands-on Labs
305
This is the same interface you will use to get to networks 172.16.40.0/24
and 172.16.50.0/24.
4.
Save the current configuration for Router 2501A by going to the
enabled mode, typing copy run start, and pressing Enter.
5.
On Router 2501B, create a static route to see networks 172.16.10.0/24
and 172.16.50.0/24, which are not directly connected. Create static
routes so that Router 2501B can see all networks, as shown here.
2501B#config t
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 first command told Router 2501B that to get to network
172.16.10.0/24, it needs to use 172.16.20.1. The next command told
Router 2501B to get to network 172.16.50.0/24 through 172.16.40.2,
which is the 2501C serial 0 interface IP address.
Save the current configuration for Router 2501B by going to the
enable mode, typing copy run start, and pressing Enter.
6.
Router 2501C is connected to networks 172.16.50.0/24 and
172.16.40.0/24. It does not know about networks 172.16.30.0/24,
172.16.20.0/24, and 172.16.10.0/24. Create static routes so that
Router 2501C can see all networks, as shown here. Use the 2501B
serial 1 interface address of 172.16.40.1.
2501C#config t
2501C(config)#ip route 172.16.30.0 255.255.255.0
172.16.40.1
2501C(config)#ip route 172.16.20.0 255.255.255.0
172.16.40.1
2501C(config)#ip route 172.16.10.0 255.255.255.0
172.16.40.1
Save the current configuration for Router 2501C by going to the
enable mode, typing copy run start, and pressing Enter.
Now ping from each router to your hosts and from each router to each
router. If it is set up correctly, it will work.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com