From owner-freebsd-questions Mon Aug 28 5:21:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id E864137B424 for ; Mon, 28 Aug 2000 05:21:21 -0700 (PDT) Received: from govital.net ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id IAA70593; Mon, 28 Aug 2000 08:17:30 -0400 (EDT) (envelope-from webmaster@govital.net) Message-ID: <39AA5875.1FFC5FA0@govital.net> Date: Mon, 28 Aug 2000 08:17:57 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Chris Hill , mdiplacido@yahoo.com Cc: questions@freebsd.org Subject: Re: dhcpd help References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message