Unable to add a static IPv6 route with fe80 next-hop

Ondrej Zajicek santiago at crfreenet.org
Fri May 1 21:12:10 CEST 2020


On Fri, May 01, 2020 at 07:46:54PM +0200, Alarig Le Lay wrote:
> Hi,
> 
> It’s the first time I try to do such a configuration, but I can’t find
> the right syntax.
> 
> route 2a00:5884:105::/48 via fe80::ae1f:6bff:fead:2ed8%enp3s0f1.30
> 	→ syntax error, unexpected '.'
> route 2a00:5884:105::/48 via fe80::ae1f:6bff:fead:2ed8%"enp3s0f1.30"
> 	→ syntax error, unexpected TEXT, expecting CF_SYM_KNOWN or
> 	  CF_SYM_UNDEFINED

Hi

It is a bit tricky. Expression fe80::ae1f:6bff:fead:2ed8%eth0 would work,
but because you have a dot in name, you need to write it as
fe80::ae1f:6bff:fead:2ed8%'enp3s0f1.30'

The syntax here abuses symbol syntax (like is used for e.g. protocol
names).

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at 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."



More information about the Bird-users mailing list