Hí, I have recently found out a problem with assigning IPv6 prefix via static protocol for the VLAN interface. When I wrote this: protocol static leases { route 2001:db8:0:100::/56 via fe80::xxxx:xxff:fexx:xxxx%eth1.3330; } It gave me: /etc/bird/leases6.conf, line 2: syntax error However, when I use a host interface for that VLAN (%eth1), it suddenly works. I've also tried to assign prefix via public address used on that interface (say 2001:db8::xxxx (/64). Even though there was no error in configuration phase, the route was ignored by bird. Is there a way how to insert static route pointing to the VLAN interface? Is the "dot" syntax supported? Has anyone had more luck using a static protocol in that manner? If it is a bug, will it be fixed in 1.6.x, or just in bird2? I've tried to do that on version 1.6.0 as well as 1.6.3, no luck in the both cases. Best regards, Martin Hunek Freenet Liberec, z.s.
On Fri, Jul 14, 2017 at 10:03:18AM +0200, Martin Huněk wrote:
Hí,
I have recently found out a problem with assigning IPv6 prefix via static protocol for the VLAN interface.
When I wrote this: protocol static leases { route 2001:db8:0:100::/56 via fe80::xxxx:xxff:fexx:xxxx%eth1.3330; }
It gave me: /etc/bird/leases6.conf, line 2: syntax error
However, when I use a host interface for that VLAN (%eth1), it suddenly works.
Hi The IP%iface syntax in BIRD is a hack that uses symbol syntax for iface name, which allows just alphanumeric chars and underscore. You could try fe80::xxx%'eth1.3330'
Is there a way how to insert static route pointing to the VLAN interface?
Well, it is unrelated to VLAN iface, it is problem with dot in name. Also note that it is possible to use vconfig set_name_type VLAN_PLUS_VID_NO_PAD to have VLAN ifaces named vlanXX, or VLAN can be created with any name using 'ip' tool instead of 'vconfig' tool. -- 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."
Hi Ondrej, fe80::xxx%'eth1.3330' seems to work, thanks! I think it would be beneficial to mention that in user documentation. Best regards Marin Hunek Dne pátek 14. července 2017 13:50:19 CEST jste napsal(a):
On Fri, Jul 14, 2017 at 10:03:18AM +0200, Martin Huněk wrote:
Hí,
I have recently found out a problem with assigning IPv6 prefix via static protocol for the VLAN interface.
When I wrote this: protocol static leases {
route 2001:db8:0:100::/56 via fe80::xxxx:xxff:fexx:xxxx%eth1.3330;
}
It gave me: /etc/bird/leases6.conf, line 2: syntax error
However, when I use a host interface for that VLAN (%eth1), it suddenly works. Hi
The IP%iface syntax in BIRD is a hack that uses symbol syntax for iface name, which allows just alphanumeric chars and underscore.
You could try fe80::xxx%'eth1.3330'
Is there a way how to insert static route pointing to the VLAN interface?
Well, it is unrelated to VLAN iface, it is problem with dot in name.
Also note that it is possible to use
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
to have VLAN ifaces named vlanXX, or VLAN can be created with any name using 'ip' tool instead of 'vconfig' tool.
participants (2)
-
Martin Huněk -
Ondrej Zajicek