ROS + gre over ipv6, ipv6 established GRE tunnel on the basis of the

Thank God @ large masses elusive and full technical support. thank!

surroundings:

1, 5 Ali cloud north, apply ipv6 test, apply for ECS with public network ip ipv6

2, in order to facilitate the testing convenient, vps create $ 2.50 in vultr, with ipv6

step:

1, 5 North to Ali cloud platform, application ipv6 test, will probably need to open within 15 days;

2, create the vpc ipv6

3, assigned private IPv4 address only when a new instance, the IPv6 address is not assigned. To use an IPv6 address, you need to assign IPv6 addresses instances.

4, the configuration of the IPv6 address of the default when creating an instance within VPC network communication. If you want to access the public network or public network access via IPv6 address, IPv6 need to open public network bandwidth. (Please note that each create a vpc, need to open a public network bandwidth)

5, you can automatically configure IPv6 addresses and IPv6 addresses manually configured as an example, it is recommended that you use a more efficient auto-configuration tool to configure an IPv6 address.

I am here is centos7 x64, enter the system

wget http://ecs-image-utils.oss-cn-hangzhou.aliyuncs.com/ipv6/rhel/ecs-utils-ipv6?spm=a2c4g.11186623.2.10.56a735b6OzSQwL

mv ecs-utils-ipv6\?spm\=a2c4g.11186623.2.10.56a735b6OzSQwL ecs-utils-ipv6

chmod +x ./ecs-utils-ipv6
./ecs-utils-ipv6

The above command will automatically help you configure the ip ipv6

6, record the IP ipv6

ip add

eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:16:3e:00:1d:f9 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.142/24 brd 172.16.0.255 scope global dynamic eth0
valid_lft 315359980sec preferred_lft 315359980sec
inet6 2408:4004:180:8400:1803:c587:3558:2201/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fe00:1df9/64 scope link
valid_lft forever preferred_lft forever

3, record ipv6 gateway

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
IPV6INIT=yes
IPV6ADDR=2408:4004:180:8400:1803:c587:3558:2201/64
IPV6_DEFAULTGW=2408:4004:180:8400:ffff:ffff:ffff:fff7

Or use the route -6 -n to see Gateway

4, China's ipv6 dns server

240c::6666

240c::6644

5, add the security group rules

Please note, a security group must allow any ipv4 and any ipv6 allow access ! (Please do not forget ipv6)

6, Configuring IPv6 security group https://help.aliyun.com/document_detail/100523.html

7, there is more information in the future, through the command-line installation ROS CHR version

See my other blog: Ali cloud the next key proprietary network install RouterOS-ROS system

https://www.cnblogs.com/itfat/p/8184227.html

8, record some information of vultr of ipv6

 eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 56:00:02:29:1a:b9 brd ff:ff:ff:ff:ff:ff
inet 108.61.183.207/23 brd 108.61.183.255 scope global dynamic eth0
valid_lft 83948sec preferred_lft 83948sec
inet6 2001:19f0:7002:12e2:5400:2ff:fe29:1ab9/64 scope global mngtmpaddr dynamic
valid_lft 2591781sec preferred_lft 604581sec
inet6 fe80::5400:2ff:fe29:1ab9/64 scope link
valid_lft forever preferred_lft forever

route -6 -n gateway
fe80 :: fc00: 2ff: fe29: 1ab9

9, in the same manner, the installation of ROS vultr

See my other blog: Ali cloud the next key proprietary network install RouterOS-ROS system

https://www.cnblogs.com/itfat/p/8184227.html

10, the configuration ROS

IPV4 is not presented here

This is the first Ali cloud of IPV6 follows:

Add the ip ipv6

Add the default route ipv6

Create a GRE tunnel, and fill vultr of ipv6

Creating the tunnel IP IPV6

11, vultr this head ROS

Start by adding ipv6

添加静态路由,vultr的网关比较怪异,请注意写法,它的ipv6的默认网关是局域网的ip,所以需要使用%ether1,来指定你数据发往的网卡!!!

创建GRE的对端隧道,写上阿里云那头的ipv6

添加GRE隧道的这头的IP,10.1.1.1和10.1.1.2互为IPIP。

隧道两头都是R的状态以后,可以互相ping通隧道IP:延迟大概200多ms,但是很稳定,我选用的是日本的vultr,这个延迟真心一般。

隧道通了以后,能干的事情就多了。。。。这里就不多说了。

综上,IPV6隧道很是很稳定的,就是延迟还是很大。可能有延迟小的吧。我还没找到。不知道香港地区有没有快的IPV6,或者阿里云快点开通香港的IPV6。我下次可以试试。

Guess you like

Origin www.cnblogs.com/itfat/p/11121809.html