From mboxrd@z Thu Jan 1 00:00:00 1970 From: helmut djurkin Subject: Re: unable to route traffic between two networks on Red Hat 6.2 Date: 10 Apr 2002 00:01:03 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1018389664.1692.355.camel@igor3> References: <3CB2F02F.F05435A6@quarterleaf.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3CB2F02F.F05435A6@quarterleaf.com> List-Id: Content-Type: text/plain; charset="us-ascii" To: Ian Zapczynski Cc: linux-admin@vger.kernel.org On Tue, 2002-04-09 at 15:44, Ian Zapczynski wrote: > Hello all. > > I am a Sun administrator needing to get a router set up on Red Hat 6.2. > I am simply trying to join two private networks, 192.168.0.0 and > 10.1.1.0. The router I have configured has eth0 at 10.1.1.100 and eth1 > at 192.168.1.1. I do not need to be able to route traffic to the > internet using NAT -- I only need a DHCP server on my 192.168.0.0 > network to give out IP addresses on that network (this works fine) that > will allow users to access the 10.1.1.0 network. > > On my router, currently I can ping an address on the 10.1.1.0 network, > but not when I use something like ping -I 192.168.1.1 10.1.1.1 to do > so. This should work, right? > > /etc/sysconfig/network looks like: > > NETWORKING=yes > HOSTNAME=myhost.mydomain > GATEWAYDEV=eth0 > GATEWAY=10.1.1.1 > FORWARD_IPV4=YES > > /etc/sysconfig/static-routes has: > > eth1 net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 > eth0 net 10.1.1.0 netmask 255.255.255.0 gw 10.1.1.100 no need to set static-routes. your interface config do these settings in /etc/sysconf/network-scripts/ifup-routes automatic. with your settings in static-routes you have double entries in the output from /sbin/route. the correct entrys from /sbin/route -n would be somethink like this: 10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 10.1.1.1 0.0.0.0 UG 0 0 0 eth0 bye, helmut -- ASCII ribbon campaign ( ) - against HTML email X & vcards / \