cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
249
Views
0
Helpful
1
Replies

Redistribute OSPF into BGP. But prefer BGP Routes

Peter Nesta
Level 1
Level 1

Hi everybody,

at the moment we are migrating some ospf sites to bgp. The Problem is that we are using a OSPF stub area. So it is not possible to redistribute BGP routes into the OSPF stub area. So we have to tricks to propagate the bgp routes into ospf. But this isn't the problem. The issue that I am having is that I have two route entrys for subnets  which are already migrated to the BGP and I want to prefer always the BGP route. How can I achieve this?

sh ip bgp 172.20.31.72/29
BGP routing table entry for 172.20.31.72/29, version 118173
Paths: (2 available, best #1, table default)
  Advertised to update-groups:
     14         16        
  Refresh Epoch 1
  65310 65011
    192.168.185.36 from 192.168.xx.xx (192.168.xx.xx)
      Origin incomplete, metric 222, localpref 100, valid, external, best
  Refresh Epoch 1
  20570 20570 65310
    192.168.232.150 from 192.168.232.150 (xx.xx.xx.xx)
      Origin IGP, localpref 100, valid, external

cheers peter

1 Reply 1

ysaadi2009
Level 1
Level 1

you can change the administrative disatance of BGP to a value lower than 110 to always prefer BGp over OSPF , you can do this perprefix bases

Review Cisco Networking for a $25 gift card