From owner-freebsd-net Mon Apr 2 7: 4: 4 2001 Delivered-To: freebsd-net@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 55A3F37B718 for ; Mon, 2 Apr 2001 07:04:00 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f32F6oV97634; Mon, 2 Apr 2001 10:06:50 -0500 (CDT) (envelope-from nick@rogness.net) Date: Mon, 2 Apr 2001 10:06:49 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Daniel Wong Cc: freebsd-net@FreeBSD.ORG Subject: Re: Routing 4 machines... help! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 2 Apr 2001, Daniel Wong wrote: > Hi, > > I have four machines, configured as follows. > > Machine 1 (leaf node) (defaultrouter to internet gateway) > fxp0 129.94.232.13 > fxp1 172.21.10.24 > > Machine 2 (router) (defaultrouter to internet gateway) > fxp0 129.94.232.14 > fxp1 172.21.10.42 > fxp2 10.0.0.25 > > Machine 3 (router) (defaultrouter to internet gateway) > fxp0 129.94.232.14 > fxp1 172.23.10.26 > fxp2 10.0.0.52 > > Machine 4 (leaf node) (defaultrouter to internet gateway) > fxp0 129.94.232.5 > fxp1 172.23.10.62 > > Networks > 129.94.232/24 - internet world > 172.21/16 - network 1 (Machine 1/2) > 172.23/16 - network 2 (Machine 3/4) > 10/8 - network 3 (Machine 2/3) > > I need to get the machine 2 and 3 to route... but I can't get them to > work... > each machines all have working connections, I have tested this and each can > ping adjacent machines. I have enabled net.inet.ip.forwarding and have added > additional route (by using route add -net ...) > > When I try to ping from Machine 4 to Machine 1, it replies "sento: host is > down" You need to either run a routing protocol of some kind or add static routes on ALL 4 of your machines. For static routes, these should work: Machine 1: # route add -net 10.0.0.0 172.21.10.42 -netmask 255.0.0.0 # route add -net 172.23.0.0 172.21.10.42 -netmask 255.255.0.0 Machine 2: # route add -net 172.23.0.0 10.0.0.52 -netmask 255.255.0.0 Machine 3: # route add -net 172.21.0.0 10.0.0.25 -netmask 255.255.0.0 Machine 4: # route add -net 172.21.0.0 172.23.10.26 -netmask 255.255.0.0 # route add -net 10.0.0.0 172.23.10.26 -netmask 255.0.0.0 > > Can someone help me set this network up ?? I don't know what's wrong. I know > that it's not being sent out to the internet cause, it behaves differently > when I set add a route schema in. In my rc.conf I have enabled > router_enabled="YES" and router="gated" (also tried with "routed") the > network mask is set as above, though the defaultrouter is set to the router > of the external network (129.94.232.254) > What routing protocol do you have gated setup to run? Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message