From owner-freebsd-questions@FreeBSD.ORG Wed Nov 21 14:49:24 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A727816A468 for ; Wed, 21 Nov 2007 14:49:24 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 73B3B13C48A for ; Wed, 21 Nov 2007 14:49:24 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id AB414EBC3B for ; Wed, 21 Nov 2007 09:49:23 -0500 (EST) Date: Wed, 21 Nov 2007 09:49:22 -0500 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20071121094922.8e364a1d.wmoran@potentialtech.com> In-Reply-To: <2949641c0711210644y3ffe8d19ub409b581971e2b1d@mail.gmail.com> References: <2949641c0711210609xc9fcb89t8217cd0995d1c86b@mail.gmail.com> <474440FC.5090901@ibctech.ca> <2949641c0711210644y3ffe8d19ub409b581971e2b1d@mail.gmail.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: routing problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2007 14:49:24 -0000 In response to "Alaor Barroso de Carvalho Neto" : > Sorry my english skills, I'm brazilian and I'm not very familiar with the > language, but I'm gonna try to explain it clearly: > > LINUX SERVER > private network 192.168.1.1 > external network x.x.x.x > > FREEBSD SERVER > private network 192.168.1.240 > external network x.x.x.x > > DNS SERVER > private network 192.168.1.2 > > The LINUX machine is the network gateway, I want the FREEBSD to be the > gateway, so I tested the freebsd machine configuring some clients manually > to use the 192.168.1.240 as gateway, 3 machines, everything worked. So I > thought: time to replace the linux server. So I turned off the linux machine > and changed the ip of freebsd to 192.168.1.1, just it, and then it stop > working, it can resolv dns for some seconds and then stop. Something I've > noticed, when it's not the network gateway in fact, with just some machines > using it as gateway, the return of netstat -r is ok, with the routes of the > machines accessing it, the active conections, if I just change the ip and > turn off the LINUX machine, the netstat -r return me no routes at all. > Pretty strange. > > My nameserver is just > searchdomain xxxx.xxxx.xxxx.xxxx > nameserver 192.168.1.1 You've pointed the FreeBSD machine at itself for DNS. Do you have a DNS server running on this system? If not, you need to point it at a valid DNS server. If routes are missing then something is configured wrong. If you'd post the contents of /etc/rc.conf, it's more likely that we could provide more detailed assistance. -- Bill Moran http://www.potentialtech.com