From owner-freebsd-questions Sat May 5 6:25:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chip.gav.itworks.com.au (CPE-61-9-167-246.vic.bigpond.net.au [61.9.167.246]) by hub.freebsd.org (Postfix) with SMTP id DD0AC37B423 for ; Sat, 5 May 2001 06:25:36 -0700 (PDT) (envelope-from gavin@itworks.com.au) Received: (qmail 4927 invoked from network); 5 May 2001 13:29:53 -0000 Received: from unknown (HELO gavin) (192.168.1.100) by chip.gav.itworks.com.au with SMTP; 5 May 2001 13:29:53 -0000 Message-ID: <026f01c0d567$02ac54d0$6401a8c0@itworks.com.au> From: "Gavin Cameron" To: "G D McKee" , References: <002c01c0d566$11346200$0500a8c0@gdmckee.local> Subject: Re: DHCPD Problems Date: Sat, 5 May 2001 23:26:36 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Put a dummy definition in your dhcpd.conf file for xl0 subnet 62.30.209.0 netmask 255.255.255.0 { } Cheers Gavin ----- Original Message ----- From: "G D McKee" To: Sent: Saturday, 5 May 2001 23:19 Subject: DHCPD Problems Hi Want to set up a local DHCP server for my internal PC's. Will hard code the MAC addresses into the config file. The only problem I have is I have a cable modem that also uses DHCP. Can the two nic look for different DHCP server? ep0 is the local card and xl0 is the external nic. I have got a config file, see below, and every time I try to fire up DHCP it comes up with the following error: Listening on BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0 Sending on BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0 No subnet declaration for xl0 (62.30.209.11). Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface xl0 is attached. exiting. DHCPD.conf: subnet 192.168.0.0 netmask 255.255.255.0 { option domain-name-servers 192.168.0.6; option broadcast-address 192.168.0.255; option subnet-mask 255.255.255.0; option routers 192.168.0.6; range 192.168.0.25 192.168.0.35; } Lines in rc.conf ###DHCPD##### dhcpd="YES" dhcpd_flags="-q ep0" Also, can the machine running the DHCP server get its address from the DHCP server running on it. Gordon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message