I want to set up IPv6 address on my OpenVPN server operating in TAP mode.
According to documentation, ifconfig expects two parameters: l
and rn
. For TAP devices, l
is local address, rn
is netmask.
It works fine with IPv4: e.g. ifconfig 192.168.2.1 255.255.255.0
.
I tried to give it IPv4-like netmask, which is something not really used in IPv6, but I gave it a try. OpenVPN accepted this syntax, but no IP appeared on the interface:
ifconfig-ipv6 fdxx:xxxx:xxxx:2::1 ffff:ffff:ffff:ffff:: # no address on the iface
Apparently, this commit this commit should've implemented prefix length syntax in OpenVPN. It didn't accept single argument, complained that the second one is missing. I tried various dummy arguments, like ::
. The server accepted them, but, again, the interface got no address.
ifconfig-ipv6 fdxx:xxxx:xxxx:2::1/64 # complains
ifconfig-ipv6 fdxx:xxxx:xxxx:2::1/64 :: # no address on the iface