Forum Linux.debian/ubuntu serveur kimsufi d'OVH et ipv6

Posté par .
Étiquettes : aucune
1
11
juin
2012

boujour

j'ai la double connectivité sur mon serveur kimsufi squeeziste.com:
http://91.121.85.124/
http://[2001:41d0:1:8a7c::1]/

l'adresse donnée par le manager:
2001:41d0:1:8a7c::/64

root@ks27442:~# nano /etc/network/interfaces

auto lo
iface lo inet loopback
 auto eth0
 iface eth0 inet static
 address 91.121.85.124
 netmask 255.255.255.0
 network 91.121.85.0
 broadcast 91.121.85.255
 gateway 91.121.85.254
iface eth0 inet6 static
 address 2001:41d0:1:8a7c::1
 netmask 64

j'ajoute la gateway ip6
route -A inet6 add default gw 2001:41d0:0001:8aFF:FF:FF:FF:FF dev eth0

root@ks27442:~# route --inet6

Table de routage IPv6 du noyau
Destination Next Hop Flag Met Ref Use If
::1/128 :: Un 0 1 3447 lo
2001:41d0:1:8a7c::1/128 :: Un 0 1 8166 lo
2001:41d0:1:8a7c::/64 :: U 256 0 0 eth0
2001:41d0:1:8a00::/56 :: UAe 256 0 1 eth0
fe80::219:d1ff:fe84:e72c/128 :: Un 0 1 158 lo
fe80::/64 :: U 256 0 0 eth0
ff00::/8 :: U 256 0 0 eth0
::/0 2001:41d0:1:8aff:ff:ff:ff:ff UG 1 0 0 eth0
::/0 :: !n -1 1 9129 lo

root@ks27442:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:19:d1:84:e7:2c 
 inet adr:91.121.85.124 Bcast:91.121.85.255 Masque:255.255.255.0
 adr inet6: fe80::219:d1ff:fe84:e72c/64 Scope:Lien
 adr inet6: 2001:41d0:1:8a7c::1/64 Scope:Global
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:49203334 errors:0 dropped:16299 overruns:0 frame:0
 TX packets:26215063 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 lg file transmission:1000 
 RX bytes:71056709623 (66.1 GiB) TX bytes:3637118624 (3.3 GiB)
 Interruption:44 
lo Link encap:Boucle locale 
 inet adr:127.0.0.1 Masque:255.0.0.0
 adr inet6: ::1/128 Scope:H�te
 UP LOOPBACK RUNNING MTU:16436 Metric:1
 RX packets:409722 errors:0 dropped:0 overruns:0 frame:0
 TX packets:409722 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 lg file transmission:0 
 RX bytes:32365861 (30.8 MiB) TX bytes:32365861 (30.8 MiB)

j'ajoute l'IP6 pour apache2
root@ks27442:~# nano /etc/apache2/sites-enabled/squeeziste.com.vhost

#<VirtualHost 91.121.85.124:80>
<VirtualHost [2001:41d0:1:8a7c::1]:80 91.121.85.124:80>
 DocumentRoot /var/www/squeeziste.com/web
 ServerName squeeziste.com
 ServerAlias www.squeeziste.com
 ServerAdmin webmaster@squeeziste.com

la question:
quand je redémarre le réseau par init.d il semble que la gateway disparaisse

root@ks27442:~# /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces … (warning).
Reconfiguring network interfaces…done.

root@ks27442:~# route --inet6

Table de routage IPv6 du noyau
Destination Next Hop Flag Met Ref Use If
::1/128 :: Un 0 1 3453 lo
2001:41d0:1:8a7c::1/128 :: Un 0 1 40 lo
2001:41d0:1:8a7c::/64 :: U 256 0 0 eth0
2001:41d0:1:8a00::/56 :: UAe 256 0 0 eth0
fe80::219:d1ff:fe84:e72c/128 :: Un 0 1 6 lo
fe80::/64 :: U 256 0 0 eth0
ff00::/8 :: U 256 0 0 eth0
::/0 fe80::21e:79ff:fe1e:f000 UGDAe 1024 0 0 eth0
::/0 fe80::21e:79ff:fe1e:d400 UGDAe 1024 0 0 eth0
::/0 :: !n -1 1 9145 lo

faut il ajouter la gateway dans le document interfaces ?

iface eth0 inet6 static
address 2001:41d0:1:8a7c::1
netmask 64
gateway 2001:41d0:0001:8aFF:FF:FF:FF:FF

  • # man interfaces

    Posté par . Évalué à 3.

    faut il ajouter la gateway dans le document interfaces ?

    Oui, sinon comment ferait-on pour retrouver cette passerelle entre deux (re)démarrages ?

    A+
    JJD

    • [^] # Re: man interfaces

      Posté par . Évalué à 1.

      comme le dit JJD

      j'ajouterais que tu le fais pour IPv4, pourquoi en serait-il autrement avec IPv6 ?

  • # Incroyable !

    Posté par (site web personnel) . Évalué à 7.

    Un post de robertix qui
    * est compréhensible
    * pose une vraie question à vrai problème et à laquelle on peut apporter une vraie réponse.

    Being a sysadmin is easy. As easy as riding a bicycle. Except the bicycle is on fire, you’re on fire and you’re in Hell.

    • [^] # Re: Incroyable !

      Posté par . Évalué à -2.

      c'est pas gentil de se moquer
      pour la peine tu prend -1

      ;)

    • [^] # Re: Incroyable !

      Posté par . Évalué à 0.

      lol ^ :) Bonjour ALL ;)

      Free 4 Linux

  • # Une ligne en plus dans ton fichier interfaces

    Posté par . Évalué à 0.

    iface eth0 inet6 static
     address 2001:41d0:1:8a7c::1
     netmask 64
     up ip route add default via 2001:41d0:0001:8aFF:FF:FF:FF:FF dev eth0
    
    
  • # Antenne :/

    Posté par . Évalué à 0.

    HS : Sympathique ton antenne :D en tout cas Robertix.. J'aime ;)

    Free 4 Linux

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.