Hello! Trying to run bird on ethernet interface with type = ptmp. Yes, I know that ethernet is broadcast interface, but there is a good practice to use ptmp on ethernet. I found a strange bug. When type = ptmp, bird sends only one Hello packet and then stops (and even receive?) next packets until I fully restart bird, while other side (cisco or mikrotik) sends packets every 10s (as configured). There is no problems with type = broadcast Here is my simple test configuration: protocol ospf main_ospf { import all; instance id 0; tick 5; area 0.0.0.0 { networks { X.X.16.78/32; X.X.16.80/28; }; interface "lo1" { type ptp; hello 60; retransmit 10; dead 30; }; interface "em0.102" { cost 10; type ptmp; hello 10; retransmit 5; dead 40; # authentication cryptographic; password "XXXXX" { id 1; algorithm keyed md5; }; }; }; } FreeBSD - 11-STABLE Bird 1.6.3 With regards, Boris -- С уважением, Борис Коваленко
On Sun, Feb 05, 2017 at 09:38:20AM +0000, Борис Коваленко wrote:
Hello!
Trying to run bird on ethernet interface with type = ptmp. Yes, I know that ethernet is broadcast interface, but there is a good practice to use ptmp on ethernet. I found a strange bug. When type = ptmp, bird sends only one Hello packet and then stops (and even receive?) next packets until I fully restart bird, while other side (cisco or mikrotik) sends packets every 10s (as configured).
Hello To which address it sends the Hello packet? To the first learned neighbor? What you see in logs if you enable 'debug all' for OSPF? What is shown by 'show ospf neighbors'? Note that BIRD expect that you specify neighbors in 'neighbors' section for NBMA or PTMP modes, but it would learn neighbors from received Hello packets.
There is no problems with type = broadcast
FreeBSD - 11-STABLE Bird 1.6.3
There were people reporting problems in FreeBSD 11 due to API change, but that would affect also broadcast mode: https://www.mail-archive.com/bird-users@network.cz/msg01542.html -- 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."
Hello! Sorry for a long answer. I think I saw hello from previous configuration. Now test it again and with mode = ptmp bird does not send hello until neighbors are configured. Unfortunatelly, I also does not lear neighbors from incoming hellos. Yes, I know about API change, but official FreeBSD bird port is 1.6.3 and it has a patch for FreeBSD 11. With debug all I see the messages: <TRACE> main_ospf: HELLO packet sent via em0 every 2 seconds (I changed settings), but tcpdump sees no packets on interface :( And yes, when mode is broadcast there are no problems really. Regards, Boris вс, 5 февр. 2017 г. в 14:38, Борис Коваленко <b.ju.kovalenko@gmail.com>:
Hello!
Trying to run bird on ethernet interface with type = ptmp. Yes, I know that ethernet is broadcast interface, but there is a good practice to use ptmp on ethernet. I found a strange bug. When type = ptmp, bird sends only one Hello packet and then stops (and even receive?) next packets until I fully restart bird, while other side (cisco or mikrotik) sends packets every 10s (as configured). There is no problems with type = broadcast
Here is my simple test configuration: protocol ospf main_ospf { import all;
instance id 0; tick 5;
area 0.0.0.0 { networks { X.X.16.78/32; X.X.16.80/28; };
interface "lo1" { type ptp; hello 60; retransmit 10; dead 30; };
interface "em0.102" { cost 10; type ptmp; hello 10; retransmit 5; dead 40; # authentication cryptographic; password "XXXXX" { id 1; algorithm keyed md5; }; }; }; }
FreeBSD - 11-STABLE Bird 1.6.3
With regards, Boris
--
С уважением, Борис Коваленко
-- С уважением, Борис Коваленко
participants (2)
-
Ondrej Zajicek -
Борис Коваленко