OVH Community, your new community space.

IPV6 + IPV4 Proxmox avec vm Windows


ks@
14/03/2015, 18h08
Hello,

Je galère depuis plusieurs jours sur la config réseau de Proxmox (3.4-1) pour mettre de l'IPv6 sur mes VMs
Actuellement l'ipv4 en NAT fonctionne sans problème (host+VMs)
L'ipv6 fonctionne sur le host mais pas sur les VMs

Ce qui fonctionne:
vmbr0 pour le host (ipv4 et ipv6)
vmbr2 pour l'ipv4 NAT sur les VMs

Il y a pas mal de tutos sur le net, j'ai essayé beaucoup de choses en vain, si vous savez quoi faire, je vous en serai très reconnaissant !

Voici ma config sur la VM (vmbr0)


Config sur le host
Code:
iface vmbr0 inet6 static
        address 2001:41d0:1:8a76::1
        netmask 64
        post-up /sbin/ip -f inet6 route add 2001:41d0:1:82ff:ff:ff:ff:ff dev vmbr0
        post-up /sbin/ip -f inet6 route add default via 2001:41d0:1:82ff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del default via 2001:41d0:1:82ff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del 2001:41d0:1:82ff:ff:ff:ff:ff dev vmbr0


Code:
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.vmbr0.autoconf = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.vmbr0.accept_ra = 0
net.ipv6.conf.vmbr0.accept_ra = 0
net.ipv6.conf.vmbr0.autoconf = 0
net.ipv6.conf.default.proxy_ndp = 1
net.ipv6.conf.all.proxy_ndp = 1
Code:
root@Zod:~#  ip -6 route show
2001:41d0:1:82ff:ff:ff:ff:ff dev vmbr0  metric 1024  mtu 1500 advmss 1440 hoplimit 0
2001:41d0:1:8a76::/64 dev vmbr0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::1 dev venet0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev vmbr1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev venet0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev tap100i0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev tap100i1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev tap101i0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev tap102i0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev tap103i0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev vmbr0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev vmbr2  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
default via 2001:41d0:1:82ff:ff:ff:ff:ff dev vmbr0  metric 1024  mtu 1500 advmss 1440 hoplimit 0

Code:
root@Zod:~# route -6
Table de routage IPv6 du noyau
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:1:82ff:ff:ff:ff:ff/128 ::                         U    1024 0     1 vmbr0
2001:41d0:1:8a76::/64          ::                         U    256 0     0 vmbr0
2001:41d0:1:8a00::/56          ::                         UAe  256 0     1 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 tap100i0
fe80::/64                      ::                         U    256 0     0 tap100i1
fe80::/64                      ::                         U    256 0     0 tap101i0
fe80::/64                      ::                         U    256 0     0 tap102i0
fe80::/64                      ::                         U    256 0     0 tap103i0
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 vmbr2
::/0                           2001:41d0:1:82ff:ff:ff:ff:ff UG   1024 0    59 vmbr0
::/0                           fe80::205:73ff:fea0:1      UGDAe 1024 0     0 vmbr0
::/0                           ::                         !n   -1  1   244 lo
::1/128                        ::                         Un   0   1    26 lo
2001:41d0:1:8a76::1/128        ::                         Un   0   1     9 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::225:90ff:fe0a:1490/128   ::                         Un   0   1     8 lo
fe80::14ba:bcff:fe53:d79/128   ::                         Un   0   1     0 lo
fe80::2436:9fff:fe9d:71f4/128  ::                         Un   0   1     0 lo
fe80::681c:afff:feb0:4c3/128   ::                         Un   0   1     0 lo
fe80::6cf7:c4ff:feb4:b0ba/128  ::                         Un   0   1     0 lo
fe80::a476:1cff:fe2c:f5e7/128  ::                         Un   0   1     0 lo
fe80::c0a0:8aff:fea8:f5e1/128  ::                         Un   0   1     0 lo
fe80::fc2d:75ff:fe47:1130/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 tap100i0
ff00::/8                       ::                         U    256 0     0 tap100i1
ff00::/8                       ::                         U    256 0     0 tap101i0
ff00::/8                       ::                         U    256 0     0 tap102i0
ff00::/8                       ::                         U    256 0     0 tap103i0
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 vmbr2
::/0                           ::                         !n   -1  1   244 lo
Code:
root@Zod:~# ping6 ipv6.google.com
PING ipv6.google.com(par10s21-in-x0e.1e100.net) 56 data bytes
64 bytes from par10s21-in-x0e.1e100.net: icmp_seq=1 ttl=57 time=4.95 ms
64 bytes from par10s21-in-x0e.1e100.net: icmp_seq=2 ttl=57 time=5.21 ms
64 bytes from par10s21-in-x0e.1e100.net: icmp_seq=3 ttl=57 time=5.07 ms
^C
--- ipv6.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
Merci