Configuration Example: Static Routes


Figure 7-1 shows the network topology for the configuration that follows, which shows how to configure static routes using the commands covered in this chapter.

Figure 7-1. Network Topology for Static Route Configuration


Note:

The host name, password, and interfaces have all been configured as per the configuration in the Chapter 6 configuration example.


Boston Router

Boston>en

 

Boston#config t

 

Boston(config)#ip route 172.16.30.0 255.255.255.0 172.16.20.2

Configures a static route using the next-hop address

Boston(config)#ip route 172.16.40.0 255.255.255.0 172.16.20.2

 

Boston(config)#ip route 172.16.50.0 255.255.255.0 172.16.20.2

 

Boston(config)#exit

 

Boston#copy run start

 


Buffalo Router

Buffalo>en

 

Buffalo#config t

 

Buffalo(config)#ip route 172.16.10.0 255.255.255.0 s1

Configures a static route using the exit interface

Buffalo(config)#ip route 172.16.50.0 255.255.255.0 s0

 

Boston(config)#exit

 

Boston#copy run start

 


Bangor Router

Bangor>en

 

Bangor#config t

 

Bangor(config)#ip route 0.0.0.0 0.0.0.0 s1

Configures a static route using the default route

Bangor(config)#exit

 

Bangor#copy run start

 





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net