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