From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Volf Date: Sat, 12 Jun 2004 13:26:37 +0000 Subject: Re: [LARTC] routing within the same network? is it possible? Message-Id: <40CB048D.2050507@inv.cz> List-Id: References: <20098237.1086963665384.JavaMail.root@kermit.psp.pas.earthlink.net> In-Reply-To: <20098237.1086963665384.JavaMail.root@kermit.psp.pas.earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Victor Catten wrote: > Hello, > > Is routing within the same network possible? > If it is, what configuration should I put for the firewall/router shown > below? I basically want the host debian13 to be able to send packets via > a multi-homed firewall. I think the multi-homed firewall involve some > routing. > +-------------------+ > |debian13 | > |eth0:192.168.0.13 | > +-------------------+ > |eth0 > | > |eth0 > +--------------------------+ > |firewall/router(linux-box)| > |which configuration here? | > +--------------------------+ > |eth1 > | > +----------------------+ > | | > |eth0 |eth0 > +-------------------+ +-------------------+ > |eth0:192.168.0.15 | |eth0:192.168.0.16 | > |debian15 | |debian16 | > +-------------------+ +-------------------+ Hello, see http://lartc.org/howto/lartc.bridging.proxy-arp.html or try this: on router: ifconfig eth0 192.168.0.1 netmask 255.255.255.255 -broadcast ifconfig eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 route add -host 192.168.0.13 device eth0 echo 1 >/proc/sys/net/ipv4/conf/eth0/proxy_arp echo 1 >/proc/sys/net/ipv4/conf/eth1/proxy_arp echo 1 >/proc/sys/net/ipv4/ip_forward on debianXY: ifconfig eth0 192.168.0.XY netmask 255.255.255.0 broadcast 192.168.0.255 HTH, -- Martin _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/