Re: Direct protocol affects BGP

2020-03-25 Thread Fabiano D'Agostino
ah okay thanks, I understand now!

Il giorno mer 25 mar 2020 alle ore 17:33 Alexander Zubkov 
ha scritto:

> Than I see no problem. When you have direct protocol off - your router
> have nothing imported to the bird's routing table and so nothing is
> exported to the bgp peer. A kernel protocol does not import those
> routes, from the documentation:
>
> > Note that routes created by OS kernel itself, namely direct routes
> representing IP subnets of associated interfaces, are not imported even
> with learn enabled. You can use Direct protocol to generate these direct
> routes.
>
> On Wed, Mar 25, 2020 at 5:21 PM Fabiano D'Agostino
>  wrote:
> >
> > Yes, I disabled direct protocol on both routers. The full bird.conf is
> the following:
> > log syslog all;
> > ipv4 table master4;
> > ipv6 table master6;
> > router1 bgp configuration:
> > protocol bgp {
> > ipv4 {
> > import all;
> > export all;
> >};
> >local as 1;
> >neighbor 192.168.2.22 as 2;
> > }
> > protocol device {
> > }
> > protocol kernel {
> > ipv4 {
> > table master4;
> > import all;
> > export all;
> > };
> > }
> > protocol static {
> > ipv4;
> > }
> >
> >
> > Il giorno mer 25 mar 2020 alle ore 17:06 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >>
> >> Do you disable direct protocol on both router1 and router2?
> >> And that is definitely not the full bird config, you do not have a
> >> kernel protocol for example.
> >>
> >> On Tue, Mar 24, 2020 at 10:50 PM Fabiano D'Agostino
> >>  wrote:
> >> >
> >> > There is no gateway because they are directly connected. However my
> network topology is the following:
> >> > [pc-a - router1 ]=AS 1 ; [pc-b - router 2]=AS 2;
> >> > pc-a:
> >> > enp0s3
> >> > address 192.168.1.11
> >> > gw 192.168.1.1
> >> > router1:
> >> > enp0s3
> >> > address 192.168.1.1
> >> > enp0s8
> >> > 192.168.2.2
> >> >
> >> > router1 bgp configuration:
> >> > protocol bgp {
> >> > ipv4 {
> >> > import all;
> >> > export all;
> >> >}
> >> > local as 1;
> >> > neighbor 192.168.2.22 as 2
> >> >
> >> >
> >> > Il giorno mar 24 mar 2020 alle ore 22:40 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >>
> >> >> There is also no gateway in you "route" output on routes exported
> from
> >> >> bird. Maybe you have some filters that causing it? Could you show
> your
> >> >> config if it is not secret?
> >> >>
> >> >> On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
> >> >>  wrote:
> >> >> >
> >> >> > Yes, 'show route', is from Bird. I don't have route-reflector, but
> just two routers which have a bgp session. Anyway, yes when direct is
> disabled, the bgp session is established.
> >> >> >
> >> >> > Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >> >>
> >> >> >> "show route" looks a little weird, is it from bird? There are also
> >> >> >> commonly a protocol and metric shown.
> >> >> >> Those are from your route-reflector? Do you have your bgp
> sessions up
> >> >> >> when direct is disabled?
> >> >> >>
> >> >> >> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
> >> >> >>  wrote:
> >> >> >> >
> >> >> >> > Good evening Alexander,
> >> >> >> >
> >> >> >> > Direct protocol enabled:
> >> >> >> > 'route' command:
> >> >> >> > Destination Gateway GenmaskFlags Metric iface
> >> >> >> > 192.168.1.0  *255.255.255.0   U   0
>  enp0s3
> >> >> >> > 192.168.1.0  *255.255.255.0   U   32
>  enp0s3
> >> >> >> > 192.168.2.0  *255.255.255.0   U   0
>  enp0s8
> >> >> >> > 192.168.2.0  *255.255.255.0   U32
> enp0s8
> >> >> >> > 192.168.4.0  *255.255.255.0   U32
> enp0s8
> >> >> >> > 'show route' command:
> >> >> >> > 192.168.1.0/24 enp0s3
> >> >> >> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
> >> >> >> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
> >> >> >> >
> >> >> >> > Direct protocol disabled:
> >> >> >> > 'route' command:
> >> >> >> > Destination Gateway GenmaskFlags Metric iface
> >> >> >> > 192.168.1.0  *255.255.255.0   U   0
>  enp0s3
> >> >> >> > 192.168.2.0  *255.255.255.0   U   0
>  enp0s8
> >> >> >> > 'show route' command:
> >> >> >> > empty
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> >
> >> >> >> > Fabiano
> >> >> >> >
> >> >> >> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >> >> >>
> >> >> >> >> I think it would be easier if you showed your route tables in
> both cases.
> >> >> >> >>
> >> >> >> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti <
> irene.lali...@restena.lu> wrote:
> >> >> >> >> >
> >> >> >> >> > Hello guys!
> >> >> >> >> >
> >> >> >> >> > Just because today we encountered again the same issue with
> direct, I am very curious on this:
> >> >> >> >> >
> >> >> >> >> > I totally agree with what you guys explained about 

Re: Direct protocol affects BGP

2020-03-25 Thread Alexander Zubkov
Than I see no problem. When you have direct protocol off - your router
have nothing imported to the bird's routing table and so nothing is
exported to the bgp peer. A kernel protocol does not import those
routes, from the documentation:

> Note that routes created by OS kernel itself, namely direct routes 
> representing IP subnets of associated interfaces, are not imported even with 
> learn enabled. You can use Direct protocol to generate these direct routes.

On Wed, Mar 25, 2020 at 5:21 PM Fabiano D'Agostino
 wrote:
>
> Yes, I disabled direct protocol on both routers. The full bird.conf is the 
> following:
> log syslog all;
> ipv4 table master4;
> ipv6 table master6;
> router1 bgp configuration:
> protocol bgp {
> ipv4 {
> import all;
> export all;
>};
>local as 1;
>neighbor 192.168.2.22 as 2;
> }
> protocol device {
> }
> protocol kernel {
> ipv4 {
> table master4;
> import all;
> export all;
> };
> }
> protocol static {
> ipv4;
> }
>
>
> Il giorno mer 25 mar 2020 alle ore 17:06 Alexander Zubkov  
> ha scritto:
>>
>> Do you disable direct protocol on both router1 and router2?
>> And that is definitely not the full bird config, you do not have a
>> kernel protocol for example.
>>
>> On Tue, Mar 24, 2020 at 10:50 PM Fabiano D'Agostino
>>  wrote:
>> >
>> > There is no gateway because they are directly connected. However my 
>> > network topology is the following:
>> > [pc-a - router1 ]=AS 1 ; [pc-b - router 2]=AS 2;
>> > pc-a:
>> > enp0s3
>> > address 192.168.1.11
>> > gw 192.168.1.1
>> > router1:
>> > enp0s3
>> > address 192.168.1.1
>> > enp0s8
>> > 192.168.2.2
>> >
>> > router1 bgp configuration:
>> > protocol bgp {
>> > ipv4 {
>> > import all;
>> > export all;
>> >}
>> > local as 1;
>> > neighbor 192.168.2.22 as 2
>> >
>> >
>> > Il giorno mar 24 mar 2020 alle ore 22:40 Alexander Zubkov 
>> >  ha scritto:
>> >>
>> >> There is also no gateway in you "route" output on routes exported from
>> >> bird. Maybe you have some filters that causing it? Could you show your
>> >> config if it is not secret?
>> >>
>> >> On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
>> >>  wrote:
>> >> >
>> >> > Yes, 'show route', is from Bird. I don't have route-reflector, but just 
>> >> > two routers which have a bgp session. Anyway, yes when direct is 
>> >> > disabled, the bgp session is established.
>> >> >
>> >> > Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov 
>> >> >  ha scritto:
>> >> >>
>> >> >> "show route" looks a little weird, is it from bird? There are also
>> >> >> commonly a protocol and metric shown.
>> >> >> Those are from your route-reflector? Do you have your bgp sessions up
>> >> >> when direct is disabled?
>> >> >>
>> >> >> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
>> >> >>  wrote:
>> >> >> >
>> >> >> > Good evening Alexander,
>> >> >> >
>> >> >> > Direct protocol enabled:
>> >> >> > 'route' command:
>> >> >> > Destination Gateway GenmaskFlags Metric iface
>> >> >> > 192.168.1.0  *255.255.255.0   U   0 
>> >> >> > enp0s3
>> >> >> > 192.168.1.0  *255.255.255.0   U   32   enp0s3
>> >> >> > 192.168.2.0  *255.255.255.0   U   0 
>> >> >> > enp0s8
>> >> >> > 192.168.2.0  *255.255.255.0   U32  enp0s8
>> >> >> > 192.168.4.0  *255.255.255.0   U32  enp0s8
>> >> >> > 'show route' command:
>> >> >> > 192.168.1.0/24 enp0s3
>> >> >> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
>> >> >> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
>> >> >> >
>> >> >> > Direct protocol disabled:
>> >> >> > 'route' command:
>> >> >> > Destination Gateway GenmaskFlags Metric iface
>> >> >> > 192.168.1.0  *255.255.255.0   U   0 
>> >> >> > enp0s3
>> >> >> > 192.168.2.0  *255.255.255.0   U   0 
>> >> >> > enp0s8
>> >> >> > 'show route' command:
>> >> >> > empty
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> > Fabiano
>> >> >> >
>> >> >> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov 
>> >> >> >  ha scritto:
>> >> >> >>
>> >> >> >> I think it would be easier if you showed your route tables in both 
>> >> >> >> cases.
>> >> >> >>
>> >> >> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti 
>> >> >> >>  wrote:
>> >> >> >> >
>> >> >> >> > Hello guys!
>> >> >> >> >
>> >> >> >> > Just because today we encountered again the same issue with 
>> >> >> >> > direct, I am very curious on this:
>> >> >> >> >
>> >> >> >> > I totally agree with what you guys explained about the need of 
>> >> >> >> > the direct protocol. Once we set it then reachability works and 
>> >> >> >> > all is ok.
>> >> >> >> >
>> >> >> >> > Our big question is why was it working before the moment it lost 
>> >> >> >> > the BGP session?? In other words: the set up :
>> >> >> >> >
>> >> >> >> > RS - BGP session 

Re: Direct protocol affects BGP

2020-03-25 Thread Fabiano D'Agostino
Yes, I disabled direct protocol on both routers. The full bird.conf is the
following:
log syslog all;
ipv4 table master4;
ipv6 table master6;
router1 bgp configuration:
protocol bgp {
ipv4 {
import all;
export all;
   };
   local as 1;
   neighbor 192.168.2.22 as 2;
}
protocol device {
}
protocol kernel {
ipv4 {
table master4;
import all;
export all;
};
}
protocol static {
ipv4;
}


Il giorno mer 25 mar 2020 alle ore 17:06 Alexander Zubkov 
ha scritto:

> Do you disable direct protocol on both router1 and router2?
> And that is definitely not the full bird config, you do not have a
> kernel protocol for example.
>
> On Tue, Mar 24, 2020 at 10:50 PM Fabiano D'Agostino
>  wrote:
> >
> > There is no gateway because they are directly connected. However my
> network topology is the following:
> > [pc-a - router1 ]=AS 1 ; [pc-b - router 2]=AS 2;
> > pc-a:
> > enp0s3
> > address 192.168.1.11
> > gw 192.168.1.1
> > router1:
> > enp0s3
> > address 192.168.1.1
> > enp0s8
> > 192.168.2.2
> >
> > router1 bgp configuration:
> > protocol bgp {
> > ipv4 {
> > import all;
> > export all;
> >}
> > local as 1;
> > neighbor 192.168.2.22 as 2
> >
> >
> > Il giorno mar 24 mar 2020 alle ore 22:40 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >>
> >> There is also no gateway in you "route" output on routes exported from
> >> bird. Maybe you have some filters that causing it? Could you show your
> >> config if it is not secret?
> >>
> >> On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
> >>  wrote:
> >> >
> >> > Yes, 'show route', is from Bird. I don't have route-reflector, but
> just two routers which have a bgp session. Anyway, yes when direct is
> disabled, the bgp session is established.
> >> >
> >> > Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >>
> >> >> "show route" looks a little weird, is it from bird? There are also
> >> >> commonly a protocol and metric shown.
> >> >> Those are from your route-reflector? Do you have your bgp sessions up
> >> >> when direct is disabled?
> >> >>
> >> >> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
> >> >>  wrote:
> >> >> >
> >> >> > Good evening Alexander,
> >> >> >
> >> >> > Direct protocol enabled:
> >> >> > 'route' command:
> >> >> > Destination Gateway GenmaskFlags Metric iface
> >> >> > 192.168.1.0  *255.255.255.0   U   0
>  enp0s3
> >> >> > 192.168.1.0  *255.255.255.0   U   32
>  enp0s3
> >> >> > 192.168.2.0  *255.255.255.0   U   0
>  enp0s8
> >> >> > 192.168.2.0  *255.255.255.0   U32
> enp0s8
> >> >> > 192.168.4.0  *255.255.255.0   U32
> enp0s8
> >> >> > 'show route' command:
> >> >> > 192.168.1.0/24 enp0s3
> >> >> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
> >> >> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
> >> >> >
> >> >> > Direct protocol disabled:
> >> >> > 'route' command:
> >> >> > Destination Gateway GenmaskFlags Metric iface
> >> >> > 192.168.1.0  *255.255.255.0   U   0
>  enp0s3
> >> >> > 192.168.2.0  *255.255.255.0   U   0
>  enp0s8
> >> >> > 'show route' command:
> >> >> > empty
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Fabiano
> >> >> >
> >> >> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >> >>
> >> >> >> I think it would be easier if you showed your route tables in
> both cases.
> >> >> >>
> >> >> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti <
> irene.lali...@restena.lu> wrote:
> >> >> >> >
> >> >> >> > Hello guys!
> >> >> >> >
> >> >> >> > Just because today we encountered again the same issue with
> direct, I am very curious on this:
> >> >> >> >
> >> >> >> > I totally agree with what you guys explained about the need of
> the direct protocol. Once we set it then reachability works and all is ok.
> >> >> >> >
> >> >> >> > Our big question is why was it working before the moment it
> lost the BGP session?? In other words: the set up :
> >> >> >> >
> >> >> >> > RS - BGP session with the ROUTER - and behind the Router we
> have Caches.
> >> >> >> >
> >> >> >> > Before the router was announcing to the RS(BIRD v2.0.7) the
> caches and that they are reachable by the router. Without any direct.
> >> >> >> >
> >> >> >> > Until one day we lose the bgp session, and we can ping the
> caches from the RS but not reachable . Once we set it as direct on the bird
> then all is fine.
> >> >> >> >
> >> >> >> > Question is why was it working before without direct ?? :=)
> >> >> >> >
> >> >> >> > Many thanks for your time!
> >> >> >> >
> >> >> >> > Have a great day all!
> >> >> >> >
> >> >> >> > Irene.
> >> >> >> >
> >> >> >> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
> >> >> >> >
> >> >> >> > Hi Bernd,
> >> >> >> > no, the routing "from the kernel" doesn't come 

Re: Direct protocol affects BGP

2020-03-25 Thread Alexander Zubkov
Do you disable direct protocol on both router1 and router2?
And that is definitely not the full bird config, you do not have a
kernel protocol for example.

On Tue, Mar 24, 2020 at 10:50 PM Fabiano D'Agostino
 wrote:
>
> There is no gateway because they are directly connected. However my network 
> topology is the following:
> [pc-a - router1 ]=AS 1 ; [pc-b - router 2]=AS 2;
> pc-a:
> enp0s3
> address 192.168.1.11
> gw 192.168.1.1
> router1:
> enp0s3
> address 192.168.1.1
> enp0s8
> 192.168.2.2
>
> router1 bgp configuration:
> protocol bgp {
> ipv4 {
> import all;
> export all;
>}
> local as 1;
> neighbor 192.168.2.22 as 2
>
>
> Il giorno mar 24 mar 2020 alle ore 22:40 Alexander Zubkov  
> ha scritto:
>>
>> There is also no gateway in you "route" output on routes exported from
>> bird. Maybe you have some filters that causing it? Could you show your
>> config if it is not secret?
>>
>> On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
>>  wrote:
>> >
>> > Yes, 'show route', is from Bird. I don't have route-reflector, but just 
>> > two routers which have a bgp session. Anyway, yes when direct is disabled, 
>> > the bgp session is established.
>> >
>> > Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov 
>> >  ha scritto:
>> >>
>> >> "show route" looks a little weird, is it from bird? There are also
>> >> commonly a protocol and metric shown.
>> >> Those are from your route-reflector? Do you have your bgp sessions up
>> >> when direct is disabled?
>> >>
>> >> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
>> >>  wrote:
>> >> >
>> >> > Good evening Alexander,
>> >> >
>> >> > Direct protocol enabled:
>> >> > 'route' command:
>> >> > Destination Gateway GenmaskFlags Metric iface
>> >> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
>> >> > 192.168.1.0  *255.255.255.0   U   32   enp0s3
>> >> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
>> >> > 192.168.2.0  *255.255.255.0   U32  enp0s8
>> >> > 192.168.4.0  *255.255.255.0   U32  enp0s8
>> >> > 'show route' command:
>> >> > 192.168.1.0/24 enp0s3
>> >> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
>> >> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
>> >> >
>> >> > Direct protocol disabled:
>> >> > 'route' command:
>> >> > Destination Gateway GenmaskFlags Metric iface
>> >> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
>> >> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
>> >> > 'show route' command:
>> >> > empty
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Fabiano
>> >> >
>> >> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov 
>> >> >  ha scritto:
>> >> >>
>> >> >> I think it would be easier if you showed your route tables in both 
>> >> >> cases.
>> >> >>
>> >> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti 
>> >> >>  wrote:
>> >> >> >
>> >> >> > Hello guys!
>> >> >> >
>> >> >> > Just because today we encountered again the same issue with direct, 
>> >> >> > I am very curious on this:
>> >> >> >
>> >> >> > I totally agree with what you guys explained about the need of the 
>> >> >> > direct protocol. Once we set it then reachability works and all is 
>> >> >> > ok.
>> >> >> >
>> >> >> > Our big question is why was it working before the moment it lost the 
>> >> >> > BGP session?? In other words: the set up :
>> >> >> >
>> >> >> > RS - BGP session with the ROUTER - and behind the Router we have 
>> >> >> > Caches.
>> >> >> >
>> >> >> > Before the router was announcing to the RS(BIRD v2.0.7) the caches 
>> >> >> > and that they are reachable by the router. Without any direct.
>> >> >> >
>> >> >> > Until one day we lose the bgp session, and we can ping the caches 
>> >> >> > from the RS but not reachable . Once we set it as direct on the bird 
>> >> >> > then all is fine.
>> >> >> >
>> >> >> > Question is why was it working before without direct ?? :=)
>> >> >> >
>> >> >> > Many thanks for your time!
>> >> >> >
>> >> >> > Have a great day all!
>> >> >> >
>> >> >> > Irene.
>> >> >> >
>> >> >> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
>> >> >> >
>> >> >> > Hi Bernd,
>> >> >> > no, the routing "from the kernel" doesn't come via 'learn yes', but 
>> >> >> > via RIB, I mean if I do 'route' it shows the directly connected 
>> >> >> > networks. The problem is that if I use the Direct protocol, the 
>> >> >> > command 'route' shows me two same directly connected networks, one 
>> >> >> > coming from RIB and the other one coming from Bird.
>> >> >> > I tried protocol bgp { direct; }, but it doesn't change.
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> > Fabiano
>> >> >> >
>> >> >> > Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann 
>> >> >> >  ha scritto:
>> >> >> >>
>> >> >> >> On 23.03.20 16:01, Fabiano D'Agostino wrote:
>> >> >> >> > Hi Benedikt,
>> >> >> >> > I am just learning Bird and I 

Re: Direct protocol affects BGP

2020-03-24 Thread Fabiano D'Agostino
There is no gateway because they are directly connected. However my network
topology is the following:
[pc-a - router1 ]=AS 1 ; [pc-b - router 2]=AS 2;
pc-a:
enp0s3
address 192.168.1.11
gw 192.168.1.1
router1:
enp0s3
address 192.168.1.1
enp0s8
192.168.2.2

router1 bgp configuration:
protocol bgp {
ipv4 {
import all;
export all;
   }
local as 1;
neighbor 192.168.2.22 as 2


Il giorno mar 24 mar 2020 alle ore 22:40 Alexander Zubkov 
ha scritto:

> There is also no gateway in you "route" output on routes exported from
> bird. Maybe you have some filters that causing it? Could you show your
> config if it is not secret?
>
> On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
>  wrote:
> >
> > Yes, 'show route', is from Bird. I don't have route-reflector, but just
> two routers which have a bgp session. Anyway, yes when direct is disabled,
> the bgp session is established.
> >
> > Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >>
> >> "show route" looks a little weird, is it from bird? There are also
> >> commonly a protocol and metric shown.
> >> Those are from your route-reflector? Do you have your bgp sessions up
> >> when direct is disabled?
> >>
> >> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
> >>  wrote:
> >> >
> >> > Good evening Alexander,
> >> >
> >> > Direct protocol enabled:
> >> > 'route' command:
> >> > Destination Gateway GenmaskFlags Metric iface
> >> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
> >> > 192.168.1.0  *255.255.255.0   U   32   enp0s3
> >> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
> >> > 192.168.2.0  *255.255.255.0   U32  enp0s8
> >> > 192.168.4.0  *255.255.255.0   U32  enp0s8
> >> > 'show route' command:
> >> > 192.168.1.0/24 enp0s3
> >> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
> >> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
> >> >
> >> > Direct protocol disabled:
> >> > 'route' command:
> >> > Destination Gateway GenmaskFlags Metric iface
> >> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
> >> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
> >> > 'show route' command:
> >> > empty
> >> >
> >> > Thanks,
> >> >
> >> > Fabiano
> >> >
> >> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >>
> >> >> I think it would be easier if you showed your route tables in both
> cases.
> >> >>
> >> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti <
> irene.lali...@restena.lu> wrote:
> >> >> >
> >> >> > Hello guys!
> >> >> >
> >> >> > Just because today we encountered again the same issue with
> direct, I am very curious on this:
> >> >> >
> >> >> > I totally agree with what you guys explained about the need of the
> direct protocol. Once we set it then reachability works and all is ok.
> >> >> >
> >> >> > Our big question is why was it working before the moment it lost
> the BGP session?? In other words: the set up :
> >> >> >
> >> >> > RS - BGP session with the ROUTER - and behind the Router we have
> Caches.
> >> >> >
> >> >> > Before the router was announcing to the RS(BIRD v2.0.7) the caches
> and that they are reachable by the router. Without any direct.
> >> >> >
> >> >> > Until one day we lose the bgp session, and we can ping the caches
> from the RS but not reachable . Once we set it as direct on the bird then
> all is fine.
> >> >> >
> >> >> > Question is why was it working before without direct ?? :=)
> >> >> >
> >> >> > Many thanks for your time!
> >> >> >
> >> >> > Have a great day all!
> >> >> >
> >> >> > Irene.
> >> >> >
> >> >> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
> >> >> >
> >> >> > Hi Bernd,
> >> >> > no, the routing "from the kernel" doesn't come via 'learn yes',
> but via RIB, I mean if I do 'route' it shows the directly connected
> networks. The problem is that if I use the Direct protocol, the command
> 'route' shows me two same directly connected networks, one coming from RIB
> and the other one coming from Bird.
> >> >> > I tried protocol bgp { direct; }, but it doesn't change.
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Fabiano
> >> >> >
> >> >> > Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann <
> b...@spreadshirt.net> ha scritto:
> >> >> >>
> >> >> >> On 23.03.20 16:01, Fabiano D'Agostino wrote:
> >> >> >> > Hi Benedikt,
> >> >> >> > I am just learning Bird and I didn't want to use the Direct
> protocol
> >> >> >> > because using it I have two same routes in the RIB for the
> directly
> >> >> >> > connected networks, one coming from the kernel and the second
> one coming
> >> >> >> > from the direct protocol.
> >> >> >>
> >> >> >>
> >> >> >> Is the routing "from the kernel" coming via `learn yes;`? If you
> have no
> >> >> >> need to import "alien" routes, you can disable `learn` and just
> use
> 

Re: Direct protocol affects BGP

2020-03-24 Thread Alexander Zubkov
There is also no gateway in you "route" output on routes exported from
bird. Maybe you have some filters that causing it? Could you show your
config if it is not secret?

On Tue, Mar 24, 2020 at 9:53 PM Fabiano D'Agostino
 wrote:
>
> Yes, 'show route', is from Bird. I don't have route-reflector, but just two 
> routers which have a bgp session. Anyway, yes when direct is disabled, the 
> bgp session is established.
>
> Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov  
> ha scritto:
>>
>> "show route" looks a little weird, is it from bird? There are also
>> commonly a protocol and metric shown.
>> Those are from your route-reflector? Do you have your bgp sessions up
>> when direct is disabled?
>>
>> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
>>  wrote:
>> >
>> > Good evening Alexander,
>> >
>> > Direct protocol enabled:
>> > 'route' command:
>> > Destination Gateway GenmaskFlags Metric iface
>> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
>> > 192.168.1.0  *255.255.255.0   U   32   enp0s3
>> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
>> > 192.168.2.0  *255.255.255.0   U32  enp0s8
>> > 192.168.4.0  *255.255.255.0   U32  enp0s8
>> > 'show route' command:
>> > 192.168.1.0/24 enp0s3
>> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
>> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
>> >
>> > Direct protocol disabled:
>> > 'route' command:
>> > Destination Gateway GenmaskFlags Metric iface
>> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
>> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
>> > 'show route' command:
>> > empty
>> >
>> > Thanks,
>> >
>> > Fabiano
>> >
>> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov 
>> >  ha scritto:
>> >>
>> >> I think it would be easier if you showed your route tables in both cases.
>> >>
>> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti  
>> >> wrote:
>> >> >
>> >> > Hello guys!
>> >> >
>> >> > Just because today we encountered again the same issue with direct, I 
>> >> > am very curious on this:
>> >> >
>> >> > I totally agree with what you guys explained about the need of the 
>> >> > direct protocol. Once we set it then reachability works and all is ok.
>> >> >
>> >> > Our big question is why was it working before the moment it lost the 
>> >> > BGP session?? In other words: the set up :
>> >> >
>> >> > RS - BGP session with the ROUTER - and behind the Router we have Caches.
>> >> >
>> >> > Before the router was announcing to the RS(BIRD v2.0.7) the caches and 
>> >> > that they are reachable by the router. Without any direct.
>> >> >
>> >> > Until one day we lose the bgp session, and we can ping the caches from 
>> >> > the RS but not reachable . Once we set it as direct on the bird then 
>> >> > all is fine.
>> >> >
>> >> > Question is why was it working before without direct ?? :=)
>> >> >
>> >> > Many thanks for your time!
>> >> >
>> >> > Have a great day all!
>> >> >
>> >> > Irene.
>> >> >
>> >> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
>> >> >
>> >> > Hi Bernd,
>> >> > no, the routing "from the kernel" doesn't come via 'learn yes', but via 
>> >> > RIB, I mean if I do 'route' it shows the directly connected networks. 
>> >> > The problem is that if I use the Direct protocol, the command 'route' 
>> >> > shows me two same directly connected networks, one coming from RIB and 
>> >> > the other one coming from Bird.
>> >> > I tried protocol bgp { direct; }, but it doesn't change.
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Fabiano
>> >> >
>> >> > Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann 
>> >> >  ha scritto:
>> >> >>
>> >> >> On 23.03.20 16:01, Fabiano D'Agostino wrote:
>> >> >> > Hi Benedikt,
>> >> >> > I am just learning Bird and I didn't want to use the Direct protocol
>> >> >> > because using it I have two same routes in the RIB for the directly
>> >> >> > connected networks, one coming from the kernel and the second one 
>> >> >> > coming
>> >> >> > from the direct protocol.
>> >> >>
>> >> >>
>> >> >> Is the routing "from the kernel" coming via `learn yes;`? If you have 
>> >> >> no
>> >> >> need to import "alien" routes, you can disable `learn` and just use
>> >> >> `direct` and `static` protocol. /* OR if you know that your neighbor is
>> >> >> directly connected to you can also set 'direct' on the `protocol bgp`. 
>> >> >> */
>> >> >>
>> >> >> Bernd
>> >> >>
>> >> >>
>> >> >
>> >> > --
>> >> > Irene Lalioti
>> >> > Network Engineer
>> >> > Fondation RESTENA
>> >> > 2, avenue de l'Université
>> >> > L-4365 Esch/Alzette
>> >> >
>> >> > Tel: +352 424409 1
>> >> > Fax: +352 422473



Re: Direct protocol affects BGP

2020-03-24 Thread Fabiano D'Agostino
Yes, 'show route', is from Bird. I don't have route-reflector, but just two
routers which have a bgp session. Anyway, yes when direct is disabled, the
bgp session is established.

Il giorno mar 24 mar 2020 alle ore 21:45 Alexander Zubkov 
ha scritto:

> "show route" looks a little weird, is it from bird? There are also
> commonly a protocol and metric shown.
> Those are from your route-reflector? Do you have your bgp sessions up
> when direct is disabled?
>
> On Tue, Mar 24, 2020 at 9:33 PM Fabiano D'Agostino
>  wrote:
> >
> > Good evening Alexander,
> >
> > Direct protocol enabled:
> > 'route' command:
> > Destination Gateway GenmaskFlags Metric iface
> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
> > 192.168.1.0  *255.255.255.0   U   32   enp0s3
> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
> > 192.168.2.0  *255.255.255.0   U32  enp0s8
> > 192.168.4.0  *255.255.255.0   U32  enp0s8
> > 'show route' command:
> > 192.168.1.0/24 enp0s3
> > 192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
> > 192.168.4.0/24 via 192.168.2.22 on enp0s8
> >
> > Direct protocol disabled:
> > 'route' command:
> > Destination Gateway GenmaskFlags Metric iface
> > 192.168.1.0  *255.255.255.0   U   0 enp0s3
> > 192.168.2.0  *255.255.255.0   U   0 enp0s8
> > 'show route' command:
> > empty
> >
> > Thanks,
> >
> > Fabiano
> >
> > Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >>
> >> I think it would be easier if you showed your route tables in both
> cases.
> >>
> >> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti 
> wrote:
> >> >
> >> > Hello guys!
> >> >
> >> > Just because today we encountered again the same issue with direct, I
> am very curious on this:
> >> >
> >> > I totally agree with what you guys explained about the need of the
> direct protocol. Once we set it then reachability works and all is ok.
> >> >
> >> > Our big question is why was it working before the moment it lost the
> BGP session?? In other words: the set up :
> >> >
> >> > RS - BGP session with the ROUTER - and behind the Router we have
> Caches.
> >> >
> >> > Before the router was announcing to the RS(BIRD v2.0.7) the caches
> and that they are reachable by the router. Without any direct.
> >> >
> >> > Until one day we lose the bgp session, and we can ping the caches
> from the RS but not reachable . Once we set it as direct on the bird then
> all is fine.
> >> >
> >> > Question is why was it working before without direct ?? :=)
> >> >
> >> > Many thanks for your time!
> >> >
> >> > Have a great day all!
> >> >
> >> > Irene.
> >> >
> >> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
> >> >
> >> > Hi Bernd,
> >> > no, the routing "from the kernel" doesn't come via 'learn yes', but
> via RIB, I mean if I do 'route' it shows the directly connected networks.
> The problem is that if I use the Direct protocol, the command 'route' shows
> me two same directly connected networks, one coming from RIB and the other
> one coming from Bird.
> >> > I tried protocol bgp { direct; }, but it doesn't change.
> >> >
> >> > Thanks,
> >> >
> >> > Fabiano
> >> >
> >> > Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann <
> b...@spreadshirt.net> ha scritto:
> >> >>
> >> >> On 23.03.20 16:01, Fabiano D'Agostino wrote:
> >> >> > Hi Benedikt,
> >> >> > I am just learning Bird and I didn't want to use the Direct
> protocol
> >> >> > because using it I have two same routes in the RIB for the directly
> >> >> > connected networks, one coming from the kernel and the second one
> coming
> >> >> > from the direct protocol.
> >> >>
> >> >>
> >> >> Is the routing "from the kernel" coming via `learn yes;`? If you
> have no
> >> >> need to import "alien" routes, you can disable `learn` and just use
> >> >> `direct` and `static` protocol. /* OR if you know that your neighbor
> is
> >> >> directly connected to you can also set 'direct' on the `protocol
> bgp`. */
> >> >>
> >> >> Bernd
> >> >>
> >> >>
> >> >
> >> > --
> >> > Irene Lalioti
> >> > Network Engineer
> >> > Fondation RESTENA
> >> > 2, avenue de l'Université
> >> > L-4365 Esch/Alzette
> >> >
> >> > Tel: +352 424409 1
> >> > Fax: +352 422473
>


Re: Direct protocol affects BGP

2020-03-24 Thread Fabiano D'Agostino
Good evening Alexander,

Direct protocol enabled:
'route' command:
Destination Gateway GenmaskFlags Metric iface
192.168.1.0  *255.255.255.0   U   0 enp0s3
192.168.1.0  *255.255.255.0   U   32   enp0s3
192.168.2.0  *255.255.255.0   U   0 enp0s8
192.168.2.0  *255.255.255.0   U32  enp0s8
192.168.4.0  *255.255.255.0   U32  enp0s8
'show route' command:
192.168.1.0/24 enp0s3
192.168.2.0/24  enp0s8 via 192.168.2.22 on enp0s8
192.168.4.0/24 via 192.168.2.22 on enp0s8

Direct protocol disabled:
'route' command:
Destination Gateway GenmaskFlags Metric iface
192.168.1.0  *255.255.255.0   U   0 enp0s3
192.168.2.0  *255.255.255.0   U   0 enp0s8
'show route' command:
empty

Thanks,

Fabiano

Il giorno mar 24 mar 2020 alle ore 21:00 Alexander Zubkov 
ha scritto:

> I think it would be easier if you showed your route tables in both cases.
>
> On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti 
> wrote:
> >
> > Hello guys!
> >
> > Just because today we encountered again the same issue with direct, I am
> very curious on this:
> >
> > I totally agree with what you guys explained about the need of the
> direct protocol. Once we set it then reachability works and all is ok.
> >
> > Our big question is why was it working before the moment it lost the BGP
> session?? In other words: the set up :
> >
> > RS - BGP session with the ROUTER - and behind the Router we have Caches.
> >
> > Before the router was announcing to the RS(BIRD v2.0.7) the caches and
> that they are reachable by the router. Without any direct.
> >
> > Until one day we lose the bgp session, and we can ping the caches from
> the RS but not reachable . Once we set it as direct on the bird then all is
> fine.
> >
> > Question is why was it working before without direct ?? :=)
> >
> > Many thanks for your time!
> >
> > Have a great day all!
> >
> > Irene.
> >
> > On 23/03/2020 17:07, Fabiano D'Agostino wrote:
> >
> > Hi Bernd,
> > no, the routing "from the kernel" doesn't come via 'learn yes', but via
> RIB, I mean if I do 'route' it shows the directly connected networks. The
> problem is that if I use the Direct protocol, the command 'route' shows me
> two same directly connected networks, one coming from RIB and the other one
> coming from Bird.
> > I tried protocol bgp { direct; }, but it doesn't change.
> >
> > Thanks,
> >
> > Fabiano
> >
> > Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann <
> b...@spreadshirt.net> ha scritto:
> >>
> >> On 23.03.20 16:01, Fabiano D'Agostino wrote:
> >> > Hi Benedikt,
> >> > I am just learning Bird and I didn't want to use the Direct protocol
> >> > because using it I have two same routes in the RIB for the directly
> >> > connected networks, one coming from the kernel and the second one
> coming
> >> > from the direct protocol.
> >>
> >>
> >> Is the routing "from the kernel" coming via `learn yes;`? If you have no
> >> need to import "alien" routes, you can disable `learn` and just use
> >> `direct` and `static` protocol. /* OR if you know that your neighbor is
> >> directly connected to you can also set 'direct' on the `protocol bgp`.
> */
> >>
> >> Bernd
> >>
> >>
> >
> > --
> > Irene Lalioti
> > Network Engineer
> > Fondation RESTENA
> > 2, avenue de l'Université
> > L-4365 Esch/Alzette
> >
> > Tel: +352 424409 1
> > Fax: +352 422473
>


Re: Direct protocol affects BGP

2020-03-24 Thread Alexander Zubkov
I think it would be easier if you showed your route tables in both cases.

On Tue, Mar 24, 2020 at 8:57 AM Irene Lalioti  wrote:
>
> Hello guys!
>
> Just because today we encountered again the same issue with direct, I am very 
> curious on this:
>
> I totally agree with what you guys explained about the need of the direct 
> protocol. Once we set it then reachability works and all is ok.
>
> Our big question is why was it working before the moment it lost the BGP 
> session?? In other words: the set up :
>
> RS - BGP session with the ROUTER - and behind the Router we have Caches.
>
> Before the router was announcing to the RS(BIRD v2.0.7) the caches and that 
> they are reachable by the router. Without any direct.
>
> Until one day we lose the bgp session, and we can ping the caches from the RS 
> but not reachable . Once we set it as direct on the bird then all is fine.
>
> Question is why was it working before without direct ?? :=)
>
> Many thanks for your time!
>
> Have a great day all!
>
> Irene.
>
> On 23/03/2020 17:07, Fabiano D'Agostino wrote:
>
> Hi Bernd,
> no, the routing "from the kernel" doesn't come via 'learn yes', but via RIB, 
> I mean if I do 'route' it shows the directly connected networks. The problem 
> is that if I use the Direct protocol, the command 'route' shows me two same 
> directly connected networks, one coming from RIB and the other one coming 
> from Bird.
> I tried protocol bgp { direct; }, but it doesn't change.
>
> Thanks,
>
> Fabiano
>
> Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann  
> ha scritto:
>>
>> On 23.03.20 16:01, Fabiano D'Agostino wrote:
>> > Hi Benedikt,
>> > I am just learning Bird and I didn't want to use the Direct protocol
>> > because using it I have two same routes in the RIB for the directly
>> > connected networks, one coming from the kernel and the second one coming
>> > from the direct protocol.
>>
>>
>> Is the routing "from the kernel" coming via `learn yes;`? If you have no
>> need to import "alien" routes, you can disable `learn` and just use
>> `direct` and `static` protocol. /* OR if you know that your neighbor is
>> directly connected to you can also set 'direct' on the `protocol bgp`. */
>>
>> Bernd
>>
>>
>
> --
> Irene Lalioti
> Network Engineer
> Fondation RESTENA
> 2, avenue de l'Université
> L-4365 Esch/Alzette
>
> Tel: +352 424409 1
> Fax: +352 422473



Re: Direct protocol affects BGP

2020-03-23 Thread Fabiano D'Agostino
Hi Bernd,
no, the routing "from the kernel" doesn't come via 'learn yes', but via
RIB, I mean if I do 'route' it shows the directly connected networks. The
problem is that if I use the Direct protocol, the command 'route' shows me
two same directly connected networks, one coming from RIB and the other one
coming from Bird.
I tried protocol bgp { direct; }, but it doesn't change.

Thanks,

Fabiano

Il giorno lun 23 mar 2020 alle ore 16:15 Bernd Naumann 
ha scritto:

> On 23.03.20 16:01, Fabiano D'Agostino wrote:
> > Hi Benedikt,
> > I am just learning Bird and I didn't want to use the Direct protocol
> > because using it I have two same routes in the RIB for the directly
> > connected networks, one coming from the kernel and the second one coming
> > from the direct protocol.
>
>
> Is the routing "from the kernel" coming via `learn yes;`? If you have no
> need to import "alien" routes, you can disable `learn` and just use
> `direct` and `static` protocol. /* OR if you know that your neighbor is
> directly connected to you can also set 'direct' on the `protocol bgp`. */
>
> Bernd
>
>
>


Re: Direct protocol affects BGP

2020-03-23 Thread Fabiano D'Agostino
Hi Benedikt,
I am just learning Bird and I didn't want to use the Direct protocol
because using it I have two same routes in the RIB for the directly
connected networks, one coming from the kernel and the second one coming
from the direct protocol.

Il giorno lun 23 mar 2020 alle ore 16:01 Fabiano D'Agostino <
fabiano.dagostin...@gmail.com> ha scritto:

> Hi Benedikt,
> I am just learning Bird and I didn't want to use the Direct protocol
> because using it I have two same routes in the RIB for the directly
> connected networks, one coming from the kernel and the second one coming
> from the direct protocol.
>
> Il giorno lun 23 mar 2020 alle ore 15:38 Benedikt Neuffer <
> benedikt.neuf...@kit.edu> ha scritto:
>
>> Hi Fabiano,
>>
>> that should be the reason. The TCP connection is done via RIB (kernel
>> routing table). In FIB (birds internal table) the route is currently
>> missing.
>> If you enable the direct protocol a route for  192.168.2.22 will be
>> appear in the FIB and the nexthop resolution will work.
>>
>> Is there a reason why you don't want to use the direct protocol?
>>
>> Regards,
>> Benedikt
>>
>> On 23.03.20 14:46, Fabiano D'Agostino wrote:
>> > Hi,
>> > thanks for helping,
>> > I did show route for 192.168.2.22 (which is my neighbor) table all all
>> > --> I get Network not found.
>> > show protocols: bgp established
>> > show protocol all bgp1: 0 imported, 0 exported
>> >
>> >
>> > Il giorno lun 23 mar 2020 alle ore 14:18 Benedikt Neuffer
>> > mailto:benedikt.neuf...@kit.edu>> ha
>> scritto:
>> >
>> > Hi Fabio,
>> >
>> > so the routes are in FIB (kernel) but maybe not in RIB (bird).bb
>> >
>> > Can you provide me the output of "show route for  table all
>> all"
>> > where  should be the prefix configured on the connection or
>> the
>> > ip address of the neighbor.
>> >
>> > Regards,
>> > Bene
>> >
>> > On 23.03.20 12:43, Fabiano D'Agostino wrote:
>> > > Hi Benedikt,
>> > > the nexthop is resolvable, indeed router1 can ping router2'nic in
>> the
>> > > same network of router1, with direct protocol disabled. The
>> > scenario is:
>> > > PCa - R1 - R2 - PCb
>> > > With direct protocol enabled and bgp working: PCa can ping PCb
>> > > With direct protocol disabled and bgp working: PCa can't ping PCb
>> > >
>> > >
>> > > Il giorno lun 23 mar 2020 alle ore 12:26 Benedikt Neuffer
>> > > mailto:benedikt.neuf...@kit.edu>
>> > > >>>
>> > ha scritto:
>> > >
>> > > Hi Fabio,
>> > >
>> > > the BGP nexthop field must be resolvable. In other words there
>> > must be a
>> > > route to the neighbor in RIB.
>> > >
>> > > Regards,
>> > > Bene
>> > >
>> > >
>> > > On 23.03.20 12:05, Fabiano D'Agostino wrote:
>> > > > Hi all,
>> > > > why if I disable the direct protocol the BGP routes are not
>> > > > imported/exported? If I run show route, it is empty, while
>> > if I enable
>> > > > the direct protocol show route has directly connected
>> routes and
>> > > BGP routes.
>> > > > My configuration is very easy, two routers make a eBGP
>> > peering and
>> > > they
>> > > > import and export all routes. I am using Bird 2.0.7.
>> > > >
>> > > > Thanks,
>> > > >
>> > > > Fabiano
>> > >
>> > >
>> > > --
>> > > Karlsruher Institut für Technologie (KIT)
>> > > Steinbuch Centre for Computing (SCC)
>> > >
>> > > Benedikt Neuffer
>> > > Netze und Telekommunikation (NET)
>> > >
>> > > Hermann-von-Helmholtz-Platz 1
>> > > Gebäude 442
>> > > Raum 185
>> > > 76344 Eggenstein-Leopoldshafen
>> > >
>> > > Telefon: +49 721 608-24502
>> > > Fax: +49 721 608-47763
>> > > E-Mail: benedikt.neuf...@kit.edu
>> >  > > >
>> > > Web: https://www.scc.kit.edu
>> > >
>> > >
>> > >
>> > > Sitz der Körperschaft:
>> > > Kaiserstraße 12, 76131 Karlsruhe
>> > >
>> > >
>> > >
>> > > KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
>> > >
>> > >
>> > >
>> > > Signaturversion: 19.1.0 beta
>> > >
>> >
>> >
>> > --
>> > Karlsruher Institut für Technologie (KIT)
>> > Steinbuch Centre for Computing (SCC)
>> >
>> > Benedikt Neuffer
>> > Netze und Telekommunikation (NET)
>> >
>> > Hermann-von-Helmholtz-Platz 1
>> > Gebäude 442
>> > Raum 185
>> > 76344 Eggenstein-Leopoldshafen
>> >
>> > Telefon: +49 721 608-24502
>> > Fax: +49 721 608-47763
>> > E-Mail: benedikt.neuf...@kit.edu 
>> > Web: https://www.scc.kit.edu
>> >
>> >
>> >
>> > 

Re: Direct protocol affects BGP

2020-03-23 Thread Benedikt Neuffer
Hi Fabiano,

that should be the reason. The TCP connection is done via RIB (kernel
routing table). In FIB (birds internal table) the route is currently
missing.
If you enable the direct protocol a route for  192.168.2.22 will be
appear in the FIB and the nexthop resolution will work.

Is there a reason why you don't want to use the direct protocol?

Regards,
Benedikt

On 23.03.20 14:46, Fabiano D'Agostino wrote:
> Hi,
> thanks for helping, 
> I did show route for 192.168.2.22 (which is my neighbor) table all all
> --> I get Network not found.
> show protocols: bgp established
> show protocol all bgp1: 0 imported, 0 exported
> 
> 
> Il giorno lun 23 mar 2020 alle ore 14:18 Benedikt Neuffer
> mailto:benedikt.neuf...@kit.edu>> ha scritto:
> 
> Hi Fabio,
> 
> so the routes are in FIB (kernel) but maybe not in RIB (bird).bb
> 
> Can you provide me the output of "show route for  table all all"
> where  should be the prefix configured on the connection or the
> ip address of the neighbor.
> 
> Regards,
> Bene
> 
> On 23.03.20 12:43, Fabiano D'Agostino wrote:
> > Hi Benedikt,
> > the nexthop is resolvable, indeed router1 can ping router2'nic in the
> > same network of router1, with direct protocol disabled. The
> scenario is: 
> > PCa - R1 - R2 - PCb
> > With direct protocol enabled and bgp working: PCa can ping PCb
> > With direct protocol disabled and bgp working: PCa can't ping PCb
> >
> >
> > Il giorno lun 23 mar 2020 alle ore 12:26 Benedikt Neuffer
> > mailto:benedikt.neuf...@kit.edu>
> >>
> ha scritto:
> >
> >     Hi Fabio,
> >
> >     the BGP nexthop field must be resolvable. In other words there
> must be a
> >     route to the neighbor in RIB.
> >
> >     Regards,
> >     Bene
> >
> >
> >     On 23.03.20 12:05, Fabiano D'Agostino wrote:
> >     > Hi all,
> >     > why if I disable the direct protocol the BGP routes are not
> >     > imported/exported? If I run show route, it is empty, while
> if I enable
> >     > the direct protocol show route has directly connected routes and
> >     BGP routes.
> >     > My configuration is very easy, two routers make a eBGP
> peering and
> >     they
> >     > import and export all routes. I am using Bird 2.0.7.
> >     >
> >     > Thanks,
> >     >
> >     > Fabiano
> >
> >
> >     --
> >     Karlsruher Institut für Technologie (KIT)
> >     Steinbuch Centre for Computing (SCC)
> >
> >     Benedikt Neuffer
> >     Netze und Telekommunikation (NET)
> >
> >     Hermann-von-Helmholtz-Platz 1
> >     Gebäude 442
> >     Raum 185
> >     76344 Eggenstein-Leopoldshafen
> >
> >     Telefon: +49 721 608-24502
> >     Fax: +49 721 608-47763
> >     E-Mail: benedikt.neuf...@kit.edu
>   >
> >     Web: https://www.scc.kit.edu
> >
> >
> >
> >     Sitz der Körperschaft:
> >     Kaiserstraße 12, 76131 Karlsruhe
> >
> >
> >
> >     KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
> >
> >
> >
> >     Signaturversion: 19.1.0 beta
> >
> 
> 
> -- 
> Karlsruher Institut für Technologie (KIT)
> Steinbuch Centre for Computing (SCC)
> 
> Benedikt Neuffer
> Netze und Telekommunikation (NET)
> 
> Hermann-von-Helmholtz-Platz 1
> Gebäude 442
> Raum 185
> 76344 Eggenstein-Leopoldshafen
> 
> Telefon: +49 721 608-24502
> Fax: +49 721 608-47763
> E-Mail: benedikt.neuf...@kit.edu 
> Web: https://www.scc.kit.edu
> 
> 
> 
> Sitz der Körperschaft:
> Kaiserstraße 12, 76131 Karlsruhe
> 
> 
> 
> KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
> 
> 
> 
> Signaturversion: 19.1.0 beta
> 


-- 
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Benedikt Neuffer
Netze und Telekommunikation (NET)

Hermann-von-Helmholtz-Platz 1
Gebäude 442
Raum 185
76344 Eggenstein-Leopoldshafen

Telefon: +49 721 608-24502
Fax: +49 721 608-47763
E-Mail: benedikt.neuf...@kit.edu
Web: https://www.scc.kit.edu



Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe



KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft



Signaturversion: 19.1.0 beta



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Direct protocol affects BGP

2020-03-23 Thread Fabiano D'Agostino
Hi,
thanks for helping,
I did show route for 192.168.2.22 (which is my neighbor) table all all -->
I get Network not found.
show protocols: bgp established
show protocol all bgp1: 0 imported, 0 exported


Il giorno lun 23 mar 2020 alle ore 14:18 Benedikt Neuffer <
benedikt.neuf...@kit.edu> ha scritto:

> Hi Fabio,
>
> so the routes are in FIB (kernel) but maybe not in RIB (bird).
>
> Can you provide me the output of "show route for  table all all"
> where  should be the prefix configured on the connection or the
> ip address of the neighbor.
>
> Regards,
> Bene
>
> On 23.03.20 12:43, Fabiano D'Agostino wrote:
> > Hi Benedikt,
> > the nexthop is resolvable, indeed router1 can ping router2'nic in the
> > same network of router1, with direct protocol disabled. The scenario is:
> > PCa - R1 - R2 - PCb
> > With direct protocol enabled and bgp working: PCa can ping PCb
> > With direct protocol disabled and bgp working: PCa can't ping PCb
> >
> >
> > Il giorno lun 23 mar 2020 alle ore 12:26 Benedikt Neuffer
> > mailto:benedikt.neuf...@kit.edu>> ha scritto:
> >
> > Hi Fabio,
> >
> > the BGP nexthop field must be resolvable. In other words there must
> be a
> > route to the neighbor in RIB.
> >
> > Regards,
> > Bene
> >
> >
> > On 23.03.20 12:05, Fabiano D'Agostino wrote:
> > > Hi all,
> > > why if I disable the direct protocol the BGP routes are not
> > > imported/exported? If I run show route, it is empty, while if I
> enable
> > > the direct protocol show route has directly connected routes and
> > BGP routes.
> > > My configuration is very easy, two routers make a eBGP peering and
> > they
> > > import and export all routes. I am using Bird 2.0.7.
> > >
> > > Thanks,
> > >
> > > Fabiano
> >
> >
> > --
> > Karlsruher Institut für Technologie (KIT)
> > Steinbuch Centre for Computing (SCC)
> >
> > Benedikt Neuffer
> > Netze und Telekommunikation (NET)
> >
> > Hermann-von-Helmholtz-Platz 1
> > Gebäude 442
> > Raum 185
> > 76344 Eggenstein-Leopoldshafen
> >
> > Telefon: +49 721 608-24502
> > Fax: +49 721 608-47763
> > E-Mail: benedikt.neuf...@kit.edu 
> > Web: https://www.scc.kit.edu
> >
> >
> >
> > Sitz der Körperschaft:
> > Kaiserstraße 12, 76131 Karlsruhe
> >
> >
> >
> > KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
> >
> >
> >
> > Signaturversion: 19.1.0 beta
> >
>
>
> --
> Karlsruher Institut für Technologie (KIT)
> Steinbuch Centre for Computing (SCC)
>
> Benedikt Neuffer
> Netze und Telekommunikation (NET)
>
> Hermann-von-Helmholtz-Platz 1
> Gebäude 442
> Raum 185
> 76344 Eggenstein-Leopoldshafen
>
> Telefon: +49 721 608-24502
> Fax: +49 721 608-47763
> E-Mail: benedikt.neuf...@kit.edu
> Web: https://www.scc.kit.edu
>
>
>
> Sitz der Körperschaft:
> Kaiserstraße 12, 76131 Karlsruhe
>
>
>
> KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
>
>
>
> Signaturversion: 19.1.0 beta
>
>


Re: Direct protocol affects BGP

2020-03-23 Thread Benedikt Neuffer
Hi Fabio,

so the routes are in FIB (kernel) but maybe not in RIB (bird).

Can you provide me the output of "show route for  table all all"
where  should be the prefix configured on the connection or the
ip address of the neighbor.

Regards,
Bene

On 23.03.20 12:43, Fabiano D'Agostino wrote:
> Hi Benedikt,
> the nexthop is resolvable, indeed router1 can ping router2'nic in the
> same network of router1, with direct protocol disabled. The scenario is: 
> PCa - R1 - R2 - PCb
> With direct protocol enabled and bgp working: PCa can ping PCb
> With direct protocol disabled and bgp working: PCa can't ping PCb
> 
> 
> Il giorno lun 23 mar 2020 alle ore 12:26 Benedikt Neuffer
> mailto:benedikt.neuf...@kit.edu>> ha scritto:
> 
> Hi Fabio,
> 
> the BGP nexthop field must be resolvable. In other words there must be a
> route to the neighbor in RIB.
> 
> Regards,
> Bene
> 
> 
> On 23.03.20 12:05, Fabiano D'Agostino wrote:
> > Hi all,
> > why if I disable the direct protocol the BGP routes are not
> > imported/exported? If I run show route, it is empty, while if I enable
> > the direct protocol show route has directly connected routes and
> BGP routes.
> > My configuration is very easy, two routers make a eBGP peering and
> they
> > import and export all routes. I am using Bird 2.0.7.
> >
> > Thanks,
> >
> > Fabiano
> 
> 
> -- 
> Karlsruher Institut für Technologie (KIT)
> Steinbuch Centre for Computing (SCC)
> 
> Benedikt Neuffer
> Netze und Telekommunikation (NET)
> 
> Hermann-von-Helmholtz-Platz 1
> Gebäude 442
> Raum 185
> 76344 Eggenstein-Leopoldshafen
> 
> Telefon: +49 721 608-24502
> Fax: +49 721 608-47763
> E-Mail: benedikt.neuf...@kit.edu 
> Web: https://www.scc.kit.edu
> 
> 
> 
> Sitz der Körperschaft:
> Kaiserstraße 12, 76131 Karlsruhe
> 
> 
> 
> KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
> 
> 
> 
> Signaturversion: 19.1.0 beta
> 


-- 
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Benedikt Neuffer
Netze und Telekommunikation (NET)

Hermann-von-Helmholtz-Platz 1
Gebäude 442
Raum 185
76344 Eggenstein-Leopoldshafen

Telefon: +49 721 608-24502
Fax: +49 721 608-47763
E-Mail: benedikt.neuf...@kit.edu
Web: https://www.scc.kit.edu



Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe



KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft



Signaturversion: 19.1.0 beta



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Direct protocol affects BGP

2020-03-23 Thread Benedikt Neuffer
Hi Fabio,

the BGP nexthop field must be resolvable. In other words there must be a
route to the neighbor in RIB.

Regards,
Bene


On 23.03.20 12:05, Fabiano D'Agostino wrote:
> Hi all,
> why if I disable the direct protocol the BGP routes are not
> imported/exported? If I run show route, it is empty, while if I enable
> the direct protocol show route has directly connected routes and BGP routes.
> My configuration is very easy, two routers make a eBGP peering and they
> import and export all routes. I am using Bird 2.0.7.
> 
> Thanks,
> 
> Fabiano


-- 
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Benedikt Neuffer
Netze und Telekommunikation (NET)

Hermann-von-Helmholtz-Platz 1
Gebäude 442
Raum 185
76344 Eggenstein-Leopoldshafen

Telefon: +49 721 608-24502
Fax: +49 721 608-47763
E-Mail: benedikt.neuf...@kit.edu
Web: https://www.scc.kit.edu



Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe



KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft



Signaturversion: 19.1.0 beta



smime.p7s
Description: S/MIME Cryptographic Signature