Comware Based
1822497 Members
2891 Online
109642 Solutions
New Discussion

Prefering an OSPF route over a direct route

 
dfanascimento
New Member

Prefering an OSPF route over a direct route

Hello,  i'm having some trouble here that seems to me kinda difficult to solve, so hope there is anyone here with an nice idea...

A have a network based on OSPF with a ring topology, so there ir multiple paths to get from anywhere to anywhere, this works very good and just fine. Lately im having some problems with people cutting my fiberoptic cables what eventually gets some buildings out of the network. so there is this specific building that i need to be always on, so i decide to install a "backup link" with a radio, since is a radio the connection is away worst than my 10gbs fiber, and i want the router to use this path only as a last option, when all the fiber ones are gone... the problem is:

Since the radio conection goes between the datacenter and this another building, both switches learn this route as a direct route, witch has preference over the OSPF path tru the other buildings, so whenever i enable this interface both buildings decide to use the radio connection over the OSPF witch is not what i want.

i've set an ospf cost for the interface but this solves the problem only for the other building that learn the route tru OSPF, the 2 buldings directly connected insist in using the direct route.

My question: Is there a way to manually set a specific cost for that direct route so the router will prefer the OSPF?

Is there anyway that i can tell the router to not use that direct route until is the last option availble?

Thanks everyone!

1 REPLY 1
drk787
HPE Pro

Re: Prefering an OSPF route over a direct route

Hi,

 

You can change the preference values, refer the default preference values (URL given below has the procedure) 

    Route preference

Routing protocols, including static and direct routing, each by default have a preference. If they find multiple routes to the same destination, the router selects the route with the highest preference as the optimal route.

The preference of a direct route is always 0 and cannot be changed. You can configure a preference for each static route and each dynamic routing protocol. The following table lists the route types and default preferences. The smaller the value, the higher the preference.

Table : Route types and default route preferences

Route type

Preference

Direct route

0

Multicast static route

1

OSPF

10

IS-IS

15

Unicast static route

60

RIP

100

OSPF ASE

150

OSPF NSSA

150

IBGP

255

EBGP

255

Unknown (route from an untrusted source)

256

 

http://www.h3c.com.hk/Technical_Support___Documents/Technical_Documents/Switches/H3C_S12500_Series_Switches/Configuration/Operation_Manual/H3C_S12500_CG-Release7128-6W710/06/201301/772644_1285_0.htm

 

 

Thank You!
I am an HPE Employee

Accept or Kudo