From owner-freebsd-questions@FreeBSD.ORG Wed Nov 21 14:44:17 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 F04DB16A41B for ; Wed, 21 Nov 2007 14:44:16 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id BE7FF13C461 for ; Wed, 21 Nov 2007 14:44:16 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2120196rvb for ; Wed, 21 Nov 2007 06:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=9mIB6itYgTEAjKCZN0j6zN7W5lsNcIjorZlQR212ojs=; b=sq1JOaMxSc1P+KBcsE0OoqWok1w/jGus78dbdKYRm8mV7HjIofmp7Tq4uwG0dH2mqc3OEPpe23ybR5vcGe0YodZPQTpxDs/znPDq3a8CvbUslisj+e7KdvjDhTMfJnP7VQ22FNkUvpuPc7orHxA8yvm8ByVEeZrlrLGbqSAS7DQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RkrBbeEOO9iYi31AS0lyzX7qdOAn3keTp7ACWw/HWjpGTO71RZnNS2JlPS1jUsQZkiIctPmpV6THcZ6rKwSbZeezUApYd4DUSMoLw5NdYaq3wVtvmAY2I3hNBa3CbFsEFk/jSmy0v5qDb8n25CBc4UrGByl5sgIHzO5su2mi9uA= Received: by 10.140.133.11 with SMTP id g11mr665602rvd.1195656256261; Wed, 21 Nov 2007 06:44:16 -0800 (PST) Received: by 10.141.136.20 with HTTP; Wed, 21 Nov 2007 06:44:16 -0800 (PST) Message-ID: <2949641c0711210644y3ffe8d19ub409b581971e2b1d@mail.gmail.com> Date: Wed, 21 Nov 2007 12:44:16 -0200 From: "Alaor Barroso de Carvalho Neto" To: "Steve Bertrand" In-Reply-To: <474440FC.5090901@ibctech.ca> MIME-Version: 1.0 References: <2949641c0711210609xc9fcb89t8217cd0995d1c86b@mail.gmail.com> <474440FC.5090901@ibctech.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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:44:17 -0000 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 2007/11/21, Steve Bertrand : > Alaor Barroso de Carvalho Neto wrote: > > If I turn off linux and set the rl0 to 192.168.1.1 it > > stop resolving names but can ping to anywhere. Help!!! > > in the rc.conf > > gateway_enable="YES" > > defaultrouter="X.X.X.X" > > I don't know if I quite understand on which machine things are breaking, > but if it is a FreeBSD box, can you post the output to: > > # cat /etc/resolv.conf > > ...and > > # dig @192.168.1.2 google.ca > > Steve >