Ubuntu系统下开启配置ipv6

  • A+
所属分类:未分类

暂时使用的记录,也不知道有没有用:

 

如果出现含有以下粗体显示的部分,代表您的机器上IPV6已经开启。

1.使用ifconfig查看自己的IP地址是否含有IPv6地址。

inet6 addr: fe80::213:d4ff:fe05:b2ed/64 Scope:Link

2.查看服务监听的IP中是否有IPv6格式的地址。(netstat -tuln)

tcp 0 0 :::8080 :::* LISTEN

tcp 0 0 :::22 :::* LISTEN

tcp 0 0 :::443 :::* LISTEN

3.使用lsmod查看ipv6的模块是否被加载。

ip6t_REJECT            9409  1

ip6table_filter        6849  1

ip6_tables            18053  1 ip6table_filter

ipv6                  270433  18 ip6t_REJECT,cnic

启动ipv6
1. sudo apt-get install miredo
2. 以root权限打开ufw的配置文件: “/etc/default/ufw”,找到"IPV6=no"这一行,将其改为"IPV6=yes"。
3. sudo invoke-rc.d networking restart

测试:

ping6 ipv6.baidu.com
ping6 ipv6.google.com 
浏览器测试地址:https://test-ipv6.com/index.html.zh_CN

 

weinxin
我的QQ群
这是我的QQ群扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: