Simple BGP with two operators, one advertisement and prepending

Wojciech Bajorek wojciech.bajorek at gmail.com
Tue Apr 25 09:58:48 CEST 2017


Yes. It was approx one week ago but AFAIR both ISPs received subnet
(however in the output there was an "inactive" or "unreachable" note).

Additional info - this server has 3 IP addresses - two /30 networks for
ISP1 and ISP2 and "internal" network - 90.90.90.1/24

Regards,
Wojciech Bajorek

2017-04-25 9:46 GMT+02:00 David S. <david at zeromail.us>:

> Hi,
>
> Have you check the bgp export result from birdc?
> birdc 'show route export peer_isp1' and birdc 'show route export
> peer_isp2' and see if as path already added.
>
>
>
>
>
> Best regards,
> David S.
> ------------------------------------------------
> e. david at zeromail.us
> w. pnyet.web.id
> p. 087881216110
>
> On Tue, Apr 25, 2017 at 2:36 PM, Wojciech Bajorek <
> wojciech.bajorek at gmail.com> wrote:
>
>> Hi,
>>
>> I have a pretty simple BGP configuration with two ISP and one static
>> subnet to advertise.
>> There is also one prepending configured but I'm not sure if it's working.
>>
>> The thing is that for some reason when I connect both ISP peers, traffic
>> to the advertised ISP#2 networks (with shorter path) stops working after a
>> couple of seconds. Tracert shows the last hop as ISP#2 border router.
>>
>> Similar configuration on Juniper router works without any problem, so I'm
>> afraid that there is an error within my Bird config.
>> Can you please help me out?
>>
>> PS. Without prepending situation is exactly the same.
>>
>> OS: Debian 8
>> Bird: 1.4.5-1+deb8u1
>>
>>
>> router id 90.90.90.1;
>>
>> protocol kernel {
>>         persist;
>>         scan time 15;
>>         import all;
>>         export all;
>> }
>>
>> protocol device {
>>         scan time 10;
>> }
>>
>> filter bgp_isp1_out {
>>         if net = 90.90.90.0/24 then
>>         {
>>                 accept;
>>         }
>>         else reject;
>> }
>>
>> filter bgp_isp2_out {
>>         if net = 90.90.90.0/24 then
>>         {
>>                 bgp_path.prepend(12345);
>>                 bgp_path.prepend(12345);
>>                 accept;
>>         }
>>         else reject;
>> }
>>
>> protocol bgp bgp_isp1 {
>>         import all;
>>         export filter bgp_isp1_out;
>>
>>         local as 12345;
>>         neighbor 2.3.4.5 as 2345;
>> }
>>
>> protocol bgp bgp_isp2 {
>>         import all;
>>         export filter bgp_isp2_out;
>>
>>         local as 12345;
>>         neighbor 3.4.5.6 as 3456;
>> }
>>
>>
>> Thank you.
>>
>> Regards,
>> Wojciech Bajorek
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170425/1eedb2c4/attachment.html>


More information about the Bird-users mailing list