From owner-freebsd-questions@FreeBSD.ORG Wed Jan 5 07:55:44 2005 Return-Path: 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 1EA8A16A4CE for ; Wed, 5 Jan 2005 07:55:44 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3E6A43D31 for ; Wed, 5 Jan 2005 07:55:43 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 6C2C256437; Wed, 5 Jan 2005 20:55:42 +1300 (NZDT) Date: Wed, 5 Jan 2005 20:55:42 +1300 From: Jonathan Chen To: Joe Dunsmore Message-ID: <20050105075542.GA63156@osiris.chen.org.nz> References: <200501040851.59496.duns0014@umn.edu> <22139821652.20050105055753@hexren.net> <200501040958.21176.duns0014@umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501040958.21176.duns0014@umn.edu> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: How to get internet working on installed freebsd 5.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 07:55:44 -0000 On Tue, Jan 04, 2005 at 09:58:20AM +0000, Joe Dunsmore wrote: > On Wednesday, January 05, 2005 04:57 am, Hexren wrote: > > JD> I installed freebsd 5.1 on my computer when it was not connected to any > > JD> network (but my ethernet card was attached). Now that my computer has > > a JD> network connection, I can't access any internet sites, it says it > > can't find JD> the host. I've installed freebsd 5.1 on this same computer > > when it was JD> connected to a network and the internet worked right away. > > I also have linux JD> on this computer and it can connect to the internet > > fine. > > > > JD> So my question is how do I get the internet working on freebsd? Is > > there a JD> simple command I can run or do I edit some text file? Thanks. > > JD> _______________________________________________ > > > > --------------------------------------------- > > > > How exactly is the Computer connected ? (dsl, cable, isdn) > > Cable, with a router and modem in between. > > > Have you tested simple IP conectivity ? (ping 216.136.204.21 (that is > > freebsd.org)) > > It said there was no route to host. > Sounds like you've forgotten to put the following in your /etc/rc.conf: defaultrouter="192.168.1.1" If your Linux setup "automagically" works, then I suspect that your router is running DHCP. You can also set up FreeBSD to use DHCP with a ifconfig_xxx setting in /etc/rc.conf. Check out rc.conf(5) for more details. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "If everything's under control, you're going too slow" - Mario Andretti