From mboxrd@z Thu Jan 1 00:00:00 1970 From: joshk@triplehelix.org (Joshua Kwan) Date: Thu, 01 Nov 2007 00:50:39 +0000 Subject: [LARTC] Bridging two subnets selectively using routing Message-Id: <20071101005039.GA4906@triplehelix.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi LARTC, I have two networks that I manage, A and B. They both have their own primary gateways for hosts on the network, let's call them AR and BR. There is another box, A1, which lives on network A but also has a wire connecting it to a switch on network B. My goal is to let hosts on B access three particular hosts on A's subnet (192.168.4.0/24) and let hosts on A access one particular host on B's subnet (10.3.0.0/24). Suppose the IP addresses of the machines I wish to address on either network are A2, A3, A4 and B1. A1 has IP 10.3.0.13 on network B and 192.168.4.10 on network A. Is it possible to just tell the gateways for each network: on BR: ip route add {A2, A3, A4} via 10.3.0.13 on AR: ip route add B1 via 192.168.4.10 But when I do that, ping does something like: PING A2 56(84) bytes of data. >From BR: Redirect Host (new nexthop: 10.3.0.13) and doesn't actually report success on the ping. What am I doing wrong? Is this a job for iptables? I feel like I can do this with just routing table magic. Thanks, -- Joshua Kwan _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc