From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 15:08:13 2004 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 7804A16A4CE for ; Thu, 12 Aug 2004 15:08:13 +0000 (GMT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C41643D55 for ; Thu, 12 Aug 2004 15:08:11 +0000 (GMT) (envelope-from hakim.singhji@earthlink.net) Received: from skeeter.psp.pas.earthlink.net ([207.217.78.186]) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BvHBU-000190-00; Thu, 12 Aug 2004 08:08:04 -0700 Message-ID: <7393824.1092323284781.JavaMail.root@skeeter.psp.pas.earthlink.net> Date: Thu, 12 Aug 2004 11:08:04 -0400 (GMT-04:00) From: "Hakim Z. Singhji" To: Bill Moran Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Zoo Mail 1.0 cc: ds@hscbklyn.edu cc: freebsd-questions@freebsd.org Subject: Re: DHCP and rc Questions For FreeBSD 4.10??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Hakim Z. Singhji" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 15:08:13 -0000 Bill & FreeBSD-Questions, This configuration is not as intuitive as I thought it would be. In /etc/rc.conf I added the following strings: ############################ network_interfaces="lo0 dc0" ifconfig_dc0="DHCP" ############################ "Then I deleted the entries in dhclient.conf and relied on the default. I started the daemon by [dhclient dc0] and it seemed to be processing. However, that was all that happened. When I [ifconfig dc0] I get this return:" ############################# root@redgate% ifconfig dc0 dc0 flags = 8843 MTU 1500 inet6 fe:80::2c0:f0ff:fe79:4ab7%dc0 prefixlen 64 scopeid 0x1 inet 0.0.0.0 net mask 0xff000000 broadcast 255.255.255.255 ether 00:01:02:c3:40:1a media Ethernet auto select (100base) status: active ############################### "Then I tried to ping a host..." ############################### root@redgate% ping www.yahoo.com root@redgate% ping 24.199.105.1 root@redgate% ping www.absolutebsd.org Ping: Cannot resolve www.yahoo.com hostname lookup failure, etc. ############################### "However somehow when I run a report the system indicates that UDP packets are being transmitted but the statistics are highly skewed at a rate of 11290 IKPTS : 38 OPKTS" I was reading Greg Lehey's book "The Complete FreeBSD" which happens to have more information on DHCP,DNS, BIND than "Absolute BSD" by Michael Lucas and Greg says that in order for dhcp to work you must start dhcpd, am I reading this correctly. I assumed that dhcpd would provide DHCP for the private network (in my case), I did not think that my default gateway would rely on dhcpd in order to function. Now I have 2 questions: *must I configure dhcpd now? *must I configure dns (resolv.conf, named, etc.)? *does DHCP rely on the two configurations list above to data? Thank you in advance for your help? HZS -----Original Message----- From: "Hakim Z. Singhji" Sent: Aug 11, 2004 12:32 PM To: Bill Moran Cc: ds@hscbklyn.edu, freebsd-questions@freebsd.org Subject: Re: DHCP and rc Questions For FreeBSD 4.10??? Alright, thank you Bill...I will let you know how I fair. Cheers -----Original Message----- From: Bill Moran Sent: Aug 11, 2004 9:25 AM To: "Hakim Z. Singhji" Cc: freebsd-questions@freebsd.org, ds@hscbklyn.edu Subject: Re: DHCP and rc Questions For FreeBSD 4.10??? Wrap your likes around 72 characters. All you need in /etc/rc.conf is: network_interfaces="lo0 dc0" ifconfig_dc0="DHCP" Everything else you added is just re-affirming the default values. "Hakim Z. Singhji" wrote: > Hi All, > > I've been researching this issue although it may be minor I don't like to rely on the "questions@freebsd.org" unless I have to. I'm sure you understand...anyway, http:www.freebsddiary.com has a tutorial that with info I could not find in "The Complete FreeBSD" or "Absolute BSD". It described two entries; one in dhclient.conf and the other in rc.conf. See Below: > > ########################### > dhclient.conf > ########################### > interface "dc0"{ > send host-name "redgate"; > request subnet-mask, broadcast-address, routers, domain-name-servers, domain-name, time-servers; > require domain-name-servers; > > ########################### > rc.conf > ########################### > ifconfig_dc0="DHCP" #IS THIS VARIABLE DECLARATION CASE SENSITIVE??? > hostname="redgate" > > ########################### > > The question I have now is if this is all I have to do to get dhcp running at startup? I anyone else has any suggestions they are welcome. Unfortunately I cannot test this until the evening so feedback will be very helpful and will save me some time researching. Thanks in advance. > > -----Original Message----- > From: "Hakim Z. Singhji" > Sent: Aug 11, 2004 11:24 AM > To: freebsd-questions@freebsd.org > Subject: DHCP and rc Questions For FreeBSD 4.10??? > > Hi All, > > I have installed FreeBSD 4.10 to serve as a headless gateway/router/firewall/NAT. The first problem that I have run into can probably be resolved easily. I tried to configure my NIC card via sysinstaller. However, rc.conf does not have a startup variable for "dc0". Therefore dhclient is inoperable. > > I built this box to be headless therefore it is low-tech with no floppy or flash drive and is currently a stand-alone machine so I am not able to copy the rc.conf file to this post. "dc0" is working because I can bring its status to active manually: 'root@redgate% ifconfig dc0 ether up'. > > I was wondering what what variables should be assigned to rc.conf, the related variables I have thus far are: > > ########################## > ifconfig_dc0="dhcp" > dhcp_program="/sbin/dhclient" > dhcp_flags=" " > ########################## > > It would be appreciated if someone could attach or copy an rc.conf file for a similar system configuration. Thanks in advance. > > HZS > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bill Moran Potential Technologies http://www.potentialtech.com _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"