Comment configurer IPv6 sur VM Windows/Debian sous Proxmox
... / Comment configurer IPv6 s...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Comment configurer IPv6 sur VM Windows/Debian sous Proxmox

by
MickaelG12
Created on 2024-08-29 18:24:09 (edited on 2024-09-04 12:29:57) in Serveurs Dédiés-old

Bonjour,
Je voulais pousser la configuration du réseau de mes VM Windows et Debian un peu plus loin sur Proxmox en ajoutant l'IPv6.
Mais tous les tutoriels que j'ai trouvé sur le net ne sont pas valides pour un serveur Advanced de dernière génération (EPYC 4K).
Les tutoriels d'OVH ne parlent que de l'IPv4.

Quelqu'un peut il m'aider ?
Merci


3 Replies ( Latest reply on 2024-08-29 21:31:39 by
MickaelG12
)

Après 4h de recherche et de test, j'ai réussi à faire fonctionner l'IPv6 sur l'hôte Proxmox et sur une VM Debian.

La config pour Proxmox :
iface enp10s0f0np0 inet6 static
address 2001:xxxx:yyyy:zzzz::1/128
gateway fe80::1
iface vmbr0 inet6 static
address 2001:xxxx:yyyy:zzzz::ffff/64

La config pour la VM Debian :
iface ens18 inet6 static
address 2001:xxxx:yyyy:zzzz::100/128
post-up /sbin/ip -6 route add 2001:xxxx:yyyy:zzzz::ffff dev ens18
post-up /sbin/ip -6 route add default via 2001:xxxx:yyyy:zzzz::ffff
pre-down /sbin/ip -6 route del 2001:xxxx:yyyy:zzzz::ffff dev ens18
pre-down /sbin/ip -6 route del default via 2001:xxxx:yyyy:zzzz::ffff

Le combat n'est pas terminé. Il reste les VM Windows...

Quelques minutes de plus et la config pour les VM Windows est valide :
Adresse IPv6 : 2001:xxxx:yyyy:zzzz::100
Longueur du préfixe de sous-réseau : 128
Passerelle par défaut : 2001:xxxx:yyyy:zzzz::ffff

N'oubliez pas d'indiquer un serveur DNS préféré (et auxiliaire).

Pour récapituler, j'ai configuré comme ceci le serveur Proxmox:
- l'IPv6 2001:xxxx:yyyy:zzzz::1/128 sur l'interface réseau du serveur
- la gateway fe80::1 sur l'interface réseau du serveur
- l'IPv6 2001:xxxx:yyyy:zzzz::ffff/64 sur l'interface bridge vmbr0

J'ai ajouté les lignes suivantes dans le fichier /etc/sysctl.conf du Proxmox :
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.default.proxy_ndp=1
net.ipv6.conf.all.proxy_ndp=1

Pensez à redémarrer Proxmox.

(xxxx, yyyy, zzzz sont à adapter selon l'adresse IPv6 indiquée dans l'espace client OVH)