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

ospf over static route preference

Status
Not open for further replies.

jack57

Technical User
Feb 3, 2003
9
How do I code a static route to be less preferred than an OSPF route? I've used the COST parameter in the static route command and made it greater than the OSPF cost but when I remove the existing route (learned by BGP) the static route takes it place. I want the OSPF route form an adjacent router to be used.

Can anyone help?
Let me know if you need a better explanation.
Thanks,
Jack
 
You need to change the preference (Nortel ERS)
Default preferences for an ERS:
----------------------------------------------------------
local 0 0
static 5 5
ospfIntra 20 20
ospfInter 25 25
ebgp 45 45
rip 100 100
ospfExternal1 120 120
ospfExternal2 125 125
ibgp 175 175
staticv6 5 5
ospfv3Intra 20 20
ospfv3Inter 25 25
ospfv3External1 120 120
ospfv3External2 125 125
------------------------------------------------

Create your statIC ROUTE:
conf ip static-route create 10.0.0.0/16 next-hop 10.0.1.1 cost 1 preference 30

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top