Incorrect iBGP next hop in bird2
Hi, I've very simple install. Server with two links vlan1 - 50.0.0.1/25 and vlan2 - 10.0.0.7/31 One static default route and one iBGP neighbor: protocol static default_route { ipv4; route 0.0.0.0/0 via 50.0.0.254; } protocol bgp nat_downlink1 { local 10.0.0.7 as 65001; neighbor 10.0.0.6 as 65001; #direct; ipv4 { next hop self; import all; export all; }; } Neighbor sends me a bunch of /32 host routes and all routes received from 10.0.0.6 neigbor has next hop 50.0.0.254. bird> sh route Table master4: 0.0.0.0/0 unicast [default_route 15:23:28.170] * (200) via 50.0.0.254 on vlan1 10.107.1.81/32 unicast [downlink1 16:59:19.320 from 10.0.0.6] * (100/?) [i] via 50.0.0.254 on vlan2 To fix this I can add direct option to me BGP neigbor, but I wonder why this even happens. Is there more correct eay to fix this?
On Mon, Dec 21, 2020 at 05:15:43PM +0000, Юрий Иванов wrote:
Hi,
Neighbor sends me a bunch of /32 host routes and all routes received from 10.0.0.6 neigbor has next hop 50.0.0.254.
bird> sh route Table master4: 0.0.0.0/0 unicast [default_route 15:23:28.170] * (200) via 50.0.0.254 on vlan1 10.107.1.81/32 unicast [downlink1 16:59:19.320 from 10.0.0.6] * (100/?) [i] via 50.0.0.254 on vlan2
To fix this I can add direct option to me BGP neigbor, but I wonder why this even happens. Is there more correct eay to fix this?
Hi You do not have direct routes in BIRD routing table, so BGP next hop 10.0.0.6 is resolved by default route to 50.0.0.254. Just add 'direct' protocol. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Ondrej Zajicek -
Юрий Иванов