Re: Default outgoing IP address?

Miquel van Smoorenburg (miquels@cistron-office.nl)
Mon, 26 Nov 2001 22:32:56 +0000 (UTC)


In article <Pine.LNX.4.40.0111261612390.15983-100000@waste.org>,
Oliver Xymoron <oxymoron@waste.org> wrote:
>On a machine with multiple interfaces, is it possible to set the default
>outgoing IP address to something other than the address for the interface
>on the outgoing route?

ip route add default via IP.OF.GATE.WAY dev DEVICE src SOURCE.IP.ADDR.ESS

Mike.

-- 
"Only two things are infinite, the universe and human stupidity,
 and I'm not sure about the former" -- Albert Einstein.

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