From owner-freebsd-questions Sat May 5 6:19:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gdmckee.local (pc-62-30-209-11-so.blueyonder.co.uk [62.30.209.11]) by hub.freebsd.org (Postfix) with ESMTP id 3F45737B422 for ; Sat, 5 May 2001 06:19:53 -0700 (PDT) (envelope-from freebsd@gdmckee.com) Received: from [192.168.0.5] (helo=p300) by gdmckee.local with smtp (Exim 3.22 #1) id 14w1yM-000DVB-00 for freebsd-questions@freebsd.org; Sat, 05 May 2001 14:19:46 +0100 Message-ID: <002c01c0d566$11346200$0500a8c0@gdmckee.local> From: "G D McKee" To: Subject: DHCPD Problems Date: Sat, 5 May 2001 14:19:51 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01C0D56E.72E06000" 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 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C0D56E.72E06000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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##### =20 dhcpd=3D"YES" dhcpd_flags=3D"-q ep0" Also, can the machine running the DHCP server get its address from the = DHCP server running on it. Gordon ------=_NextPart_000_0029_01C0D56E.72E06000 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
 
Want to set up a local DHCP server for = my internal=20 PC's.  Will hard code the MAC addresses into the config = file.
 
The only problem I have is I have a = cable modem=20 that also uses DHCP.  Can the two nic look for different DHCP = server? =20 ep0 is the local card and xl0 is the external nic.
 
I have got a config file, see below, = and every time=20 I try to fire up DHCP it comes up with the following error:
 

Listening on=20 BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0
Sending on  =20 BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0
No subnet declaration for xl0=20 (62.30.209.11).
Please write a subnet declaration in your dhcpd.conf = file for=20 the
network segment to which interface xl0 is = attached.
exiting.
 
 
 
 
DHCPD.conf:
 
subnet 192.168.0.0 netmask = 255.255.255.0=20 {
        option = domain-name-servers=20 192.168.0.6;
        option=20 broadcast-address = 192.168.0.255;
       =20 option subnet-mask = 255.255.255.0;
       =20 option routers = 192.168.0.6;
        range=20 192.168.0.25 192.168.0.35;
        = }
 
 
Lines in rc.conf
 
###DHCPD#####   =20
dhcpd=3D"YES"
dhcpd_flags=3D"-q ep0"
 
Also, can the machine running the DHCP = server get=20 its address from the DHCP server running on it.
 
Gordon
------=_NextPart_000_0029_01C0D56E.72E06000-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message