Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static route

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
I need to add a static route to a series of cisco routers.
4 in all.

Can someone point me to information relevet to adding static routes on cisco routers. Or maybe some pointers would help.

Thanks
[sig]<p>-Danny<br><a href=mailto: > </a><br><a href= > </a><br><br>
<br>
[/sig]
 
conf t
ip route n.n.n.n(destination) n.n.n.n (mask)n.n.n.n (next hop) n(metric)

This should get you started. You can specify an interface for next hop such as Dialer1 if you like or an IP address. This is all fairly straight forward and should be available on the cisco.com site in most of the config cook books!

Rich [sig][/sig]
 
Thanks rich,

Appearently it was much easier than I thought. I found what I needed at cisco.com

ip route n.n.n.n(destination) n.n.n.n (mask)n.n.n.n (next hop) permanent

what would the major difference be by specifing permanent vs
the metric number

?? [sig]<p>-Danny<br><a href=mailto: > </a><br><a href= > </a><br><br>
<br>
[/sig]
 
The last parameter is not a normal metric, but it is used to set something called &quot;administrative distance&quot; and should be used in 2 cases:
1. if you use only static routes, as a metric, to seperate 2 or more routes going to the same place, with different priorities (backup links...)

2. if you use dynamic protocols, and want to enter also static routes and do nice things...

Our case might be case 1...

Also, do not use the permanent parameter - it will leave routes up even if the interface is down - so if you have a backup path it won't work...

Arie [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top