From owner-freebsd-questions@FreeBSD.ORG Wed Aug 11 16:25:09 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 A0E3216A4CE for ; Wed, 11 Aug 2004 16:25:09 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E4FE43D2D for ; Wed, 11 Aug 2004 16:25:09 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id D6C6869A71; Wed, 11 Aug 2004 12:25:07 -0400 (EDT) Date: Wed, 11 Aug 2004 12:25:06 -0400 From: Bill Moran To: "Hakim Z. Singhji" Message-Id: <20040811122506.4b82b53a.wmoran@potentialtech.com> In-Reply-To: <9176816.1092240402881.JavaMail.root@fozzie.psp.pas.earthlink.net> References: <9176816.1092240402881.JavaMail.root@fozzie.psp.pas.earthlink.net> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 16:25:09 -0000 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