OVH Community, your new community space.

Ipv6 /128 quel est le default Gateway ?


zoltix
20/01/2016, 18h06
ce qui fonctionne
Code:
ip -6 route del default via 2001:41d0:e:dff:ff:ff:ff:ff
ip -6 route add default dev vbr0 metric 1
ip -6 route add default via 2001:41d0:e:dff:ff:ff:ff:ff dev vbr0
ip -6 route del default dev vbr0
et pour le rendre persistant
/etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto vbr0
iface vbr0 inet static
        address 151.80.X.X
        netmask 255.255.255.0
        gateway 151.80.X.X
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
iface vbr0 inet6 static
        address 2001:41D0:E:XXXX::1
        netmask 128

        post-up /sbin/ip -6 route del default via 2001:41d0:e:eff:ff:ff:ff:ff
        post-up /sbin/ip -6 route add default dev vbr0 metric 1
        post-up /sbin/ip -6 route add default via 2001:41d0:e:eff:ff:ff:ff:ff dev vbr0
        post-up /sbin/ip -6 route del default dev vbr0


ping6 ipv6.google.com


Code:
PING ipv6.google.com(par03s13-in-x07.1e100.net) 56 data bytes
64 bytes from par03s13-in-x07.1e100.net: icmp_seq=1 ttl=58 time=5.13 ms
64 bytes from par03s13-in-x07.1e100.net: icmp_seq=2 ttl=58 time=5.32 ms
64 bytes from par03s13-in-x07.1e100.net: icmp_seq=3 ttl=58 time=5.17 ms
64 bytes from par03s13-in-x07.1e100.net: icmp_seq=4 ttl=58 time=5.19 ms
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 5.138/5.207/5.328/0.114 ms

traceroute ipv6.google.com
Code:
traceroute to ipv6.google.com (2a00:1450:4007:806::1007), 30 hops max, 80 byte packets
 1  2001:41d0:e:eff:ff:ff:ff:fe (2001:41d0:e:eff:ff:ff:ff:fe)  0.266 ms * *
 2  2001:41d0::1eb (2001:41d0::1eb)  0.793 ms * *
 3  2001:41d0::28d (2001:41d0::28d)  4.746 ms  4.735 ms  4.733 ms
 4  dal-4-4m.tx.us (2001:41d0::179)  9.121 ms  9.118 ms  9.111 ms
 5  2001:4860::1:0:9f2 (2001:4860::1:0:9f2)  5.470 ms  5.466 ms  5.456 ms
 6  2001:4860:0:1::39f (2001:4860:0:1::39f)  5.443 ms  5.596 ms  5.542 ms
 7  * 2a00:1450:4007:806::11 (2a00:1450:4007:806::11)  5.181 ms  5.207 ms

zoltix
20/01/2016, 09h32
J'ai trouvé
ip -6 route del default via 2001:41d0:e:dff:ff:ff:ff:ff
ip -6 route add default dev vbr0 metric 1
ip -6 route add default via 2001:41d0:e:dff:ff:ff:ff:ff dev vbr0



root@freeman:~# ping6 ipv6.google.com
PING ipv6.google.com(par03s13-in-x0e.1e100.net) 56 data bytes
64 bytes from par03s13-in-x0e.1e100.net: icmp_seq=1 ttl=58 time=5.08 ms
64 bytes from par03s13-in-x0e.1e100.net: icmp_seq=2 ttl=58 time=5.14 ms
64 bytes from par03s13-in-x0e.1e100.net: icmp_seq=3 ttl=58 time=5.09 ms
64 bytes from par03s13-in-x0e.1e100.net: icmp_seq=4 ttl=58 time=5.33 ms
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 5.086/5.164/5.334/0.112 ms

zoltix
19/01/2016, 21h36
Bonsoir,
j’ai dû modifier mes paramètres réseaux mais j’ai oublié de prendre note de ma configuration ipV6. En fait j’ai perdu mon default Gateway pour l’ipV6 lorsque j’ai configuré un bridge et donc mon interface est devenu vbr0. J’ai trouvé pas mal de configuration sur les forums comment configurer l’ipV6/64 mais rien sur ipv6/128. Alors je ne sais pas trop comment configurer car je suis débutant dans ce domaine.
Si vous pouviez m’aider

Voici quelques infos
/etc/network/interfaces

Code:
auto lo
iface lo inet loopback


auto vbr0
iface vbr0 inet static
        address 151.80.XX.49
        netmask 255.255.255.0
        gateway 151.80.XX.254
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
iface vbr0 inet6 static
        address 2001:41D0:E:0D31::1
        netmask 128
ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr ec:a8:6b:f1:7e:50
          inet6 addr: fe80::eea8:6bff:fef1:7e50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:440630 errors:0 dropped:0 overruns:0 frame:0
          TX packets:440833 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:107805613 (102.8 MiB)  TX bytes:364832418 (347.9 MiB)
          Interrupt:20 Memory:f7c00000-f7c20000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:303534 errors:0 dropped:0 overruns:0 frame:0
          TX packets:303534 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:990064673 (944.1 MiB)  TX bytes:990064673 (944.1 MiB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.8.0.1  P-t-P:10.8.0.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vbr0      Link encap:Ethernet  HWaddr ec:a8:6b:f1:7e:50
          inet addr:151.80.X.49  Bcast:151.80.X.255  Mask:255.255.255.0
          inet6 addr: fe80::eea8:6bff:fef1:7e50/64 Scope:Link
          inet6 addr: 2001:41d0:e:d31::1/128 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23722 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4213107 (4.0 MiB)  TX bytes:2748439 (2.6 MiB)
J’ai tenté de changé ma route malgré tout et ça n’a pas marcher

Code:
route -A inet6 add default gw  2001:41d0:e:0dFF:FF:FF:FF:FF
ou
Code:
 route -A inet6 add default gw  2001:41d0:e:0dFF:FF:FF:FF:FD
ou
Code:
route -A inet6 add default gw  2001:41d0:e:0d31:FF:FF:FF:FF
ou
Code:
route -A inet6 add default gw  2001:41d0:e:0d31:FF:FF:FF:FD


mais par contre mes routes me semblent très étranges
Code:
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                        ::                         U    256 0     0 lo
2001:41d0:e:d31::1/128         ::                         U    256 0     0 vbr0
2001:41d0:e:dff:ff:ff:ff:ff/128 ::                         U    1024 0    16 eth0
fe80::/64                      ::                         U    256 0     0 vnet0
fe80::/64                      ::                         U    256 0     0 vbr0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           2001:41d0:e:dff:ff:ff:ff:ff UG   1024 0     1 eth0
::/0                           ::                         !n   -1  1   528 lo
::1/128                        ::                         Un   0   1   809 lo
2001:41d0:e:d31::1/128         ::                         Un   0   1   508 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::eea8:6bff:fef1:7e50/128  ::                         Un   0   1   182 lo
fe80::eea8:6bff:fef1:7e50/128  ::                         Un   0   1     0 lo
fe80::fc54:ff:fe02:8dd/128     ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 vnet0
ff00::/8                       ::                         U    256 3     0 vbr0
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1   528 lo

merci d'avance de votre aide