Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Configure gre tunneling on a virtual machine

Shulou Source: shulou.com Published: 2022-06-01 07:08:10 11月17日 Update

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

Tags: Machines network cards tunnels configurations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple NVidia vpn Xiaomi