From owner-freebsd-questions Mon Aug 28 6:51:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web120.yahoomail.com (web120.yahoomail.com [205.180.60.121]) by hub.freebsd.org (Postfix) with SMTP id DC1EB37B422 for ; Mon, 28 Aug 2000 06:51:50 -0700 (PDT) Received: (qmail 2188 invoked by uid 60001); 28 Aug 2000 13:51:50 -0000 Message-ID: <20000828135150.2187.qmail@web120.yahoomail.com> Received: from [207.46.252.44] by web120.yahoomail.com; Mon, 28 Aug 2000 06:51:50 PDT Date: Mon, 28 Aug 2000 06:51:50 -0700 (PDT) From: Marco DiPlacido Subject: Re: dhcpd help To: Nathan Vidican , Chris Hill Cc: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG cool. i'll give this a try. i never thought of putting the dhcpd on my other "internal" FreeBSD machine... good stuff! --- Nathan Vidican wrote: > Chris Hill wrote: > > > > On Fri, 25 Aug 2000, Marco DiPlacido wrote: > > > > > i'm a mediaone road runner subscriber running > dhclinet > > > and natd. i'm using the following for the > > > configuration of my internal network nic vx0: > > > > > > ifconfig_vx0="inet 192.168.1.1 netmask > 255.255.255.0" > > > > > > ...i want to make the machines behind the road > runner machine dhcp > > > clients. > > > > > > does anyone have a sample dhcpd.conf file that > would > > > allow me to run a dhcp server on my natd > machine? > > > > I'm doing almost the same thing, except my dhcpd > is running on one of > > the internal machines. Here is the relevant > portion of my dhcpd.conf, > > edited for broadcast. Actually, this is the entire > file minus commented > > lines, with some names and numbers changed :^) > > > > --- cut here --- > > option domain-name "mydomain.com"; > > option domain-name-servers one.dns.server.com, > other.dns server.com; > > > > option subnet-mask 255.255.255.0; > > default-lease-time 600; > > max-lease-time 7200; > > > > subnet 192.168.1.0 netmask 255.255.1.0 { > > range 192.168.1.100 192.168.1.115; > > option routers 192.168.1.1; > > option domain-name-servers 1.2.3.4, 5.6.7.8; > > } > > --- cut here --- > > > > Of course, substitute real names for the obviously > bogus ones above. In > > that last line, 1.2.3.4 and 5.6.7.8 are supposed > to be the real IPs of > > my ISP's name servers. Like you, I'm using > 192.168.1.1 as the internal > > IP of my gateway machine. 100 thru 115 is the > range of IPs my server > > will hand out to clients. > > > > HTH. > > > > -- > > Chris Hill chris@monochrome.org > > [1] Bus error netscape > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body > of the message > > The above configuration will do just fine, but if > you're running dhcpd > on the same machine which is using dhcp client, then > you will need to > disable dhcpd on that interface. By default, dhcpd > will attempt to run > on every individual interface in the machine, this > may cause you some > headaches. > If, for example, you're internal network card was > an Intel EtherExpress > (fxp0 for argument's sake), use this command to > start dhcpd with the > same basic configuration as posted above. > > 'dhcpd fxp0' > > The short version: you gotta bind dhcpd to a > specific interface if > running it on a multi-homed machine. > > -- > Nathan Vidican > webmaster@wmptl.com > Windsor Match Plate & Tool Ltd. > http://www.wmptl.com/ __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message