3t4342 发表于 2015-1-26 08:43:04

虚拟机上配置gre隧道

例如机器1的网卡ip为10.1.1.10, 机器2的网卡ip为10.1.1.11


10.1.1.10端:

1
2
3
ip tunnel add gre1 mode gre key 123456 remote 10.1.1.11 local 10.1.1.10 ttl 255
ip link set gre1 up
ip addr add 192.168.1.10 peer 192.168.1.11 dev gre1







10.1.1.11端:

1
2
3
ip tunnel add gre1 mode gre key 123456 remote 10.1.1.10 local 10.1.1.11 ttl 255
ip link set gre1 up
ip addr add 192.168.1.11 peer 192.168.1.10 dev gre1



页: [1]
查看完整版本: 虚拟机上配置gre隧道