Projet

Général

Profil

Tâche #26475

Scénario #26521: Gérer correctement la désactivation de l'IPv6 sur EOLE 2.7

Impossible d'instancier un serveur a cause d'IPv6

Ajouté par Emmanuel GARETTE il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Début:
21/01/2019
Echéance:
% réalisé:

100%

Temps estimé:
0.10 h
Temps passé:
Restant à faire (heures):
0.0

Description

Le serveur n'est pas en DHCP par contre il est impossible de l'instancier :

root@zephir:~# CreoleGet eth0_method
statique
root@zephir:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 02:00:c0:a8:1e:3b brd ff:ff:ff:ff:ff:ff
    inet 192.168.30.58/24 brd 192.168.30.255 scope global ens3
       valid_lft forever preferred_lft forever
    inet6 fdea:9906:11ae::b5c/128 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fdea:9906:11ae::c0ff:fea8:1e3b/64 scope global mngtmpaddr noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fd8e:d1f8:4c61::c0ff:fea8:1e3b/64 scope global mngtmpaddr noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::c0ff:fea8:1e3b/64 scope link 
       valid_lft forever preferred_lft forever
root@zephir:~# systemd-resolve --status
Global
         DNS Servers: 192.168.30.254
          DNS Domain: cadoles.com
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa
                      18.172.in-addr.arpa
                      19.172.in-addr.arpa
                      20.172.in-addr.arpa
                      21.172.in-addr.arpa
                      22.172.in-addr.arpa
                      23.172.in-addr.arpa
                      24.172.in-addr.arpa
                      25.172.in-addr.arpa
                      26.172.in-addr.arpa
                      27.172.in-addr.arpa
                      28.172.in-addr.arpa
                      29.172.in-addr.arpa
                      30.172.in-addr.arpa
                      31.172.in-addr.arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (ens3)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
         DNS Servers: fd8e:d1f8:4c61::1
                      fdea:9906:11ae::1
root@zephir:~# instance 
---------------------------------------------------------------------------------------
                                Début de configuration                                 
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
                               Préparation pour instance                               
---------------------------------------------------------------------------------------
Restart Systemd service creoled                                                [  OK  ]
Problème de validation de la configuration, veuillez vérifier la configuration du serveur

Pour plus d'informations consulter : la documentation du module ou
la documentation commune 'Mise en œuvre des modules EOLE'.

Erreur creole 3 : "fd8e" est une valeur invalide pour l'option "Adresse IP du serveur DNS fourni par un serveur DHCP" de type IP

Révisions associées

Révision aeaa33d1 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

IPV6 activation/desactivation is not correctly supported by netplan

ref #26475

Révision 14031436 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

IPV6 activation/desactivation is not correctly supported by netplan

  • debian/eole-server.postinst : force ipv6 desactivation with Grub

ref #26475

Révision 8a9a0f65 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

IPV6 activation/desactivation is not correctly supported by netplan

  • debian/eole-server.postinst : force ipv6 desactivation with Grub

ref #26475

Révision c23c2c2e (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

IPv6 activation will be managed when netplan support it ;-)

ref #26475

Révision b473e58b (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

Revert "IPv6 activation will be managed when netplan support it ;-)"

We don't know the results on whole system

ref #26842

This reverts commit c23c2c2ea9dfdcc87926197b8d360d39c99d0725.

Révision 49c71368 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

Revert "IPv6 activation will be managed when netplan support it ;-)"

We don't know the results on whole system

ref #26842

This reverts commit c23c2c2ea9dfdcc87926197b8d360d39c99d0725.

Révision b1e55bc2 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

Revert "IPV6 activation/desactivation is not correctly supported by netplan"

We don't know the results on whole system

ref #26842

This reverts commit 14031436e898db0c5aaefb9667b5f24493916257.

Révision 8d2fd322 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

Revert "IPV6 activation/desactivation is not correctly supported by netplan"

We don't know the results on whole system

ref #26842

This reverts commit 8a9a0f6583482be09289691f8e3db9d7057b4966.

Révision 6402e565 (diff)
Ajouté par Fabrice Barconnière il y a environ 5 ans

auto_dns function added IP DNS without control

  • creole/eosfunc.py : auto_dns add only IPv4 addresses

ref #26475

Historique

#2 Mis à jour par Joël Cuissinat il y a environ 5 ans

  • Tâche parente mis à #26521

#3 Mis à jour par Joël Cuissinat il y a environ 5 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Joël Cuissinat

Il existe déjà le template suivant mais cela ne doit plus fonctionner :

dicos/00_common.xml:        <file name='/etc/modprobe.d/blacklist-eole.conf'/>

# cat /etc/modprobe.d/blacklist-eole.conf 
blacklist ipv6

#4 Mis à jour par Fabrice Barconnière il y a environ 5 ans

https://askubuntu.com/questions/1046057/disabling-ipv6-in-ubuntu-server-18-04 : "... Netplan seems to have too many bugs for 18.04 STABLE IMO..."

You only need to add this to /etc/default/grub

GRUB_CMDLINE_LINUX="ipv6.disable=1" 

I also did it on GRUB_CMDLINE_LINUX_DEFAULT to be safe

#5 Mis à jour par Joël Cuissinat il y a environ 5 ans

  • Assigné à changé de Joël Cuissinat à Fabrice Barconnière

#6 Mis à jour par Fabrice Barconnière il y a environ 5 ans

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100
  • Temps estimé mis à 0.10 h
  • Restant à faire (heures) mis à 0.1

#7 Mis à jour par Fabrice Barconnière il y a environ 5 ans

Un bug de fping : https://github.com/schweikert/fping/issues/118 provoque une erreur au diagnose (#26842).
Il est corrigé en version 4.1. Malheureusement, on est en 4.0.6 sur Bionic.
Du coup, on réactive ipv6 et on adapte le code creole:6402e565

#8 Mis à jour par William Petit il y a environ 5 ans

Il semblerait qu'appliquer le patch suivant sur le fichier /usr/share/eole/creole/00-eole.yaml permette d'éviter de récupérer des IPv6 avec Netplan:

--- distrib/00-eole.yaml    2018-12-18 14:04:11.000000000 +0100
+++ modif/00-eole.yaml    2019-02-14 09:03:01.760382428 +0100
@@ -21,6 +21,10 @@
             %if %%interface_gw == %%getVar('nom_zone_' + %%current_interface):
             gateway4: %%adresse_ip_gw
             %end if
+            %if %%getVar('activer_ipv6') == "non" 
+            dhcp6: no
+            accept-ra: no
+            %end if
         %elif %%interface_mode == 'dhcp'
             dhcp4: yes
         %else

Voir https://netplan.io/reference pour plus d'informations.

#9 Mis à jour par Gilles Grandgérard il y a environ 5 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.1 à 0.0

Formats disponibles : Atom PDF