BGP Conditional Advertisement
Hi, Is there any way to configure BGP Conditional Advertisement like in cisco: http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/161... ? -- Łukasz
Hi, On Fri, Jul 21, 2017 at 01:24:52AM +0200, e2rd wrote:
Hi, Is there any way to configure BGP Conditional Advertisement like in cisco: http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/161... ?
Currently the only way i see, is with some kind of external check script (cron based), which looks on the routing table and changes some PREFIX File, which then get used by an export filter. I'm not aware that bird has "inline" support of this ... HTH, tim -- Tim Weippert http://weiti.org - weiti@weiti.org GPG Fingerprint - E704 7303 6FF0 8393 ADB1 398E 67F2 94AE 5995 7DD8
On Fri, Jul 21, 2017 at 01:24:52AM +0200, e2rd wrote:
Hi, Is there any way to configure BGP Conditional Advertisement like in cisco: http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/161... ?
Hi It is not directly supported. It may be possible to use a trick with static recursive route - add a static recursive route pointing to an IP address in the conditional range using a static protocol, then filter it out based on value of 'gw' property. Note that it must be done in export filters of other protocols, not in import filter of the static 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."
On Fri, 28 Jul 2017, Ondrej Zajicek wrote:
On Fri, Jul 21, 2017 at 01:24:52AM +0200, e2rd wrote:
Hi, Is there any way to configure BGP Conditional Advertisement like in cisco: http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/161... ?
Hi
It is not directly supported. It may be possible to use a trick with static recursive route - add a static recursive route pointing to an IP address in the conditional range using a static protocol, then filter it out based on value of 'gw' property. Note that it must be done in export filters of other protocols, not in import filter of the static protocol.
Hi, thanks, that trick works but I have another problem. Route which I want to export is distributed via OSPF. I've set preference of static "condition" protocol lower than OSPF (and filtered it out in kernel export) but now this trick doesn't works. Do you have another trick for this? ;) -- Łukasz
On Mon, Jul 31, 2017 at 10:35:34AM +0200, e2rd wrote:
Hi, thanks, that trick works but I have another problem. Route which I want to export is distributed via OSPF. I've set preference of static "condition" protocol lower than OSPF (and filtered it out in kernel export) but now this trick doesn't works. Do you have another trick for this? ;)
How it does not work? The route disappears from OSPF? Is it replaced by some other one? Does it work even if you do the same with regular static route with lower preference? Do you have recent BIRD (1.6.x)? -- 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 (3)
-
e2rd -
Ondrej Zajicek -
Tim Weippert