博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ESC ubuntu16.04 ipv6配置
阅读量:4005 次
发布时间:2019-05-24

本文共 998 字,大约阅读时间需要 3 分钟。

一.首先你需要通过下面的网址申请一个ipv6地址,方法是通过这个网址创建通道

1. 创建一个账号,创建完成后登录即可

在这里插入图片描述

2 在刚刚的登陆后的界面选择create regular tunnel

在这里插入图片描述

3. 在你的阿里云ECS控制台先找到你的公网IP

在这里插入图片描述

4. 将2中的公网IP复制到ipv4 endpoint输入框中

在这里插入图片描述

注:填写 IP 时出现 IP is a potential tunnel endpoint. 说明可以添加 ipv6 隧道。

5 关于隧道节点的选择,大家可以在自己的云服务器上分别 ping 一下提供的 IP,选时延低的,这里我选择Asia, HK

在这里插入图片描述

6. 点击Create Tunnel

在这里插入图片描述

7. 将配置文件复制下来,因为我是ubuntu,所以选择Debian/ubuntu在这里插入图片描述

至此,通道申请结束

二.修改ubuntu中配置

1.

vim /etc/network/interfaces

将1.7的配置文件中的内容复制到最后(vim的使用可以先去熟悉一下)

这里要注意,配置信息全部复制,但local 后面要改为ESC的内网地址,(如果出现Destination unreachable: Address unreachable,则多半是因为复制的时候,local写的是公网的地址而不是内网地址)在这里插入图片描述

2.

vim /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1

改为

net.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 0

3.

nameserver 2001:4860:4860::8844nameserver 2001:470:20::2

分别添加到

vim /etc/resolvconf/resolv.conf.d/base

以及

vim /etc/resolv.conf

的末尾

重启,

ping6 -c 5 2001:4860:4860::8888ping6 -c 5 ipv6.google.com

都能ping通即配置成功

转载地址:http://hdzfi.baihongyu.com/

你可能感兴趣的文章
[LeetCode By Python]9. Palindrome Number
查看>>
[leetCode By Python] 14. Longest Common Prefix
查看>>
[LeetCode By Python]107. Binary Tree Level Order Traversal II
查看>>
[LeetCode By Python]108. Convert Sorted Array to Binary Search Tree
查看>>
[leetCode By Python]111. Minimum Depth of Binary Tree
查看>>
[LeetCode By Python]118. Pascal's Triangle
查看>>
[LeetCode By Python]121. Best Time to Buy and Sell Stock
查看>>
[LeetCode By Python]122. Best Time to Buy and Sell Stock II
查看>>
[LeetCode By Python]125. Valid Palindrome
查看>>
[LeetCode By Python]136. Single Number
查看>>
[LeetCode By Python]167. Two Sum II - Input array is sorted
查看>>
[LeetCode BY Python]169. Majority Element
查看>>
[LeetCode By Python]172. Factorial Trailing Zeroes
查看>>
[LeetCode By MYSQL] Combine Two Tables
查看>>
python jieba分词模块的基本用法
查看>>
[CCF BY C++]2017.12 最小差值
查看>>
[CCF BY C++]2017-12 游戏
查看>>
如何打开ipynb文件
查看>>
[Leetcode BY python ]190. Reverse Bits
查看>>
面试---刷牛客算法题
查看>>