From owner-freebsd-questions Sat Oct 19 10:16:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EC0837B406 for ; Sat, 19 Oct 2002 10:16:55 -0700 (PDT) Received: from falla.videotron.net (falla.videotron.net [205.151.222.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5D6243E65 for ; Sat, 19 Oct 2002 10:16:54 -0700 (PDT) (envelope-from dinz@videotron.ca) Received: from there ([24.200.100.119]) by falla.videotron.net (Sun Internet Mail Server sims.3.5.1999.12.14.10.29.p8) with SMTP id <0H48003HHNYCO1@falla.videotron.net> for freebsd-questions@FreeBSD.ORG; Sat, 19 Oct 2002 13:15:49 -0400 (EDT) Date: Sat, 19 Oct 2002 13:12:08 -0400 From: "Daniel A. Inzirillo" Subject: Re: Can't get to Internet - Tinker with /etc/hosts? In-reply-to: <051901c2772e$f8aa8180$fa00a8c0@DaleCoportable> To: "DaleCo, S.P.---'the solutions people'" , Freebsd-Questions Message-id: <0H48003HINYDO1@falla.videotron.net> MIME-version: 1.0 X-Mailer: KMail [version 1.3.1] Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit References: <0H470052DPMF2J@falla.videotron.net> <051901c2772e$f8aa8180$fa00a8c0@DaleCoportable> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG And the answer is: NO, at least in my case. Problem solved. I am sending this for the benefit of any other newbee like me having the same problem. Problem description: * have two machines connected to the Internet through a cable/DSL router. * One of them is running a freshly installed, not yet custom configured, FreeBSD 4.7, with the network configured to try DHCP. * the other runs another OS. * The boxes are assigned the 192.168.1.100 and 192.168.1.101 addresses by the router. * They can ping each other. * The FBSD machine cannot get to the Internet, but the other machine can. Solution that worked for me: * Find out the internal IP address of your router. In my case it is 192.168.1.1 * Then add to /etc/rc.conf a line similar to this: defaultrouter="192.168.1.1" using the correct address. * Also, make sure that something like the following is present: ifconfig_xxx="DHCP" where xxx is the name of your network interface (dc0 in my case, use ifconfig to find out) (Kevin: Thank you for your messages) Question: What is the standard way to re-start the network interface to make sure that config files like rc.conf are read anew after being modified? Would ifconfig dc0 down ifconfig dc0 up do that? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message