OVH Community, your new community space.

ipv6 issue


Myatu
21-10-2012, 16:15
Quote Originally Posted by chinafree
It been removed.
I change Settings from /etc/network/interfaces
Code:
iface eth0 inet6 static
        address 2001:41d0:2:be78::1
        netmask 64
post-up /sbin/ifconfig eth0 inet6 add 2001:41d0:2:be78::1/64
pre-down /sbin/ifconfig eth0 inet6 del 2001:41d0:2:be78::1/64
route -A inet6 add default gw 2001:41d0:2:beFF:FF:FF:FF:FF dev eth0
That's different from what you initially posted. Did you add the last three lines afterwards? Anyway, the post-up and pre-down don't need to be there unless you wish to assign additional IPs other than ...be78::1. That last line can be changed for just a "gateway" in your stanza.

But it's that your IP is actually removed. If it became unroutable, then the IP would still be there, but just generate an error. So I'm wondering if you have a cronjob running that automatically resets your network settings. Do you have any firewalls or control panels installed?

chinafree
20-10-2012, 11:36
Quote Originally Posted by Myatu
Looks like things are configured OK. It used to be that you needed a 56 bitmask and assign the gateway manually (several posts can be found about this by searching the forum), but that shouldn't be the case anymore. When you lose IPv6 connectivity, does eth0 still show as having a public IPv6 address? Or has it been removed?
It been removed.
I change Settings from /etc/network/interfaces
Code:
iface eth0 inet6 static
        address 2001:41d0:2:be78::1
        netmask 64
post-up /sbin/ifconfig eth0 inet6 add 2001:41d0:2:be78::1/64
pre-down /sbin/ifconfig eth0 inet6 del 2001:41d0:2:be78::1/64
route -A inet6 add default gw 2001:41d0:2:beFF:FF:FF:FF:FF dev eth0
I wish have a good luck

By the way, DO I have to running with a IPv6 kernel.

root@ks:#uname -a
Linux ks.kimsufi.com 2.6.32-42-generic-pae #96-Ubuntu SMP Wed Aug 15 19:12:17 UTC 2012 i686 GNU/Linux
this is my kernel

Myatu
15-10-2012, 23:29
Looks like things are configured OK. It used to be that you needed a 56 bitmask and assign the gateway manually (several posts can be found about this by searching the forum), but that shouldn't be the case anymore. When you lose IPv6 connectivity, does eth0 still show as having a public IPv6 address? Or has it been removed?

chinafree
15-10-2012, 16:57
please help me?

DigitalDaz
14-10-2012, 20:31
try reediting the post again and add 'please' after the 'help me', it may well speed up a response to your ptoblem

chinafree
14-10-2012, 03:31
Hello. I want to setup ipv6 on my server but i have some problems
OS: ubuntu 10.04 desktop

Code:
root@ks:#uname -a
Linux ks.kimsufi.com 2.6.32-42-generic-pae #96-Ubuntu SMP Wed Aug 15 19:12:17 UTC 2012 i686 GNU/Linux
Settings from /etc/network/interfaces
Code:
iface eth0 inet6 static
	pre-up /sbin/modprobe -q ipv6 ; /bin/true
	address 2001:41d0:2:be78::1
	netmask 64
ifconfig output :
Code:
eth0      Link encap:Ethernet  HWaddr 00:25:90:15:a7:46
          inet addr:XXX.XXX.XXX.XXX  Bcast:XXX.XXX.XXX.XXX  Mask:XXX.XXX.XXX.0
          inet6 addr: 2001:41d0:2:be78::1/64 Scope:Global
          inet6 addr: fe80::225:90ff:fe15:a746/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3932236 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7187078 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:837116811 (837.1 MB)  TX bytes:1386602529 (1.3 GB)
          Memory:fbce0000-fbd00000

eth1      Link encap:Ethernet  HWaddr 00:25:90:15:a7:47
          BROADCAST 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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:fbde0000-fbe00000

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:16436  Metric:1
          RX packets:7562 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7562 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1425349 (1.4 MB)  TX bytes:1425349 (1.4 MB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:c0:00:01
          inet addr:192.168.167.1  Bcast:192.168.167.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:c0:00:08
          inet addr:192.168.229.1  Bcast:192.168.229.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Code:
PING ipv6.google.com(wi-in-x63.1e100.net) 56 data bytes
64 bytes from wi-in-x63.1e100.net: icmp_seq=1 ttl=56 time=10.2 ms
64 bytes from wi-in-x63.1e100.net: icmp_seq=2 ttl=56 time=10.1 ms
64 bytes from wi-in-x63.1e100.net: icmp_seq=3 ttl=56 time=10.0 ms
64 bytes from wi-in-x63.1e100.net: icmp_seq=4 ttl=56 time=9.96 ms
64 bytes from wi-in-x63.1e100.net: icmp_seq=5 ttl=56 time=10.0 ms
64 bytes from wi-in-x63.1e100.net: icmp_seq=6 ttl=56 time=10.1 ms
BUT.... when i issue ipv6 address unavailable After about 10 minutes.
go back to this
Code:
ping6 ipv6.google.com
connect: Network is unreachable
I must restart network. like this sudo sudo /etc/init.d/networking restart
then ipv6 Network back to normal.
However, the same problem applies about 10 minutes.
help me