v4&v6环境
本帖最后由 依听忆昔 于 2013/1/2 23:39 编辑个人用户推荐使用六飞ipv4--->ipv6,可以创建虚拟ipv6网络
OVH
首先确认一下你的kernel支持IPv6(基本上没问题,OVH的机器不是太古老的都支持):
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215714b7S.jpgroot@ks3******:~# unme -r
3.2.13-grsec-xxxx-grs-ipv6-64然后登录OVH的控制面板,记下来分配给你的IPv6地址:
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215715s1X.jpg
为了方便举例,下面就以IPv6地址2001:41d0:1:a53::/64为例。
控制面板上分配给你的这个地址,其实是一个/64的地址段,我们只使用其中一个就够了。比如2001:41d0:1:a53::1:
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215716Cya.jpgroot@ks3******:~# ifconfig eth0 inet6 add 2001:41d0:1:a53::1/64只有IP还不行,我们还要添加路由地址:
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215717bWL.jpgroot@ks3******:~# route -A inet6 add default gw 2001:41d0:1:aff:ff:ff:ff:ff dev eth0上面这个路由地址是这样算出来的:
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215719XDb.jpg
这样就添加完了。然后启动deluge或者rtorrent,找个热种试试看,有没有IPv6的用户连接上来。
为了防止机器重启之后上述配置失效,可以修改/etc/network/interfaces,添加几行:
http://www.dwhd.org/wp-content/uploads/auto_save_image/2012/10/215722yoL.jpg
重启网卡/etc/init.d/networking restart看看现在的IPV6配置root@ks3******:~# ifconfig
eth0 Link encap:EthernetHWaddr 00:22:4d:7c:45:b6
inet addr:37.59.**.***Bcast:37.59.**.255Mask:255.255.255.0
inet6 addr: fe80::222:4dff:fe7c:45b6/64 Scope:Link
inet6 addr: 2001:41d0:1:a53::1/64 Scope:Global
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:140689431 errors:0 dropped:0 overruns:0 frame:0
TX packets:108065107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:191492710782 (191.4 GB)TX bytes:33795953685 (33.7 GB)
Interrupt:16 Memory:80400000-80420000
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:17549 errors:0 dropped:0 overruns:0 frame:0
TX packets:17549 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8481067 (8.4 MB)TX bytes:8481067 (8.4 MB)来看看PING谷歌和清华大学的V6地址root@ks3******:~# ping6 -c 8 ipv6.google.com
PING ipv6.google.com(muc03s02-in-x14.1e100.net) 56 data bytes
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=1 ttl=55 time=40.3 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=2 ttl=55 time=40.1 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=3 ttl=55 time=40.2 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=4 ttl=55 time=42.4 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=5 ttl=55 time=41.6 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=6 ttl=55 time=39.7 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=7 ttl=55 time=41.3 ms
64 bytes from muc03s02-in-x14.1e100.net: icmp_seq=8 ttl=55 time=42.2 ms
--- ipv6.google.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 39.705/41.014/42.446/0.985 ms
root@ks3******:~# ping6 -c 8 ipv6.tsinghua.edu.cn
PING ipv6.tsinghua.edu.cn(2001:da8:1:100::80) 56 data bytes
64 bytes from 2001:da8:1:100::80: icmp_seq=1 ttl=53 time=326 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=2 ttl=53 time=349 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=4 ttl=53 time=351 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=5 ttl=53 time=349 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=6 ttl=53 time=349 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=7 ttl=53 time=347 ms
64 bytes from 2001:da8:1:100::80: icmp_seq=8 ttl=53 time=349 ms
--- ipv6.tsinghua.edu.cn ping statistics ---
8 packets transmitted, 7 received, 12% packet loss, time 7012ms
rtt min/avg/max/mdev = 326.997/346.286/351.565/7.976 ms最后说说添加了IPv6之后,在实际使用中的效果,——基本上能多带来几十K流量吧……
所以不是IPv6爱好者就别折腾了。
本教程参考了SEEDBOX军团会员hustbeta的教程,并做了点注释得出。。。。感谢hustbeta
ovh部分转载于seedbox军团
服务器的不懂= =
{:1352:}好长,大致看不懂。
页:
[1]