In article <[EMAIL PROTECTED]> you wrote:
> IP from IP1 instead of IP0 ?
Linux will use the ip of the interface the route is used through. You can
attach an alias interface to eth0 (eth0:1) with the IP1. Then add the route
to the gateway and to the internet to "dev eth0:1" instead of eth0.
If you want to rewrite the source address for foreigne (not locally
generated) packets too, then you will have to use masquerading in addition
to that above hack.
Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]