九溪

溪水润知林,滴露启慧心

用户工具

站点工具


wiki:linux:ipv6-support

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
wiki:linux:ipv6-support [2019/10/08 21:48] colinwiki:linux:ipv6-support [2023/01/03 15:25] (当前版本) – 外部编辑 127.0.0.1
行 57: 行 57:
  
 保存后,执行以下命令 保存后,执行以下命令
-  resolveconf -u+  resolvconf -u
      
 重启网络 重启网络
行 92: 行 92:
 如果需要指定域名通过IPv6 访问,修改Hosts文件即可。 如果需要指定域名通过IPv6 访问,修改Hosts文件即可。
   vi /etc/hosts   vi /etc/hosts
-刷新DNS缓存 ? + 
-  /etc/init.d/nscd restart+如强制使用IPV6访问谷歌,也非常简单,在/etc/hosts里添加 
 +  # Google 
 +  2607:f8b0:4005:811::200e google.com 
 +  2607:f8b0:4005:80c::2004 www.google.com 
 +  # Google Scholar 
 +  2607:f8b0:4005:80a::200e scholar.google.cn       
 +  2607:f8b0:4005:80a::200e scholar.google.com      
 +  2607:f8b0:4005:80a::200e scholar.google.com.hk   
 +  2607:f8b0:4005:80a::200e scholar.google.com.sg   
 +  2607:f8b0:4005:80a::200e scholar.google.com.tw   
 +  2607:f8b0:4005:80a::200e scholar.google.com.uk   
 +  2607:f8b0:4005:80a::200e scholar.l.google.com 
 + 
 + 
 +Linux刷新dns的缓存方法是: 
 +  sudo /etc/init.d/nscd restart 
 + 
 +如果发现提示命令找不到:sudo: /etc/init.d/nscd: command not found 
 + 
 +需要先安装nscd包: 
 +  sudo apt-get install nscd 
 + 
 +最暴力的方法刷dns,重启网络: 
 +  sudo /etc/init.d/networking restart
  
 查询可用的ip地址 查询可用的ip地址
行 100: 行 123:
 参考: 参考:
   * [[https://www.itkylin.com/xiao_bai_jiao_cheng_rang_vps_zhi_chi_ipv6.html|小白教程,让VPS支持IPv6]]   * [[https://www.itkylin.com/xiao_bai_jiao_cheng_rang_vps_zhi_chi_ipv6.html|小白教程,让VPS支持IPv6]]
 +  * [[https://www.sudops.com/config-ipv6-via-he-tunnel.html|利用HE.net的Tunnel配置IPv6(debain)]]
   * [[https://hostloc.com/thread-467395-1-1.html|VIRMACH访问Google老显示异常流量 IPV6可破]]   * [[https://hostloc.com/thread-467395-1-1.html|VIRMACH访问Google老显示异常流量 IPV6可破]]
  
行 109: 行 133:
   sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf   sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
   sudo resolvconf -u   sudo resolvconf -u
 +  
 +**无法使用ifconfig时,尝试运行以下命令**
 +  sudo apt install net-tools
  
  
wiki/linux/ipv6-support.1570542502.txt.gz · 最后更改: 2023/01/03 15:24 (外部编辑)