From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 17:03:32 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 3710C16A4CE for ; Thu, 12 Aug 2004 17:03:32 +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 1019D43D58 for ; Thu, 12 Aug 2004 17:03:32 +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 1BvIzC-0003a4-00; Thu, 12 Aug 2004 10:03:30 -0700 Message-ID: <11077407.1092330210543.JavaMail.root@skeeter.psp.pas.earthlink.net> Date: Thu, 12 Aug 2004 13:03:30 -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: 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 17:03:32 -0000 Hi Bill, >What is the output of "ipfw show"? I dont know that command? Syntax??? ######################### root@redgate% ipfw show ######################### is that correct? >You may do better to set: >firewall_enable="YES" >firewall_type="OPEN" Ok I will... I wrote to Earthlink and this is what they had to say: >Earthlink: I suggest you reset the cable modem and then >try connecting to the net. >Earthlink:In order to fix this your cable modem needs to >be reset. First shut down your computer and then disconnect >the power from the cable modem for 1 to 3 minutes. This will >reset the modem. Next, reconnect the power to the cable modem >and turn on your computer. If this does not resolve the issue, >please let us know so we can dig a little deeper. What do you think of this??? -----Original Message----- From: Bill Moran Sent: Aug 12, 2004 12:29 PM To: "Hakim Z. Singhji" Cc: freebsd-questions@freebsd.org Subject: Re: DHCP and rc Questions For FreeBSD 4.10??? "Hakim Z. Singhji" wrote: > >Who manages your DHCP server? The config I described has worked in > >every configuration I've ever dealt with (and that's quite a few) so > >there is definately something external causing the problem. > > I have an Earthlink Highspeed Cable account w/ DHCP Server > > >Did you install a packet filter when you set this box up? > > Yes, however I turned firewall to [firewall_enable="NO"] and commented > all firewall entries in the rc.conf file. What is the output of "ipfw show"? You may do better to set: firewall_enable="YES" firewall_type="OPEN" > >If you don't have a DHCP _server_ on your network, then the DHCP _client_ > >will not be able to to its job. > > Earthlink should provide a DHCP server, when I had my standalone redhat > box it was configured and I was also receiving DNS as well through earthlink. > > > What do you suggest I do? > > -----Original Message----- > From: Bill Moran > Sent: Aug 12, 2004 11:45 AM > To: "Hakim Z. Singhji" > Cc: freebsd-questions@freebsd.org > Subject: Re: DHCP and rc Questions For FreeBSD 4.10??? > > "Hakim Z. Singhji" wrote: > > 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 > MULTICAST> 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..." > > You've gone too far ... there's not use trying to ping anything if you > obviously didn't get a DHCP address. > > Who manages your DHCP server? The config I described has worked in > every configuration I've ever dealt with (and that's quite a few) so > there is definately something external causing the problem. > > Did you install a packet filter when you set this box up? Look through > /etc/rc.conf for anything related to "firewall". Turn off all firewall > rules while you're setting things up. Once it works, you can start > turning security stuff like that back on. > > > 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. > > DHCP only works if there is a DHCP server. DO NOT run more than 1 > DHPC server on a single network or everything is likely to go to hell. > > Most cheesy "internet routers" that people buy include a DHCP server. > > If you provide more information about what your network setup is, we > can tell you whether you need a DHCP server or not. But the simple > answer is: DHCP won't work unless there is a DHCP server somewhere. > > > Now I have 2 questions: > > *must I configure dhcpd now? > > Maybe not. Does the network you're plugging in to require DHCP? > > > *must I configure dns (resolv.conf, named, etc.)? > > No. If you don't mind using IP addresses for everything. If you want > to be able to use hostnames (such as www.yahoo.com) then you need DNS. > > > *does DHCP rely on the two configurations list above to data? > > Huh? > > The two lines I provided are enough to configure FreeBSD to be a DHCP > _client_. Any additional configuration is just tweaking its behaviour > and and is almost never required. > > If you don't have a DHCP _server_ on your network, then the DHCP _client_ > will not be able to to its job. > > If you have a very small network (how many computers are here anyway?) > a DHCP server is probably more work than it's worth. > > If you are plugged into a larger network (such a the Internet through an > ISP) then either a) your ISP's DHCP isn't working right or b) your ISP > isn't using DHCP or c) your ISP is doing something to enforce security, > such as registering MAC addresses, and you aren't registered correctly > or d) something bizaar that I've never seen before. > > Again, if you could provide some information on how you're trying to set > things up, we could provide less general answers. > > -- > 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" -- Bill Moran Potential Technologies http://www.potentialtech.com