Ubuntu系统启用IPv6的两种方法

IPv6就是我们通常所说的互联网协议,是TCP/IP的核心协议,那么在Linux下如何开启IPv6呢?下面以Ubuntu为例,给大家介绍下Ubuntu启用IPv6的方法。

方法:

  $sudo apt-get install miredo

  $ifconfig

  在结果中应该能看见一个叫 teredo 的虚拟网卡。

  $ ping6 ipv6.google.com

  PING ipv6.google.com(2404:6800:8003::93) 56 data bytes

  64 bytes from 2404:6800:8003::93: icmp_seq=2 ttl=57 time=910 ms.。。。。。。。。。。。。。。。。。。。。。。

  现在您的浏览器应该可以访问 https://ipv6.google.com 了。

  $sudo gedit /etc/hosts

  把host列表拷贝进去,hosts列表发布地址:http://docs.google.com/View?id=dfkdmxnt_61d9ck9ffq

  现在应该可以正常访问: http://www.youtube.com/

  修改下防火墙设置:

  $sudo gedit /etc/default/ufw

  把IPV6=no 改成 yes

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

  $ sudo ufw disable

  $ sudo ufw enable

  另一种方法:

  sudo apt-get install gw6c

  上面就是Ubuntu开启IPv6的方法介绍了,本文一共介绍了两种方法,如果你要使用IPv6,那么你要先开启IPv6服务才行。

 

http://www.xitongzhijia.net/xtjc/20150402/43848.html

http://blog.sina.com.cn/s/blog_77f5a65c0101cjk9.html

http://forum.ubuntu.org.cn/viewtopic.php?t=374344

原生IPV6 升级12.04后一切正常。
你可以先检查下本地路由表,route -A inet6 看路由表中::/0的对应flag中是否含有G的字样(G是网关的意思)。
接着可以打开系统自带的“网络工具”,选好对应的网卡(你的应该是eth0),使用其中的“traceroute”工具来跟踪ipv6.google.com的路由转发情况。
理论上,第一跳应该是2001:250:2800:346::1 第二跳应该是2001:250:2800::1 第三跳应该是cernet2.net
如果第一跳都失败,是你自己机器的事。 第二跳是学校的路由器,可以找网管
 
https://www.cyberciti.biz/faq/ubuntu-ipv6-networking-configuration/

Ubuntu Linux Add Static IPv6 Address Network Configuration

 

How do I configure static IPv6 networking under Ubuntu Linux server operating systems? How to enable IPv6 for Ubuntu Linux version 14.04 or 16.04 LTS server? You need to simply edit /etc/network/interfaces file and add the IPv6 networking configuration. Here is our sample setup:

 

  

 

 

  • Ipv6 Address IP: 2607:f0d0:2001:000a:0000:0000:0000:0010/64
  • Ipv6 Gateway IP: 2607:f0d0:2001:000a:0000:0000:0000:0001
  • Interface name: eth0
  • IPv6 Type: Static
posted @ 2016-11-17 09:23  boowii  阅读(21713)  评论(0编辑  收藏  举报