ifconfig lo:0 10.1.2.3/24 up
ip tunnel add gre1 mode gre remote 1.1.1.1 local 2.2.2.2 ttl 225 dev enp13s0
ip addr add 10.1.2.3/24 peer 10.4.5.6/24 dev gre1
ip link set dev gre1 up
ip route add 10.4.5.6/24 dev gre1
B 上面:
12345
ifconfig lo:0 10.4.5.6/24 up
ip tunnel add gre1 mode gre remote 2.2.2.2 local 1.1.1.1 ttl 225 dev enp13s0
ip addr add 10.4.5.6/24 peer 10.1.2.3/24 dev gre1
ip link set dev gre1 up
ip route add 10.1.2.3/24 dev gre1