cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
544
Views
0
Helpful
3
Replies

When Ebgp & Ospf is configured on router and we have to ospf route should prefer rather than ebgp route???

santoshautade
Level 1
Level 1

When Ebgp & Ospf is configured on router and we have to ospf route should prefer rather than ebgp route???

3 Replies 3

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

The router would only prefer the OSPF route if it had a longer prefix than the eBGP route. If the prefix lengths are equal and the administrative distances are still at default values then the eBGP route will be installed in the routing table.

 

cheers,

Seb.

but we want to prefer ospf route without using of route map also .prefix length is same .

 

Hi,

If you want prefer OSPF, you can decrease the administrative distance from 110 to 19 at least. 

 

router ospf x

distance ospf <inter-area> <intra-area> <external>

 

You must analize your network first. 

 

Also you can prefer some prefixes from specific source using: 

router ospf x

distance 19 <source address> <wildcard, usually 0.0.0.0> <acl>

 

The ACL is used to match the specific received prefixes. 

 

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<
Review Cisco Networking products for a $25 gift card