IPv6 for Host and virtual machines

Hook

New Member
May 28, 2011
23
0
1
Germany
Hi,

I am trying to enable IPv6 on my servers. I got an IPv6 subnet for my server: 2001:41D0:2:C46e::/64
There are two servers running with OpenVZ and one Windows server with KVM.
I entered one of my IPv6 address in the Windows network settings, also the gateway, which is 2001:41D0:2:CFF:FF:FF:FF:FF. On this machine, IPv6 works like expected.
But if I try to add an IPv6 address to my host system or to one of my OpenVZ machines, I now get the error
Code:
root@ks380351:~# ping6 ipv6.google.com
connect: Network is unreachable
I tried to set it up with this tutorial: http://forum.ovh.co.uk/showpost.php?p=26659&postcount=6
but that doesn't seem to work. The content of my /etc/network/interfaces file:
Code:
auto lo
iface lo inet loopback

# for Routing
auto vmbr1
iface vmbr1 inet manual
        post-up /etc/pve/kvm-networking.sh
        bridge_ports dummy0
        bridge_stp off
        bridge_fd 0


# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
        address 188.165.249.110
        netmask 255.255.255.0
        network 188.165.249.0
        broadcast 188.165.249.255
        gateway 188.165.249.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

iface eth0 inet6 static
        address fe80::225:90ff:fe22:423e
        netmask 64
Output of ifconfig shows this:
Code:
root@ks380351:~# ifconfig
dummy0    Link encap:Ethernet  Hardware Adresse 8e:03:5b:a4:3c:db
          inet6-Adresse: fe80::8c03:5bff:fea4:3cdb/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING NOARP  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 B)  TX bytes:2576 (2.5 KiB)

eth0      Link encap:Ethernet  Hardware Adresse 00:25:90:22:42:3e
          inet6-Adresse: fe80::225:90ff:fe22:423e/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:6262978 errors:0 dropped:0 overruns:0 frame:0
          TX packets:945235 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:1443064759 (1.3 GiB)  TX bytes:589559829 (562.2 MiB)
          Interrupt:16 Speicher:fbce0000-fbd00000

lo        Link encap:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1
          RX packets:120319 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120319 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:35707468 (34.0 MiB)  TX bytes:35707468 (34.0 MiB)

tap101i0d0 Link encap:Ethernet  Hardware Adresse fe:bb:82:f2:ad:e8
          inet6-Adresse: fe80::fcbb:82ff:fef2:ade8/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metrik:1
          RX packets:1571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4913 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:500
          RX bytes:135545 (132.3 KiB)  TX bytes:905520 (884.2 KiB)

venet0    Link encap:UNSPEC  Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6-Adresse: fe80::1/128 Gültigkeitsbereich:Verbindung
          UP BROADCAST PUNKTZUPUNKT RUNNING NOARP  MTU:1500  Metrik:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:424 (424.0 B)  TX bytes:564 (564.0 B)

vmbr0     Link encap:Ethernet  Hardware Adresse 00:25:90:22:42:3e
          inet Adresse:188.165.249.110  Bcast:188.165.249.255  Maske:255.255.255.0
          inet6-Adresse: fe80::225:90ff:fe22:423e/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:15938 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20487 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:1129833 (1.0 MiB)  TX bytes:22515293 (21.4 MiB)

vmbr1     Link encap:Ethernet  Hardware Adresse 8e:03:5b:a4:3c:db
          inet6-Adresse: fe80::8c03:5bff:fea4:3cdb/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 B)  TX bytes:368 (368.0 B)
The output of route -6 gives this:
Code:
root@ks380351:~# route -6
Kernel-IPv6-Routentabelle
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:c46e::3:1/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::3:2/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::3:3/128      ::                         U    1024 0     0 venet0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 dummy0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 tap101i0d0
::/0                           ::                         !n   -1  1   646 lo
::1/128                        ::                         Un   0   1   113 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1     3 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1     6 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
fe80::fcbb:82ff:fef2:ade8/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 dummy0
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 tap101i0d0
::/0                           ::                         !n   -1  1   646 lo
I also tried to add a route with
Code:
/sbin/ip -6 route add 2001:41D0:2:C46e::/64 via 2001:41d0:2:cff:ff:ff:ff:ff
or
/sbin/ip -6 route add 2001:41D0:2:C46e::/64 dev eth0
or similar, but nothing worked. Btw. 2001:41d0:2:cff:ff:ff:ff:ff is the gateway.

I don't know what the problem is, on my other server running debian 6.0 also running at ovh I just added
Code:
iface eth0 inet6 static
        address 2001:41D0:xxx/64
        netmask 64
to /etc/network/interfaces and IPv6 worked.

It would be great if one of you could help me with solving the problem. If there's some information missing, just let me know and I will add them.
And if there's something weird in the configuration, that may be because I played around with the settings a bit.
Thanks in advance for your help!
 

cmn

New Member
Mar 30, 2011
8
0
1
You probably want to change this...

Code:
iface eth0 inet6 static
         address fe80::225:90ff:fe22:423e         
         netmask 64
 

Hook

New Member
May 28, 2011
23
0
1
Germany
I already tried to change this to several values, for example
Code:
iface eth0 inet6 static
         address 2001:41D0:2:C46e::1
         netmask 64
restarted the network, but that still did not work.

As you can see above, I have several interfaces. To which one do I have to bind the IPv6-Address? The IPv4 address is bound to vmbr0, but if I bind the IPv6 address to this interface, I still get the same error.
 

cmn

New Member
Mar 30, 2011
8
0
1
I already tried to change this to several values, for example
Code:
iface eth0 inet6 static
         address 2001:41D0:2:C46e::1
         netmask 64
restarted the network, but that still did not work.

As you can see above, I have several interfaces. To which one do I have to bind the IPv6-Address? The IPv4 address is bound to vmbr0, but if I bind the IPv6 address to this interface, I still get the same error.
I use radvd on my gateway to deploy ipv6, the ipv6 address is bound to the vmbr0 interface.

So add 2001:41D0:2:C46e::1/64 to vmbr0

Configure the ipv6 default route

ip route add ::/0 dev vmbr0

Maybe also enable forwarding

echo 1 >| /proc/sys/net/ipv6/conf/all/forwarding
 

Hook

New Member
May 28, 2011
23
0
1
Germany
Thank you for your help. I am now getting the error
Code:
root@ks380351:~# ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:400c:c01::68) 56 data bytes
From 2001:41d0:2:c46e::1 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=3 Destination unreachable: Address unreachable
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3016ms
As you can see I added the IPv6 address to vmbr0:
Code:
root@ks380351:~# ifconfig vmbr0
vmbr0     Link encap:Ethernet  Hardware Adresse 00:25:90:22:42:3e
          inet Adresse:188.165.249.110  Bcast:188.165.249.255  Maske:255.255.255.0
          inet6-Adresse: 2001:41d0:2:c46e::1/64 Gültigkeitsbereich:Global
          inet6-Adresse: fe80::225:90ff:fe22:423e/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:1045 errors:0 dropped:0 overruns:0 frame:0
          TX packets:886 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:147512 (144.0 KiB)  TX bytes:237184 (231.6 KiB)
Also the routing looks a bit weird, but correct:
Code:
root@ks380351:~# route -6
Kernel-IPv6-Routentabelle
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:c46e::3:1/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::3:2/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::3:3/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::/64          ::                         U    256 0     0 vmbr0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 tap101i0d0
fe80::/64                      ::                         U    256 0     0 dummy0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           ::                         U    1024 0     0 vmbr0
::/0                           ::                         !n   -1  2   726 lo
::1/128                        ::                         Un   0   1   129 lo
2001:41d0:2:c46e::/128         ::                         Un   0   1     0 lo
2001:41d0:2:c46e::1/128        ::                         Un   0   1   171 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1     0 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1     0 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
fe80::fcbb:82ff:fef2:ade8/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 tap101i0d0
ff00::/8                       ::                         U    256 0     0 dummy0
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  2   726 lo
 

cmn

New Member
Mar 30, 2011
8
0
1
Default route is using eth0, try..

ip -6 ro del ::/0 dev eth0
ip -6 ro add ::/0 dev vmbr0
 

Hook

New Member
May 28, 2011
23
0
1
Germany
Yeah, at first I tried to use vmbr0, then eth0 because vmbr0 did not work. I changed it back to vmbr0 then and edited my post a few seconds later because I copied the old settings ;)
But still it does not work, same error:
Code:
root@ks380351:~# ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:400c:c01::69) 56 data bytes
From 2001:41d0:2:c46e::1 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=3 Destination unreachable: Address unreachable
^C
--- ipv6.google.com ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms
 

Hook

New Member
May 28, 2011
23
0
1
Germany
I'm sorry, I noticed that the gateway is in fact 2001:41D0:2:C4FF:FF:FF:FF:FF and not 2001:41D0:2:CFF:FF:FF:FF:FF.
So it seems to work now, but only if I enter these commands in the exact order:
Code:
route -6 add ::/0 dev vmbr0
route -6 add default gw 2001:41D0:2:C4FF:FF:FF:FF:FF
route -6 del ::/0 dev vmbr0
That seems to be a bit weird to me, because I can't add the default gateway without setting the route ::/0 over dev vmbr0 first:
Code:
root@ks380351:~# route -6 add default gw 2001:41D0:2:C4FF:FF:FF:FF:FF
SIOCADDRT: Keine Route zum Zielrechner
If I don't delete the route ::/0 afterwards, it still does not work and gives me the error
Code:
root@ks380351:~# ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:400c:c01::68) 56 data bytes
From 2001:41d0:2:c46e::1 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=3 Destination unreachable: Address unreachable
^C
--- ipv6.google.com ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms
So why do I have to delete the route ::/0 over dev vmbr0 afterwards to get it working?
Also I have no idea how to enter these commands in the network settings to get it working after reboot. Would it be possible to tell me?
 

cmn

New Member
Mar 30, 2011
8
0
1
You could try:

ip -6 ro add ::/0 via 2001:41D0:2:C4FF:FF:FF:FF:FF dev vmbr0
 

Hook

New Member
May 28, 2011
23
0
1
Germany
I get this error when trying the command you gave me when there's no gateway and no route over vmbr0 for ::/0:
I just give you some output, so you can see what the problem may be:
Code:
root@ks380351:~# route -6
Kernel-IPv6-Routentabelle
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:c46e::3:1/128      ::                         U    1024 0     0 venet0
2001:41d0:2:c46e::/64          ::                         U    256 0     0 vmbr0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 dummy0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 tap101i0d0
::/0                           2001:41d0:2:c4ff:ff:ff:ff:ff UG   1   0    82 vmbr0
::/0                           ::                         !n   -1  2  1155 lo
::1/128                        ::                         Un   0   1   184 lo
2001:41d0:2:c46e::/128         ::                         Un   0   1     0 lo
2001:41d0:2:c46e::1/128        ::                         Un   0   1   371 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1    20 lo
fe80::225:90ff:fe22:423e/128   ::                         Un   0   1     0 lo
fe80::703c:9bff:fe65:68ee/128  ::                         Un   0   1     0 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
fe80::8c03:5bff:fea4:3cdb/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 dummy0
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 tap101i0d0
::/0                           ::                         !n   -1  2  1155 lo
root@ks380351:~# route -6 del default gw 2001:41D0:2:C4FF:FF:FF:FF:FF dev vmbr0
root@ks380351:~# ip -6 ro add ::/0 via 2001:41D0:2:C4FF:FF:FF:FF:FF dev vmbr0
RTNETLINK answers: No route to host
root@ks380351:~#
root@ks380351:~# route -6 add ::/0 dev vmbr0
root@ks380351:~# ip -6 ro add ::/0 via 2001:41D0:2:C4FF:FF:FF:FF:FF dev vmbr0
root@ks380351:~# ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:400c:c01::93) 56 data bytes
From 2001:41d0:2:c46e::1 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:41d0:2:c46e::1 icmp_seq=3 Destination unreachable: Address unreachable
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4607ms

root@ks380351:~# route -6 del ::/0 dev vmbr0
root@ks380351:~# ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:400c:c01::93) 56 data bytes
64 bytes from 2a00:1450:400c:c01::93: icmp_seq=1 ttl=56 time=238 ms
64 bytes from 2a00:1450:400c:c01::93: icmp_seq=2 ttl=56 time=9.84 ms
64 bytes from 2a00:1450:400c:c01::93: icmp_seq=3 ttl=56 time=9.96 ms
^C
--- ipv6.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 9.847/86.008/238.211/107.623 ms
 

cmn

New Member
Mar 30, 2011
8
0
1
Your gateway is in a different subnet so you need a route to the gateway's network just as you would in ipv4 before you can add the default route.

ip -6 ro add 2001:41d0:2:c4ff::/64 dev vmbr0

For your /etc/network/interfaces

Code:
iface vmbr0 inet6 static
address 2001:41d0:2:c46e::1
netmask 64
gateway 2001:41d0:2:c4ff:ff:ff:ff:ff
Or if that still doesn't work..

Code:
iface vmbr0 inet6 static
address 2001:41d0:2:c46e::1
netmask 64
up ip -6 ro add 2001:41d0:2:c4ff::/64 dev vmbr0
gateway 2001:41d0:2:c4ff:ff:ff:ff:ff
post-down ip -6 ro del 2001:41d0:2:c4ff::/64 dev vmbr0
 

Hook

New Member
May 28, 2011
23
0
1
Germany
Thank you, cmn for your answer.

I finally managed to get IPv6 working for the host system and the vservers!
At first I added the things you gave me to the interfaces file, but that only set me the IP address, not the gateway. (weird)
So I searched around again through several websites, and finally found something and wrote a small script which executes the following commands:
Code:
#! /bin/sh
ip -6 ro add 2001:41d0:2:c4ff::/64 dev vmbr0
ip -6 ro add default via 2001:41D0:2:C4FF:FF:FF:FF:FF dev vmbr0
# sysctl -w net.ipv6.conf.all.proxy_ndp=1  ODER  /etc/sysctl.conf -> net.ipv6.conf.all.proxy_ndp = 1 
ip -6 neigh add proxy 2001:41d0:2:c46e:2::1 dev vmbr0
ip -6 neigh add proxy 2001:41d0:2:c46e:3::1 dev vmbr0
So you first have to add net.ipv6.conf.all.proxy_ndp = 1 to /etc/sysctl.conf (permanent solutin) or execute sysctl -w net.ipv6.conf.all.proxy_ndp=1 (temporary, lost after reboot).
Then you have to add the routes you gave me above to set the gateway. (first two lines)
Finally you just have to execute ip -6 neigh add proxy <VM's:IPv6:address> dev vmbr0 for every IP you gave your VM's.

Then you just have to get the script executed at boot time, so you don't have to execute the script manually every time.
That's it :)
Thank you again for your help and patience! :)

It would also be great if proxmox could implement IPv6 directly into the webinterface. Maybe for proxmox2 ?
 
Last edited:

tux

Member
Jul 21, 2009
54
0
6
IP6 support for KVM and OpenVZ would be great feature. Anybody check IP6 for OpenVZ 2.6.32 Container?
 

r00t.ati

Guest
Sorry guys, but it didnt work for me! :S
What i do wrong?

That's my configuration:
cat /etc/network/interfaces
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  188.165.200.124
        netmask  255.255.255.0
        gateway  188.165.200.254
        broadcast  188.165.200.255
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        network 188.165.200.0

iface vmbr0 inet6 static
address 2001:41D0:2:917c::1
netmask 64
ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 00:30:48:bf:e5:2e  
          inet6 addr: fe80::230:48ff:febf:e52e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:776823762 errors:0 dropped:0 overruns:0 frame:0
          TX packets:232477468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:259824038647 (241.9 GiB)  TX bytes:328301651947 (305.7 GiB)
          Interrupt:16 Memory:faee0000-faf00000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:172159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:172159 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:27865551 (26.5 MiB)  TX bytes:27865551 (26.5 MiB)

tap102i1d0 Link encap:Ethernet  HWaddr 1a:a0:47:91:69:d5  
          inet6 addr: fe80::18a0:47ff:fe91:69d5/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:55626 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5216 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:3899404 (3.7 MiB)  TX bytes:219678 (214.5 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:73092280 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53049789 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:87126544921 (81.1 GiB)  TX bytes:9136220493 (8.5 GiB)

vmbr0     Link encap:Ethernet  HWaddr 00:30:48:bf:e5:2e  
          inet addr:188.165.200.124  Bcast:188.165.200.255  Mask:255.255.255.0
          inet6 addr: 2001:41d0:2:917c::1/64 Scope:Global
          inet6 addr: fe80::230:48ff:febf:e52e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13924 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1720843 (1.6 MiB)  TX bytes:16838444 (16.0 MiB)
route -6
Code:
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:917c::/64          ::                         U    256 0     0 vmbr0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 tap102i1d0
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1 26380 lo
::1/128                        ::                         Un   0   1  3802 lo
2001:41d0:2:917c::/128         ::                         Un   0   1     0 lo
2001:41d0:2:917c::1/128        ::                         Un   0   1    26 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::230:48ff:febf:e52e/128   ::                         Un   0   1     4 lo
fe80::230:48ff:febf:e52e/128   ::                         Un   0   1     0 lo
fe80::18a0:47ff:fe91:69d5/128  ::                         Un   0   1     0 lo
fe80::5cb8:e7ff:febd:4fdb/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 tap102i1d0
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1 26380 lo
Some information about proxmox:
uname -a
Code:
Linux ks310156.kimsufi.com 2.6.32-4-pve #1 SMP Mon May 9 12:59:57 CEST 2011 x86_64 GNU/Linux
pveversion
Code:
pve-manager/1.8/6070
My assigned range is: 2001:41d0:2:917c::/64

But i cant reach any external ipv6 addresses, and nobody can reach me.
[from proxmox] ping6 ipv6.google.com
Code:
connect: Network is unreachable
[from my house] ping6 -c 3 2001:41d0:2:917c::1
Code:
PING 2001:41d0:2:917c::1(2001:41d0:2:917c::1) 56 data bytes

--- 2001:41d0:2:917c::1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
Anybody can help me?
 

Hook

New Member
May 28, 2011
23
0
1
Germany
You have to change my example script provided here: http://forum.proxmox.com/threads/6436-IPv6-for-Host-and-virtual-machines?p=36537#post36537
The following lines should enable ipv6 for you:
Code:
#! /bin/sh
ip -6 ro add 2001:41D0:2:91FF::/64 dev vmbr0
ip -6 ro add default via 2001:41D0:2:91FF:FF:FF:FF:FF dev vmbr0
You have to execute this script every time you reboot your host-system or network card, else IPv6 won't work!

Also you have to change net.ipv6.conf.all.proxy_ndp = 1 in the file /etc/sysctl.conf so that your vservers could also get an IPv6 address! The temporary solution (or if you did not reboot your server or restarted your network card after you changed the sysctl.conf) is to just execute sysctl -w net.ipv6.conf.all.proxy_ndp=1

To give your VM's an IPv6 address execute:
Code:
vzctl set <VM-ID> --ipadd <VM-IPv6-ADDRESS> --save
ip -6 neigh add proxy <VM-IPv6-ADDRESS> dev vmbr0
because it is currently not possible to enter IPv6-Adresses in the webinterface. The first line should only get executed ONCE, the second line after restarting your server or network card, so you could also add it to the script above.
 

r00t.ati

Guest
Uhm.. it didnt work.
Thats your script made for my IPV6 addresses:
Code:
#! /bin/sh
ip -6 ro add 2001:41d0:2:917c::/64 dev vmbr0
ip -6 ro add default via 2001:41d0:2:917c:FF:FF:FF:FF dev vmbr0
# sysctl -w net.ipv6.conf.all.proxy_ndp=1  ODER  /etc/sysctl.conf -> net.ipv6.conf.all.proxy_ndp = 1 
ip -6 neigh add proxy 2001:41d0:2:917c:1337::1 dev vmbr0
ip -6 neigh add proxy 2001:41d0:2:917c:1338::1 dev vmbr0
That's a part of my sysctl.conf:
Code:
[...]
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
net.ipv6.conf.all.forwarding=1

# aggiunto manualmente
net.ipv6.conf.all.proxy_ndp = 1
[...]
Now i run the "sysctl -w net.ipv6.conf.all.proxy_ndp=1"

And that are the last commands:
Code:
vzctl set <my_VM_ID> --ipadd 2001:41D0:2:917c:1337::1 --save
ip -6 neigh add proxy 2001:41D0:2:917c:1337::1 dev vmbr0
My VM have the inet6 address:
Code:
 venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:9x.xx.xx.xx  P-t-P:9x.xx.xx.xx  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: 2001:41d0:2:917c:1337::1/0 Scope:Global
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
But when i try to ping it:
Code:
ping6 2001:41D0:2:917c:1337::1
PING 2001:41D0:2:917c:1337::1(2001:41d0:2:917c:1337::1) 56 data bytes
^C
--- 2001:41D0:2:917c:1337::1 ping statistics ---
151 packets transmitted, 0 received, 100% packet loss, time 150002ms
That's my actual status of ifconfig in proxmox:
Code:
vmbr0     Link encap:Ethernet  HWaddr 00:30:48:bf:e5:2e  
          inet addr:188.165.200.124  Bcast:188.165.200.255  Mask:255.255.255.0
          inet6 addr: 2001:41d0:2:917c::1/64 Scope:Global
eth0      Link encap:Ethernet  HWaddr 00:30:48:bf:e5:2e  
          inet6 addr: fe80::230:48ff:febf:e52e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
And the actual status of route -6 in proxmox:
Code:
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:917c:1337::1/128   ::                         U    1024 0     0 venet0
2001:41d0:2:917c::/64          ::                         U    256 0     1 vmbr0
2001:41d0:2:917c::/64          ::                         U    1024 0     0 vmbr0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 tap102i1d0
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           2001:41d0:2:917c:ff:ff:ff:ff UG   1024 0   151 vmbr0
::/0                           ::                         !n   -1  1 27046 lo
::1/128                        ::                         Un   0   1  3803 lo
2001:41d0:2:917c::/128         ::                         Un   0   1     0 lo
2001:41d0:2:917c::1/128        ::                         Un   0   1    28 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::230:48ff:febf:e52e/128   ::                         Un   0   1    14 lo
fe80::230:48ff:febf:e52e/128   ::                         Un   0   1     0 lo
fe80::18a0:47ff:fe91:69d5/128  ::                         Un   0   1     0 lo
fe80::5cb8:e7ff:febd:4fdb/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 tap102i1d0
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1 27046 lo
What did i wrong.. again?
 
Last edited by a moderator:

Hook

New Member
May 28, 2011
23
0
1
Germany
Your gateway is wrong. The Gateway is 2001:41d0:2:91ff:ff:ff:ff:ff and NOT 2001:41d0:2:917c:ff:ff:ff:ff !
So just delete the route ::/0 2001:41d0:2:917c:ff:ff:ff:ff UG 1024 0 151 vmbr0
(ip -6 ro del default via 2001:41d0:2:917c:FF:FF:FF:FF dev vmbr0)
and change the first two lines of your script to
Code:
ip -6 ro add 2001:41d0:2:91FF::/64 dev vmbr0
ip -6 ro add default via 2001:41d0:2:91FF:FF:FF:FF:FF dev vmbr0
 

r00t.ati

Guest
Ouch.. i must learn something more about ipv6... ok, that work!
Thank you so much Hook!
 

fireon

Famous Member
Oct 25, 2010
3,445
255
103
38
Austria/Graz
iteas.at
Not really, i use IPV6 on all guests, that it's not a problem. RADVD is the answer. But on the Hostmachine it does only work on CMD. In the Proxmox Webinterface IPV6 Adresses can't be used. DNS AAAA records are not resolved. I 'am very sad about this. IPV6 is the standardfeature, every service can do with IPV6 even vdr work with it. At the moment the only way, "IPV6 only storages" add to proxmox is with the storagemodel "folder" :) . Add your IPV6 Storage in the fstab to the host.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!