route source ignored?

From: David Ford (david@kalifornia.com)
Date: Thu Jul 20 2000 - 07:04:32 EST


In recent kernels, adding the src directive for routes has no effect.
The packets exit with the IP of the interface they are exiting.

Is this intentional? It breaks a few things.

e.g.:

    ip route add 208.179.0.0/24 dev gre1 src 208.179.68.72

The IP of the interface the GRE packets exit is 68.66. The tunnel is
configured with the local address of .72. When the kernel allows
packets to exit, they come with the source of .66 instead of .72

Most of the time the following appear if I set the tunnel local address
of .66 and there's no communication with the tunnel peer.
Jul 20 03:48:14 ns kernel: NET: 77 messages suppressed.
Jul 20 03:48:14 ns kernel: ipgre_tunnel_xmit: ip_send() failed, err=1

Strangely however, sometimes the tunnel does work and readily transmits
packets with .66.

The current kernel this machine is on is test4-pre6.

-d

--
"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:13 EST