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

Static route distributed into ospf wheighted 1

Status
Not open for further replies.

wilson2468

Technical User
Joined
Jun 2, 2006
Messages
84
Location
US
Can you distribute a route into OSPF and have it weighted so it would not take affect until the dynamic route was gone, as in a failover situation?

Like if you had 5 differnet locations, each site has two different connections to the Main office.

One of the paths is with static routes via Internet thru GRE tunnel, the other is with OSPF in an MPLS cloud.

If one of the sites looses connection with the OSPF process, the 110 AD route dies, the distributed static would allow all of the other remote sites to connect via MPLS.

I guess it would be metric on an OSPF distributed static route?

How do you know what the metric should be?

 
Do you mean something like:

router ospf 1
redistribute static metric 10000 metric-type 1 route-map STAT2OSPF

route-map STAT2OSPF permit 10
match ip address 1

access-list 1 permit 192.168.1.0 0.0.0.255


This will redistribute only the statics defined in access-list 1 with a high metric of 10000 and a metric type of E1

The metric can be anything you want however choose something large so that it is never preferred over existing OSPF routes.
 
Thanks,

That is what Im looking for
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top