Since some days there is IPv6 available for my server. But I noticed it just today. Editing /etc/network/interfaces and adding a new virtual interface didn’t work at all. The /etc/init.d/networking restart just showed errors. And ifconfig venet0 wasn’t satisfying.
What works is /etc/network/interfaces just adding the loopbback
iface lo inet6 loopback
adress ::1
netmask 128
gateway fe80::1
Now the trick is to add /etc/rc.local and add this before exit 0
ip addr add 2a01:238:40ab:cd12:dead:beef:dead:beef/128 dev venet0
ip route add default via fe80::1 dev venet0
Than execute /etc/rc.local
Wonder o wonder. Ifconfig works and also ping6 ipv6.example.com
Than I had to add the new ipv6 adress to my apache config
Listen [2a01:238:40ab:cd12:dead:beef:dead:beef]:80
Don’t forget a to create a symlink from rc.local to /etc/rc2.d/S21rc2.local