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

OSPF vs IBGP

lnegreiros
Level 1
Level 1

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

3 Replies 3

Bilal Nawaz
VIP Alumni
VIP Alumni

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.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

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

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