From owner-freebsd-questions Tue Aug 24 10:25:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.aye.net (phoenix.aye.net [206.185.8.134]) by hub.freebsd.org (Postfix) with SMTP id F1E4115B70 for ; Tue, 24 Aug 1999 10:25:07 -0700 (PDT) (envelope-from barrett@phoenix.aye.net) Received: (qmail 11422 invoked by uid 1000); 24 Aug 1999 15:30:18 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Aug 1999 15:30:18 -0000 Date: Tue, 24 Aug 1999 11:30:18 -0400 (EDT) From: Barrett Richardson To: Keith Hutchison Cc: freebsd-questions@FreeBSD.ORG, greg@safetyweb.com.au Subject: Re: Using a second FreeBSD box to piggy back through a first FreeBSD box to see the internet In-Reply-To: <199908241734210370.058927E8@192.168.0.254> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 24 Aug 1999, Keith Hutchison wrote: > Hi, > > We are looking for a method to enable a second network to talk through our first network to our isp. > > The first network works fine. We have been able to get the two unix boxes to talk to each other and the second unix box can see the internet. We are just having trouble with the second network talking. > > Gut feel is a routing problem, can anyone send examples of how they did it and what programs they used. We are using ppp -alias -auto. Do we need to use natd instead of ppp -alias? > > Keith Hutchison > > Line breaks, please, I beg of you. On the "second" unix box. It should have two IP addresses. Say the problematic network is network y.y.y.0 and the network that works is x.x.x.0 and the second box has IP addresses x.x.x.a and y.y.y.b. On the second unix box Try a 'ping -S x.x.x.a ip_of_ppp_box' it should work for obvious reasons. Next try 'ping -S y.y.y.b ip_of_ppp_box'. If that does not work, then the box running ppp does not have a route to network y.y.y.0. Add it by route add -net y.y.y.0 x.x.x.a If the networks are subnets of the same class C I would ensure the the netmasks are set correctly. - Barrett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message