Configure gre tunneling on a virtual machine
For example, the network card ip of machine 1 is 10.1.1.10, and the network card ip of machine 2 is 10.1.1.11.
10.1.1.10 end:
Ip tunnel add gre1 mode gre key 123456 remote 10.1.1.11 local 10.1.1.10 ttl 255ip link set gre1 upip addr add 192.168.1.10 peer 192.168.1.11 dev gre1
10.1.1.11 end:
Ip tunnel add gre1 mode gre key 123456 remote 10.1.1.10 local 10.1.1.11 ttl 255ip link set gre1 upip addr add 192.168.1.11 peer 192.168.1.10 dev gre1