URL: https://linuxfr.org/forums/linux-debian-ubuntu/posts/serveur-kimsufi-d-ovh-et-ipv6 Title: serveur kimsufi d'OVH et ipv6 Authors: robertix Date: 2012年06月11日T14:30:09+02:00 Tags: Score: 1 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 # 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

AltStyle によって変換されたページ (->オリジナル) /