Hi all,
I have two routers with OpenVPN function, I can connect them via tun mode with ipv6 enabled but when I use tap mode I got this error with client:
/sbin/ip -6 addr add 2001:db8:0:123::1001/64 dev tap0
daemon.err openvpn[17076]: Linux ip -6 addr add failed: external program exited with error status : 2
My configuration:
client-to-client
persist-key
persist-tun
auth SHA256
cipher BF-CBC
ncp-disable
comp-lzo adaptive
dev tap
dev-type tap
tun-ipv6
push tun-ipv6
group nogroup
keepalive 10 120
mode server
mute 5
port 1194
proto udp6
push "persist-key"
push "persist-tun"
push "redirect-gateway def1"
push "route-ipv6 ::/0"
route-gateway dhcp
#server 10.8.0.0 255.255.255.0
server-bridge 10.8.0.0 255.255.255.0 10.8.0.2 10.8.0.100
server-ipv6 2001:db8:0:123::1/64
topology subnet
duplicate-cn
user nobody
verb 3
client
dev tap
proto udp6
remote 240e:47d:15:d326:b8c1:11ff:feb2:5a75 1194
resolv-retry infinite
nobind
persist-key
persist-tun
auth SHA256
cipher BF-CBC
comp-lzo adaptive
nice 0
mute 5
verb 3
In tun mode the client will get 2001:db8:0:123::1001/64 as ipv6 global address, but it does't work with tap mode. Any suggestion will be appreciated.