03-16-2015 10:09 AM - edited 03-05-2019 01:01 AM
hi everyone
I have one question. I do not know why the route learned from ibg is better than the route learned from ospf ... i mean ad ospf is lower than the ibgp and the router must choose ospf network
sh ip route 192.168.7.0
Routing entry for 192.168.7.0/24
Known via "ospf 200", distance 110, metric 150
Tag 6147, type extern 2, forward metric 1
Redistributing via bgp 65178
Last update from 10.4.3.1,on GigabitEthernet0/0, 1w0d ago
Routing Descriptor Blocks:
* 10.4.3.1, from 200.20.24.1, 1w0d ago, via GigabitEthernet0/0
Route metric is 150, traffic share count is 1
Route tag 6147
-------------
sh ip route 192.168.7.0
Routing entry for 192.168.7.0/24
Known via "bgp 65178", distance 200, metric 110, type internal
Last update from 10.2.0.5 00:03:03 ago
Routing Descriptor Blocks:
* 10.2.0.5, from 10.2.0.5, 00:03:03 ago
Route metric is 110, traffic share count is 1
AS Hops 0
Thanks
03-16-2015 10:18 AM
Could you give us a brief description of how the setup is. Are the outputs of show ip route from the same device or different? By default OSPF will always be chosen over an iBGP route in normal cases.
03-16-2015 02:05 PM
yes is from the same device! . I know ospf will be chosen.
I have a ospf and bgp running in same device . I configure bgp because i have a redundant link with bgp but when i active bgp all traffic goes with bgp
03-16-2015 02:14 PM
We need more details to be able to help you.
Firstly we need to understand the topology of the network ie. which routers is this router peering with, are you redistributing between BGP and OSPF.
We cannot just look at one router and tell you why it is preferring one route over another.
Jon
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