Linux创建IPv6 over IPv4 GRE隧道
程序员文章站
2024-02-14 12:43:10
...
1.Host A配置如下
shell> ip tunnel add gre1 mode gre remote 172.17.1.2 local 172.17.1.1 ttl 255
shell> ip link set gre1 up
shell> ip addr add 2000::1/126 dev gre1
2.Host B配置如下
shell> ip tunnel add gre1 mode gre remote 172.17.1.1 local 172.17.1.2 ttl 255
shell> ip link set gre1 up
shell> ip addr add 2000::2/126 dev gre1
3.隧道口ping测
Host A
shell> ping6 2000::2
Host B
shell> ping6 2000::1
下一篇: 初识 OpenFeign 服务接口调用