All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Bridging two subnets selectively using routing
@ 2007-11-01  0:50 Joshua Kwan
  2007-11-02 20:24 ` Corey Hickey
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Joshua Kwan @ 2007-11-01  0:50 UTC (permalink / raw)
  To: lartc

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-04 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01  0:50 [LARTC] Bridging two subnets selectively using routing Joshua Kwan
2007-11-02 20:24 ` Corey Hickey
2007-11-03  0:39 ` Grant Taylor
2007-11-03  0:51 ` Grant Taylor
2007-11-03  4:35 ` Corey Hickey
2007-11-04 20:14 ` Grant Taylor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.