Route everything from some VLANs to a tunnel

1

I've set up a tunnel:

$ ip tunnel add mytunnel mode gre remote x.x.x.x local y.y.y.y ttl 255
$ ip link set mytunnel up
$ ip address add 172.17.10.2/30 dev mytunnel
$ ifconfig mytunnel up

Now, I can ping 172.17.10.1, so the tunnel is up and running right. I want all of the IPs for a specified destination , 172.29.0.0/20, to go through this tunnel. Some are binded to some VLAN interfaces locally, some remote that use me as a gateway.

I've tried

$ ip ro add somedest/24 via 172.17.10.1 dev mytunnel

Doing ping somedest -I 172.29.5.22 fails, did a tcpdump and nothing shows up as going through the tunnel.

Am I doing it wrong? What could be the problem?

Adrian

Posted 2012-10-31T22:03:38.123

Reputation: 11

what are you using to configure this?
EDIT: where did 172.29.5.22 come from? is that a device on the other end of the tunnel?
– Sylvester the Cat – 2012-11-01T00:28:37.387

No answers