cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3258
Views
0
Helpful
16
Replies

Learn route via ospf rather than ebgp

acbenny
Level 1
Level 1

Hi all,

It is strange that I don't know why the 26 router will learn below network via ospf

method, I think it should be learned via 17A ebgp Router (192.168.1.2). Anyone know

what happen on it ? Thank you

2600#sh ip route

O E2 172.20.1.0 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

O E2 172.20.1.4 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

O E2 192.168.170.192 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

O E2 192.168.170.128 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

O E2 192.168.170.64 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

O E2 192.168.170.0 [110/1] via 10.1.1.3, 00:11:10, Ethernet0/1

16 Replies 16

lee.reade
Level 4
Level 4

Hi,

r>i172.20.1.0/30 10.10.10.2 0 100 0 i

r>i172.20.1.4/30 10.10.10.2 0 100 0 30 i

These routes are only learned via 10.10.10.2, which is iBGP neighbour, so admin distance of 200, ospf = 110, so this is why this route takes effect.

r>i192.168.170.0/26 10.10.10.2 0 100 0 30 i

r>i192.168.170.64/26

10.10.10.2 0 100 0 30 i

These two are the same as above.

For the other two,(192.168.170.192/192.168.170.128) I can only think that they are being compared by the BGP process, and since the route via 10.10.10.2 is better than the one via 192.168.1.2 (shorted as path), then this route gets beat on admin distance by ospf.

So all routes chosen are ospf.

When you see the "r" in the show ip bgp output, this is a RIB failure which generally means that the router has a better route than the one learned via BGP.

HTH

LR

The main problem is that 17A router is not sending those networks via EBGP...