BIRD 2.0.4 and protocol RPKI in the config file
Hello dear Maria and bird users! I would like to ask you a question while I am experiencing an error all morning long :) I have installed the bird version 2.0.4 on my Linuxbox 4.14.13-x86_64-vmware. In my config file I am setting up the rpki protocol based on the documentation : https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.13 As protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; } when I run it I receive the syntax error unexpected symbol on the protocol line. -bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM I have played around with adding names, removing them, removing the { , then adding it again, but nothing changes. I have found another similar incident here : https://bird.network.cz/pipermail/bird-users/2019-March/013167.html Where Ondrej suggested to fix the ; but in my case I already have them. Is this a known issue? Apparently I am missing something. Thanks a lot in advance, and see you in Amsterdam Kind Regards Irène -- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
Hi Irene, Irene Lalioti wrote on 12/07/2019 10:26:
protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; }
when I run it I receive the syntax error unexpected symbol on the protocol line.
-bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM
Can you try with IP instead? E.g. remote "192.0.2.123" port 323; I have a vague recollection that using a hostname didn't work for me at all. Thanks, - Barry
Hello Barry! Thanks a lot for your feedback. I changed it yup . Nothing has changed though : Jul 12 12:37:19 rs-test bird[14097]: /etc/bird.conf:208:10 syntax error, unexpected SYM Jul 12 12:37:19 rs-test bird[14097]: bird: /etc/bird.conf:208:10 syntax error, unexpected SYM Jul 12 12:37:19 rs-test systemd[1]: bird.service: main process exited, code=exited, status=1/FAILURE Jul 12 12:37:19 rs-test systemd[1]: Unit bird.service entered failed state. Jul 12 12:37:19 rs-test systemd[1]: bird.service failed. Regards Irene On 7/12/19 11:41 AM, Barry O'Donovan wrote:
Hi Irene,
Irene Lalioti wrote on 12/07/2019 10:26:
protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; }
when I run it I receive the syntax error unexpected symbol on the protocol line.
-bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM
Can you try with IP instead? E.g.
remote "192.0.2.123" port 323;
I have a vague recollection that using a hostname didn't work for me at all.
Thanks, - Barry
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
Hey, I missed this nugget in your first email: "on the protocol line". Is RPKI definitely compiled in? - Barry Irene Lalioti wrote on 12/07/2019 11:38:
Hello Barry!
Thanks a lot for your feedback. I changed it yup . Nothing has changed though :
Jul 12 12:37:19 rs-test bird[14097]: /etc/bird.conf:208:10 syntax error, unexpected SYM Jul 12 12:37:19 rs-test bird[14097]: bird: /etc/bird.conf:208:10 syntax error, unexpected SYM Jul 12 12:37:19 rs-test systemd[1]: bird.service: main process exited, code=exited, status=1/FAILURE Jul 12 12:37:19 rs-test systemd[1]: Unit bird.service entered failed state. Jul 12 12:37:19 rs-test systemd[1]: bird.service failed.
Regards
Irene
On 7/12/19 11:41 AM, Barry O'Donovan wrote:
Hi Irene,
Irene Lalioti wrote on 12/07/2019 10:26:
protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; }
when I run it I receive the syntax error unexpected symbol on the protocol line.
-bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM
Can you try with IP instead? E.g.
remote "192.0.2.123" port 323;
I have a vague recollection that using a hostname didn't work for me at all.
Thanks, - Barry
-- Kind regards, Barry O'Donovan INEX Operations https://www.inex.ie/support/ +353 1 531 3339
Hello! Have you compiled BIRD yourself, or are you using a package? This seems to be an "unknown protocol" problem, when RPKI is silently omitted from your binary due to missing dependencies. Maria On July 12, 2019 11:26:51 AM GMT+02:00, Irene Lalioti <irene.lalioti@restena.lu> wrote:
Hello dear Maria and bird users!
I would like to ask you a question while I am experiencing an error all morning long :)
I have installed the bird version 2.0.4 on my Linuxbox 4.14.13-x86_64-vmware. In my config file I am setting up the rpki protocol based on the documentation : https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.13
As
protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; }
when I run it I receive the syntax error unexpected symbol on the protocol line.
-bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM
I have played around with adding names, removing them, removing the { , then adding it again, but nothing changes.
I have found another similar incident here :
https://bird.network.cz/pipermail/bird-users/2019-March/013167.html
Where Ondrej suggested to fix the ; but in my case I already have them. Is this a known issue? Apparently I am missing something.
Thanks a lot in advance, and see you in Amsterdam
Kind Regards
Irène
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette
Tel: +352 424409 1 Fax: +352 422473
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
It is the CentOS package from the official website.. thanks a lot! Irene On 7/12/19 12:52 PM, Maria Matějka wrote:
Hello!
Have you compiled BIRD yourself, or are you using a package?
This seems to be an "unknown protocol" problem, when RPKI is silently omitted from your binary due to missing dependencies.
Maria
On July 12, 2019 11:26:51 AM GMT+02:00, Irene Lalioti <irene.lalioti@restena.lu> wrote:
Hello dear Maria and bird users!
I would like to ask you a question while I am experiencing an error all morning long :)
I have installed the bird version 2.0.4 on my Linuxbox 4.14.13-x86_64-vmware. In my config file I am setting up the rpki protocol based on the documentation : https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.13
As
protocol rpki { debug all; roa4 { table r4; }; roa6 { table r6; }; remote "rpki.lu-cix.lu" port 323; retry keep 5; refresh keep 30; expire 600; }
when I run it I receive the syntax error unexpected symbol on the protocol line.
-bash-4.2# bird -c /etc/bird.conf -d -f bird: /etc/bird.conf:208:10 syntax error, unexpected SYM
I have played around with adding names, removing them, removing the { , then adding it again, but nothing changes.
I have found another similar incident here :
https://bird.network.cz/pipermail/bird-users/2019-March/013167.html
Where Ondrej suggested to fix the ; but in my case I already have them. Is this a known issue? Apparently I am missing something.
Thanks a lot in advance, and see you in Amsterdam
Kind Regards
Irène
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
Right. Thanks! In that case I will wait for the new updated package. Let me know once available, see you :) Cau! On 7/12/19 1:42 PM, Maria Jan Matejka wrote:
On 7/12/19 1:30 PM, Irene Lalioti wrote:
Have you compiled BIRD yourself, or are you using a package?> It is the CentOS package from the official website.. You're right. That package really doesn't have RPKI compiled in. We'll look at it, thank you for reporting!
Maria
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
Hello Maria! I am coming back to you to just ask you what else we need except for the libssh enable in the spec file of bird in the rpm, so that we have the RPKI functionality in the 2.0.4. With my colleague we tried to build the rpm package after adding the enable libssh : %build %configure --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} --enable-libssh and then we installed it. Or maybe it is impossible to do it ourselves ? :) Díky moc, Irene On 7/12/19 1:42 PM, Maria Jan Matejka wrote:
On 7/12/19 1:30 PM, Irene Lalioti wrote:
Have you compiled BIRD yourself, or are you using a package?> It is the CentOS package from the official website.. You're right. That package really doesn't have RPKI compiled in. We'll look at it, thank you for reporting!
Maria
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
On Fri, Jul 19, 2019 at 04:29:11PM +0200, Irene Lalioti wrote:
Hello Maria!
I am coming back to you to just ask you what else we need except for the libssh enable in the spec file of bird in the rpm, so that we have the RPKI functionality in the 2.0.4.
Hello You do not really need to explicitly enable it by configure option, it is autodetected. What you really need is libssh header files during compilation. You see whether libssh was found and RPKI support was compiled in from the output of configure: checking for libssh/libssh.h... yes ... BIRD was configured with the following options: ... Routing protocols: bfd babel bgp mrt ospf perf pipe radv rip rpki static But if you use --enable-libssh, then configure would fail if there are no libssh headers.
With my colleague we tried to build the rpm package after adding the enable libssh :
%build %configure --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} --enable-libssh
Note that you do not have backslash after --localstatedir option, so i am not sure whether --enable-libssh option was passed to configure.
and then we installed it.
Or maybe it is impossible to do it ourselves ? :)
And does it work? -- 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."
Cau Ondrej! Thanks for getting back to me. Yes I just checked and I do have the headers of libssh. As it seems it does not throw me error of this again where I define the rpki protocol, so it means that it supports it. Now I am in the process of troubleshooting / building the config , checking right now the " EBGP requires explicit import policy " error, and I run the service of bird to eventually see it running. Diky moc! Irene On 7/23/19 3:53 PM, Ondrej Zajicek wrote:
On Fri, Jul 19, 2019 at 04:29:11PM +0200, Irene Lalioti wrote:
Hello Maria!
I am coming back to you to just ask you what else we need except for the libssh enable in the spec file of bird in the rpm, so that we have the RPKI functionality in the 2.0.4. Hello
You do not really need to explicitly enable it by configure option, it is autodetected. What you really need is libssh header files during compilation. You see whether libssh was found and RPKI support was compiled in from the output of configure:
checking for libssh/libssh.h... yes ... BIRD was configured with the following options: ... Routing protocols: bfd babel bgp mrt ospf perf pipe radv rip rpki static
But if you use --enable-libssh, then configure would fail if there are no libssh headers.
With my colleague we tried to build the rpm package after adding the enable libssh :
%build %configure --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} --enable-libssh Note that you do not have backslash after --localstatedir option, so i am not sure whether --enable-libssh option was passed to configure.
and then we installed it.
Or maybe it is impossible to do it ourselves ? :) And does it work?
-- Irene Lalioti Network Engineer Fondation RESTENA 2, avenue de l'Université L-4365 Esch/Alzette Tel: +352 424409 1 Fax: +352 422473
participants (5)
-
Barry O'Donovan -
Irene Lalioti -
Maria Jan Matejka -
Maria Matějka -
Ondrej Zajicek