From mboxrd@z Thu Jan 1 00:00:00 1970 From: "virdzek, roman" Date: Wed, 27 Nov 2002 16:44:24 +0000 Subject: Re: [LARTC] 2 internal NIC's in the same network Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org hi, ok thanks, it seem to be working now. why it will not working with: ip rule add iif eth2 lookup 2 ip rule add iif eth1 lookup 1 ? and another one question. i have turned on log martians, and kernel still write to me: martian source from ...........when I ping eth1 | eth2 ...but back get proper arp reply. thanks for reply bye >Sorry! Correction below: > >-Martin > > Tarek was correct when he mentioned that you'll need to use policy routing > in addition if both of the IPs you are using fall within the same network. > > # ip rule add from 10.0.0.2 lookup 2 > # ip rule add from 10.0.0.1 lookup 1 > # ip route add 10.0.0.0/24 dev eth1 src 10.0.0.1 table 1 > # ip route add 10.0.0.0/24 dev eth2 src 10.0.0.2 table 2 > > Turn on the ARP hiding functionality: > > # echo 1 > /proc/sys/net/ipv4/conf/all/hidden > > You'll need to do this *after* you have brought up the interfaces and > set the hidden flags explicitly. > > # echo 1 > /proc/sys/net/ipv4/conf/eth1/hidden > # echo 1 > /proc/sys/net/ipv4/conf/eth2/hidden > > > -- Roman Virdzek - System & Network Engineering ____________________________________________ JARON INTERNET GmbH Hanauer Landstrasse 196a D-60314 Frankfurt am Main Fon:+49-69-405866-36 ; Fax:+49-69-405866-29 Internet: www.jaron.de ; www.popularix.de ____________________________________________ ( I drive way too fast to worry about cholesterol. ) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/