I think the best answer is 'man route' route add -net 192.168.2.1 netmask 255.255.255.0 dev eth1 route add -net 192.168.1.1 netmask 255.255.255.0 dev eth0
A good friend once described the best way to understand routing: "be the packet". If your .1.x clients are trying to get to .2.1, and their gw is .1.1, .1.1 needs to know _where_ .2.x is. You tell it that in the first route statement above. The inverse is true, .2.x clients (and responses from the .1.x pings, etc) need to know where .1.x is, hence the second statment. I imagine that you also will have a 'default' setup for all other traffic going to the net? I assumed your netmasks above to be /24, replace with whatever it really is, likewise for the eth naming. Make sure that whatever eth device each network is on is listed correctly. (in other words if 192.168.1.1 is bound to eth0 and 192.168.2.1 is bound to eth1 the above is correct). HTH Adrian Hunt wrote: > Hi all, > > I've read a few TFM's ;-) but can't seem to figure it > out on my own. I have a very simple routing need, for > the time being, and yet I can't seem to figure it out. > > Without even addressing the firewall aspect at this > point, I'm simply trying to take one machine with 2 > network interfaces (192.168.1.1 and 192.168.2.1) and > convince it to route IP traffice such that 192.168.2.X > can ping, telnet to, print to, etc. 192.168.1.X. > > I've echo'd 1 > /proc/sys/net/ipv4/ip_forward, and > hoping for a miracle I installed 'routed' and started > it to no avail. All the firewall tables are > completely flushed. All machines have 192.168.x.1 set > as their default route, x being whichever subnet > they're attached to and configured properly on. The > routing box can see/ping all the desktops on both > networks, and vice-versa. I simply can't get traffic > from one desktop to another. > > Any help is appreciated! > > TIA! > > Adrian. > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > > -- Matthew Boeckman (816) 777-2160 Manager - Systems Integration Saepio Technologies _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list