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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

L3 question concerning 3560 switch 1

Status
Not open for further replies.

blade10

IS-IT--Management
Feb 2, 2008
144
US
All-

can you in fact setup metric priorities on default or static routes..

i.e, ip route 0.0.0.0 0.0.0.0 192.168.x.x 1 <--- metric one

and then set up a second route using a 2 at the end of it making it a 2nd in priority?

just curious if metric priorities work this way..

thanks

blade
 
yes you can and yes they do. are you asking for a specific application or are you just curious?

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
What you are talking about is 'administrative distances' and NOT metrics - they are different things.

Administrative distances are a 'believability' factor of a routing protocol (in your case a static route) when the route exists in multiple routing tables (OSPF, RIP, static etc). Metrics are routing protocol specific and are calculated by the routing process to determine which next-hop to forward traffic to.

For example if a router is running both RIP & OSPF and is learning the same prefix under both RIP & OSPF, then regardless of the metric of each route the OSPF one will be added to the routing table since OSPFs admin distance is 110 (RIP being less preferable at 120).

HTH

Andy

 
The example blade10 has posted is called a floating static route. If link a goes down, then link b will take over.
ip route 0.0.0.0 0.0.0.0 192.168.1.2
ip route 0.0.0.0 0.0.0.0 192.168.5.2 50
There is no need to put an AD on the end of the preferred route, since static routes have a default of 1, and directly connected routes have a default of 0.

Burt
 
All-

Although everyone here gave great examples of specific elements and I commend you all... however, burtbees had was I was looking for exactly.
The floating static route! So I suppose this does hold true for a switch that can route.

Thanks again to all

blade
 
Star for Burt then??

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
no prob mayn ;-)

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top