Monday, October 29, 2018

Re: bgpd: announce loopback / local prefix

Le lun. 29 oct. 2018 à 22:26, Pierre Emeriaud
<petrus.lt+openbsd@gmail.com> a écrit :
>
> Le lun. 29 oct. 2018 à 22:04, Claudio Jeker <cjeker@diehard.n-r-g.com> a écrit :
> >
> > Another option is to set the rtlabel on the interface and then use network
> > rtlabel to redistribute it.
>
> I tried that, but it's refused by bgpd parser:
>
> $ doas bgpd -n
> /etc/bgpd.conf:39: syntax error
> $ doas nl -ba -nln /etc/bgpd.conf | grep ^39
> 39 network inet6 rtlabel 42

Erm, this works with a text-only label:
$ route -n show -label foo
Internet6:
Destination Gateway
Flags Refs Use Mtu Prio Iface
2001:db8:3cc:10:1000::1 2001:db8:3cc:10:1000::1 UHl
0 0 32768 1 lo0

$ doas nl -ba -nln /etc/bgpd.conf | grep ^39
39 network inet6 rtlabel foo

$ doas bgpd -n
configuration OK

No comments:

Post a Comment