11-07-2018 07:58 PM
Good evening. I am working on a bgp routing issue and decided that using the backdoor switch to make my router prefer my eigrp route over bgp would make routing this particular set of networks more efficient. So, here is the problem: I am advertising vpn client routes from my firewall at the time they connect. These are 192.168.251.x /32 routes. This works very well. However, in this one site, I need to force the eigrp route to be chosen over bgp. My config looks like this:
router bgp 65017
bgp log-neighbor-changes
timers bgp 15 45
neighbor 10.x.x.x remote-as 1850
address-family ipv4
network 10.x.x.x mask 255.255.252.0
network 192.168.251.0 mask 255.255.255.0 backdoor
neighbor 10.x.x.x activate
etc.
This does not work. The 192.168.251.x /32 route remains ebgp with an ad of 20.
When I change the network statement to: network 192.168.251.134 255.255.255.255 backdoor, it DOES work. The eigrp ex route is added to the routing table with the ad of 170.
So, is there a way to fix this without adding 255 network...backdoor statements? I've tried configuring route-maps in combination with the network....backdoor statement, but no luck.
The issue is obviously related to matching the prefix and mask, but this puzzle should have a solution. Any ideas?
Solved! Go to Solution.
11-08-2018 09:25 AM - edited 11-08-2018 09:26 AM
Hello
Simplistic solution would be to aggregate that ip range then backdoor on the received aggregate.
RTRx
router bgp xx
aggregate-address 192.168.251.0 255.255.255.0 summary-only
RTRy
network 192.168.251.0 mask 255.255.255.0 backdoor
11-07-2018 11:25 PM
Hello,
Is the /24 route actually in the routing table ? If not, try and add a null route for the /24 network...
11-08-2018 06:26 AM
11-08-2018 06:37 AM
11-08-2018 07:21 AM
Hello,
add the static null route below:
ip route 192.168.251.0 255.255.255 null 0
11-08-2018 07:44 AM
11-08-2018 09:25 AM - edited 11-08-2018 09:26 AM
Hello
Simplistic solution would be to aggregate that ip range then backdoor on the received aggregate.
RTRx
router bgp xx
aggregate-address 192.168.251.0 255.255.255.0 summary-only
RTRy
network 192.168.251.0 mask 255.255.255.0 backdoor
11-08-2018 11:01 AM
11-08-2018 01:46 PM - edited 11-08-2018 01:52 PM
Hello
did you include Summary Only
11-09-2018 07:42 AM
I cleared the bgp peer and the bgp route aggregation that Paul suggested worked. Thanks much. I appreciate the help.
11-08-2018 09:43 AM - edited 11-08-2018 09:45 AM
@Georg Pauwen wrote:
Hello,
add the static null route below:
ip route 192.168.251.0 255.255.255 null 0
@Georg Pauwen this wont work it will just blackhole traffic not active
11-08-2018 09:55 AM
11-08-2018 10:38 AM
Hello,
can't you just run the VPN client routes under a different EIGRP process and then redistribute with a lower metric (19) ? That said, how do you currently redistribute EIGRP and BGP ?
11-08-2018 10:42 AM
11-08-2018 10:58 AM
Hello,
here is what I mean:
router eigrp 1
distance 19 192.168.12.2 0.0.0.0 <-- this is your EIGRP neighbor
or
distance eigrp 19 19 <-- this sets the AD to 19 for both internal and external routes
!
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
redistribute eigrp 1
This will result in the redistributed routes to have an AD of 19, so you won't even need the backdoor.
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