bird6 bgp - no listening socket
Hello, bird6.conf: -------------------------------------------------------------------------- log syslog all; router id 80.50.131.218; listen bgp address 2a03:6600:3::2 port 179 dual; protocol kernel { scan time 20; # import none; export all; } protocol static { route 2a03:6600:4::/48 reject; } protocol bgp leszczyny { local as 44124; neighbor 2a03:6600:3::1 as 44124; hold time 240; startup hold time 240; connect retry time 120; keepalive time 80; start delay time 5; error wait time 60, 300; error forget time 300; disable after error; path metric 1; default bgp_med 0; default bgp_local_pref 0; gateway direct; export all; import all; } ---------------------------------------------------------------------------------------- sadly, BGP is not working, I found that there is no listening socket created on 2a03:6600:3::2 and it refuses connections from 2a03:6600:3::1: 15:10:48.187179 IP6 2a03:6600:3::1.49296 > 2a03:6600:3::2.179: S 515376837:515376837(0) win 5760 <mss 1440,sackOK,timestamp 722432390 0,nop,wscale 6> 15:10:48.191276 IP6 2a03:6600:3::2.179 > 2a03:6600:3::1.49296: R 0:0(0) ack 515376838 win 0 There is already bird (v4) running on that machine listening on 0.0.0.0:179 How to solve this? Can both bird and bird6 (both with bgp protocol configured) on the same machine? Regards -- Adrian Czapek
On Tue, Jun 07, 2011 at 03:12:50PM +0200, Adrian Czapek wrote:
Hello,
bird6.conf: -------------------------------------------------------------------------- log syslog all; router id 80.50.131.218; listen bgp address 2a03:6600:3::2 port 179 dual;
sadly, BGP is not working, I found that there is no listening socket created on 2a03:6600:3::2 and it refuses connections from 2a03:6600:3::1: ...
There is already bird (v4) running on that machine listening on 0.0.0.0:179
How to solve this? Can both bird and bird6 (both with bgp protocol configured) on the same machine?
Problem is in 'listen ... dual', in that case it is blocked by bird4. Just remove 'dual'. -- 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 Wed, Jun 08, 2011 at 11:22:30AM +0200, Adrian Czapek wrote:
W dniu 2011-06-08 02:05, Ondrej Zajicek pisze:
Problem is in 'listen ... dual', in that case it is blocked by bird4. Just remove 'dual'.
Without 'dual' it looks exactly the same.
Do you restart (not just reload) bird6 after that? And if you remove whole 'listen ...' option? (And use BGP option 'source address' to specify local address if there are more addresses.) -- 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."
Hi, Just wondering... in bird6 dont you have to have a protocol device {} like you have in bird (ipv4) ? On Wed, Jun 8, 2011 at 9:19 AM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Wed, Jun 08, 2011 at 11:22:30AM +0200, Adrian Czapek wrote:
W dniu 2011-06-08 02:05, Ondrej Zajicek pisze:
Problem is in 'listen ... dual', in that case it is blocked by bird4. Just remove 'dual'.
Without 'dual' it looks exactly the same.
Do you restart (not just reload) bird6 after that?
And if you remove whole 'listen ...' option? (And use BGP option 'source address' to specify local address if there are more addresses.)
-- 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."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk3vaMIACgkQw1GB2RHercPZJQCdHvvuPXsaeyJTYUbC8qRg4wnR FVkAn0NZjWoANrnksyEFuE6Ywqw8AjFW =zub6 -----END PGP SIGNATURE-----
-- Christian Lyra PoP-PR/RNP
On Wed, Jun 08, 2011 at 09:32:24AM -0300, Christian Lyra wrote:
Hi,
Just wondering... in bird6 dont you have to have a protocol device {} like you have in bird (ipv4) ?
This is probably the cause of the problem, i missed that. Device protocol should be configured in both bird4 and bird6, otherwise interfaces are not found, which would cause some strange behavior (like not properly starting BGP). -- 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."
W dniu 2011-06-08 14:19, Ondrej Zajicek pisze:
Do you restart (not just reload) bird6 after that?
And if you remove whole 'listen ...' option? (And use BGP option 'source address' to specify local address if there are more addresses.)
Yes, bird6 is restarted. I started without 'listen...' option and added it later when I found that no socket is created. So, without 'listen' it is exactly the same. -- Adrian Czapek
participants (3)
-
Adrian Czapek -
Christian Lyra -
Ondrej Zajicek