Auteur Sujet: Aide configuration Ipv6 OVH Kimsufi  (Lu 2066 fois)

0 Membres et 1 Invité sur ce sujet

cl3f

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 557
  • Sotteville-Lès-Rouen (76)
    • calepin naturaliste et militant
Aide configuration Ipv6 OVH Kimsufi
« le: 22 mars 2021 à 16:37:40 »
Bonjour,
J'ai installé Yunohost sur un kimsufi, l'interface de Yunohost me dit que je n'ai pas d'iPv6 et pourtant un fichier se trouvant dans /etc/network/interfaces.d contient les informations suivantes :
auto lo
iface lo inet loopback

auto eno0
iface eno0 inet dhcp
    accept_ra 0

# control-alias eno0
iface eno0 inet6 static
    address 2001:41d0:a:24XX::1/56
    dns-nameservers 2001:41d0:3:163::1
    gateway 2001:41d0:a:24ff:ff:ff:ff:ff
    post-up route add -A inet6 2001:41d0:a:2400::/58 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2400::/58 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2480::/58 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2480::/58 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2440::/59 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2440::/59 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24c0::/59 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24c0::/59 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2470::/60 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2470::/60 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24e0::/60 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24e0::/60 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2460::/61 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2460::/61 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24f0::/61 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24f0::/61 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:246c::/62 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:246c::/62 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24f8::/62 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24f8::/62 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:246a::/63 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:246a::/63 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24fc::/63 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24fc::/63 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2469::/64 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2469::/64 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24fe::/64 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24fe::/64 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:8000::/65 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:8000::/65 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:8000::/65 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:8000::/65 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:4000::/66 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:4000::/66 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:4000::/66 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:4000::/66 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:2000::/67 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:2000::/67 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:2000::/67 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:2000::/67 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:1000::/68 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:1000::/68 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:1000::/68 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:1000::/68 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:800::/69 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:800::/69 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:800::/69 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:800::/69 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:400::/70 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:400::/70 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:400::/70 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:400::/70 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:2468:200::/71 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:2468:200::/71 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    post-up route add -A inet6 2001:41d0:a:24ff:200::/71 gw 2001:41d0:a:24ff:ff:ff:ff:ff || true
    pre-down route del -A inet6 2001:41d0:a:24ff:200::/71 gw 2001:41d0:a:24ff:ff:ff:ff:ff ||
Je n'arrive pas à comprendre pourquoi ce fichier est si long (et encore je l'ai tronqué) sachant qu'OVH préconise d'indiquer directement dans le fichier interfaces (dans /etc/network) les informations suivantes (https://docs.ovh.com/fr/dedicated/network-ipv6/):
iface eth0 inet6 static
    address YOUR_IPv6
    netmask 128

post-up /sbin/ip -f inet6 route add IPv6_GATEWAY dev eth0
post-up /sbin/ip -f inet6 route add default via IPv6_GATEWAY
pre-down /sbin/ip -f inet6 route del IPv6_GATEWAY dev eth0
pre-down /sbin/ip -f inet6 route del default via IPv6_GATEWAY
Ce qui est plus ou moins ce que préconise yunohost ici :
iface eth0 inet6 static
address <votre adresse IPv6>
netmask <votre préfixe IPv6>
post-up /sbin/ip -6 route add <la passerelle IPv6> dev eth0
post-up /sbin/ip -6 route add default via <la passerelle IPv6> dev eth0
pre-down /sbin/ip -6 route del default via <la passerelle IPv6> dev eth0
pre-down /sbin/ip -6 route del <la passerelle IPv6> dev eth0

Quelqu'un peut m'aider à faire quelque chose de propre (c'est un serveur debian 10) ? Sachant que l'ipv6 ne marche pas pour le moment (ce n'est pas une "vue de l'esprit" du logiciel yunohost car un ping6 ne donne rien) précision : je n'ai rien touché à la config de départ. Je suis en cours de suivi du MOOC sur FUN au sujet d'ipv6 mais je ne suis pas encore un expert, loin de là.

lechercheur123

  • AS2027 MilkyWan
  • Expert
  • *
  • Messages: 1 297
  • Montauban (82)
    • AS208261 - Pomme Télécom
Aide configuration Ipv6 OVH Kimsufi
« Réponse #1 le: 23 mars 2021 à 17:47:27 »
Salut,

Version courte : Je pense que tu peux supprimer tous les post-up et pre-down.

Version longue :

Les commandes mentionnées dans les post-up et pre-down sont respectivement exécutées au moment de l'activation de l'interface et à sa désactivation.
Ici, on voit qu'il s'agit d'ajouter des routes dans ta table de routage, et toutes ces routes ont 2001:41d0:a:24ff:ff:ff:ff:ff comme gateway. Or, 2001:41d0:a:24ff:ff:ff:ff:ff est aussi ta gateway par défaut. Toutes ces routes sont donc inutiles.

Pour ce qui est de ton problème de connectivité IPv6, je t'invite à :
- vérifier que l'IPv6 qui est attribuée à ton serveur (voir ton manager chez OVH) est bien la même que celle présente sous "iface eno0 inet6 static"
- vérifier que tu as bien une route par défaut (ip -6 route show)
- vérifier que tu peux bien ping ta gateway
- me donner l'erreur que tu as lorsque tu fais un ping6 (timeout, réseau non accessible...)