Date: Sat, 5 May 2001 14:19:51 +0100 From: "G D McKee" <freebsd@gdmckee.com> To: <freebsd-questions@freebsd.org> Subject: DHCPD Problems Message-ID: <002c01c0d566$11346200$0500a8c0@gdmckee.local>
next in thread | raw e-mail | index | archive | help
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4613.1700" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Want to set up a local DHCP server for =
my internal=20
PC's. Will hard code the MAC addresses into the config =
file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>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.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>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:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR>Listening on=20
BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0<BR>Sending on =20
BPF/ep0/00:a0:24:f0:b3:98/192.168.0.0<BR>No subnet declaration for xl0=20
(62.30.209.11).<BR>Please write a subnet declaration in your dhcpd.conf =
file for=20
the<BR>network segment to which interface xl0 is =
attached.<BR>exiting.</DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>DHCPD.conf:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>subnet 192.168.0.0 netmask =
255.255.255.0=20
{<BR> option =
domain-name-servers=20
192.168.0.6;<BR> option=20
broadcast-address =
192.168.0.255;<BR> =20
option subnet-mask =
255.255.255.0;<BR> =20
option routers =
192.168.0.6;<BR> range=20
192.168.0.25 192.168.0.35;<BR> =
}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Lines in rc.conf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>###DHCPD##### =20
<BR>dhcpd=3D"YES"<BR>dhcpd_flags=3D"-q ep0"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Also, can the machine running the DHCP =
server get=20
its address from the DHCP server running on it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Gordon</FONT></DIV></BODY></HTML>
------=_NextPart_000_0029_01C0D56E.72E06000--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002c01c0d566$11346200$0500a8c0>
