12-13-2017 01:03 AM - edited 03-05-2019 09:38 AM
When Ebgp & Ospf is configured on router and we have to ospf route should prefer rather than ebgp route???
12-13-2017 01:08 AM - edited 12-13-2017 01:08 AM
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.
12-13-2017 03:49 AM
but we want to prefer ospf route without using of route map also .prefix length is same .
12-13-2017 03:54 AM - edited 12-13-2017 04:02 AM
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.
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide