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

2020-05-01 Thread Ondrej Zajicek
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: santi...@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."



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

2020-05-01 Thread Alarig Le Lay
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
route 2a00:5884:105::/48 via "fe80::ae1f:6bff:fead:2ed8%enp3s0f1.30"
→ no error but no route
route 2a00:5884:105::/48 via fe80::ae1f:6bff:fead:2ed8 interface "enp3s0f1.30"
→ syntax error, unexpected INTERFACE
route 2a00:5884:105::/48 via fe80::ae1f:6bff:fead:2ed8 "enp3s0f1.30"
→ syntax error, unexpected TEXT

And https://bird.network.cz/?get_doc=20=bird-6.html#ss6.14 only
shows examples about IPv4.

What is the correct syntax?

Thanks,
-- 
Alarig Le Lay