From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 20:02:19 2008 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 53526106566B for ; Tue, 11 Mar 2008 20:02:19 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 3734F8FC1E for ; Tue, 11 Mar 2008 20:02:19 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 9BDCA65501 for ; Tue, 11 Mar 2008 15:02:18 -0500 (CDT) Date: Tue, 11 Mar 2008 15:02:18 -0500 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: In-Reply-To: <47D6DCAB.2000907@btinternet.com> References: <47D6DCAB.2000907@btinternet.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: newbie internet connection question 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: Tue, 11 Mar 2008 20:02:19 -0000 --On Tuesday, March 11, 2008 19:25:31 +0000 Andy Watts wrote: > Hi People > > l downloaded FreeBSD 6.3 the other day out of curiosity.. > > The installation started ok but it all went wrong when it came to connecting > to the internet through my wired router > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html > > l'm really not sure what entries to put in fig 2-29 that will allow my > connection. > > My email address is g7mjv@btinternet.com > > My router's address is 192.168.1.1 and running ifconfig on my linux machine > gives the following: > > eth0 Link encap:Ethernet HWaddr 00:01:6C:E2:58:25 inet > addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0 > inet6 addr: fe80::201:6cff:fee2:5825/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:5894 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4645 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:4431375 (4.2 MB) TX bytes:616025 (601.5 KB) > Interrupt:20 Base address:0xe400 > > lo Link encap:Local Loopback inet addr:127.0.0.1 > Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:48 errors:0 dropped:0 overruns:0 frame:0 > TX packets:48 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:5380 (5.2 KB) TX bytes:5380 (5.2 KB) > > Any pointers in the right direction would be greatly appreciated > If your router works like most do (and it appears that it does from the IP your linux box is getting), all you need to do is put this into /etc/rc.conf: ifconfig_em0="DHCP" (or rerun sysinstall and configure your ethernet card to do dhcp.) # sysinstall Choose Configure/Networking/Interfaces and set your NIC to do dhcp. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/