From: Jim Redman Date: Wed, 30 Jul 2003 05:44:34 +0000 Subject: [LARTC] snooping - plan B Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On 2003.07.28 11:24, Jim Redman wrote: > > I have a computer with two interfaces, say with addresses 192.168.1.1 > and 192.168.1.2. I want to set up routing such that when I ping > 192.168.1.1 it goes out through 192.168.1.2 and not to the local > interface. Is this possible - all my attempts so far have been > unsuccessful? If so, pointers, etc. would be gratefully appreciated. > OK, assuming this to be impossible. Let's try the ARP approach. I want to set up eth0 with ip 192.168.3.1 nat all packet addressed to 192.168.1.1 to 192.168.3.1 and ARP the address of 192.168.1.1 into eth0. I still have some problems, any suggestions appreciated. Here's what I've tried (along with many variations): arp -i eth0 -Ds 192.168.1.1 eth0 pub ip route add nat 192.168.1.1 via 192.168.3.1 ip rule add from 192.168.3.1 nat 192.168.1.1 this alone is not sufficient, so I've tried adding routes for 192.168.1.1 ip route add 192.168.1.1 dev eth0 and so forth. I haven't yet been successful and would apprciate any help. Thanks, Jim -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/