Hi
I am learning BGP routes from the same router, via 2 different paths, a primary and secondary route. I then export these routes, and import them into a different VRF on the same router. The issue I have is that one route (the secondary) is preferred over the primary route when importing (or exporting, I'm not sure which), and it just happens to be the WRONG route (its the secondary and not the primary like it should be)! Not matter what I do, I can't change this. I have tried changing the secondary routes AS-path, local preference, distance, all kinds of things, but no matter what I do the primary never is imported as a priority route! If I drop the secondary route (i.e. drop the peer providing this route, the primary will then be imported and will actually operate fine. Here is the routes from the originating VRF:
PRIMARY:
ADb dst-address=1.1.1.2/31 gateway=172.18.1.62 gateway-status=172.18.1.62 on vrf02 reachable via vlan121.168 distance=20 scope=40 target-scope=10 routing-mark=vrf02 bgp-as-path="65000" bgp-med=0 bgp-origin=igp bgp-communities="" bgp-ext-communities="RT:65000:2" received-from=aucak1rt01-BGP-PEER
SECONDARY:
Db dst-address=1.1.1.2/31 gateway=172.21.16.6 gateway-status=172.21.16.6 recursive via 103.19.103.42 vlan461 distance=200 scope=40 target-scope=30 routing-mark=vrf02 bgp-as-path="65000" bgp-local-pref=100 bgp-med=0 bgp-origin=igp bgp-ext-communities="RT:65000:2"
This is how it looks in the final VRF (vrf01) I am trying to import it into:
59 ADb dst-address=1.1.1.2/31 gateway=172.21.16.6 gateway-status=172.21.16.6 recursive via 103.19.103.42 vlan461 distance=200 scope=40 target-scope=30 routing-mark=vrf01 bgp-as-path="65000" bgp-local-pref=100 bgp-med=0 bgp-origin=igp bgp-ext-communities="RT:65000:2"
This is the wrong import. As you can see the distance is higher, the local_preference is lower (100). Im not sure what else I can do.
Any ideas on this one? note, I have changed the destination IP address for the purposes of obscurity only - the subnet is right though.
Thanks
Brad