routing ips via gre only works with /24?
Hi everyone,
I was assigned two public IP networks. One set of IPs is from a /28 and the other set is a /24. I can successfully tunnel and ping internally both sets of IPs. BUT, from a remote machine, I can no longer ping the /28s, I can only ping the /24s.
This is what I run on the remote machine (with the networks I am trying to route)
this works:
route add -net 4.5.6.0/24 gw 10.0.0.4 dev tun1;
route add -net 4.5.6.0/24 dev tun1;
this doesn't:
route add -net 4.5.6.144/28 gw 10.0.0.4 dev tun1;
route add -net 4.5.6.144/28 dev tun1;
This is what I run on the local machine (trying to receive the new networks)
this works:
ip route add 4.2.6.0 via 10.0.0.3 dev tun1;
this doesnt
ip route add 4.5.6.144 via 10.0.0.3 dev tun1;
ip route add 4.5.6.144/28 via 10.0.0.3 dev tun1;
what am I missing? your experience and expertise is greatly appreciated.
|