本文将为您介绍ubuntu12.04下设置IPv6 的步骤与方法。

1、安装miredo。

$ sudo apt-get install miredo

2、修改防火墙IPv6设置

$ sudo vim /etc/default/ufw 

找到IPV6=no这一行,改为IPV6=yes

最后禁用/启用防火墙来使刚刚的改动生效:

$ sudo ufw disable
$ sudo ufw enable

3、重启网络

$ sudo invoke-rc.d networking restart

4、测试是否设置成功

$ ping6 ipv6.google.com
PING ipv6.google.com(2404:6800:4005:c00::8a) 56 data bytes
64 bytes from 2404:6800:4005:c00::8a: icmp_seq=3 ttl=59 time=483 ms
64 bytes from 2404:6800:4005:c00::8a: icmp_seq=4 ttl=59 time=478 ms
64 bytes from 2404:6800:4005:c00::8a: icmp_seq=6 ttl=59 time=481 ms
64 bytes from 2404:6800:4005:c00::8a: icmp_seq=7 ttl=59 time=477 ms

5.设置ip6tables

$ sudo ip6tables -L # 查看规则
$ sudo ip6tables -t filter -A OUTPUT -j ACCEPT # 设置

via:Google.com

标签: Ubuntu, ipv6, ip6tables, miredo