Estou tentando configurar um túnel gre entre dois PCs Ubuntu: 1º com interface wlan1 192.168.1.51 e 2º com wlan2 192.168.1.2.
PC1:
ip link add gre1 type gretap remote 192.168.1.2 local 192.168.1.51
ip link set dev gre1 up
gre1@NONE: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1462 qdisc pfifo_fast state
UNKNOWN mode DEFAULT group default qlen 1000
link/ether 92:d0:28:8b:3e:a6 brd ff:ff:ff:ff:ff:ff promiscuity 0
gretap remote 192.168.1.2 local 192.168.1.51 ttl inherit
PC2:
ip link add gre1 type gretap remote 192.168.1.51 local 192.168.1.2
ip link set dev gre1 up
7: gre1@NONE: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1462 qdisc pfifo_fast
state UNKNOWN mode DEFAULT group default qlen 1000
link/ether ba:09:9a:66:85:02 brd ff:ff:ff:ff:ff:ff promiscuity 0
gretap remote 192.168.1.51 local 192.168.1.2 ttl inherit
Mas quando faço ping de .51 para .2, não vejo nenhum encapsulamento GRE. Está passando pela interface wlan.
PC1:
10.1.0.0/16 dev eth0 proto kernel scope link src 10.1.0.51 metric 1
192.168.1.0/24 dev wlan1 proto kernel scope link src 192.168.1.51