Date: Sun, 16 Nov 2003 11:08:25 +1030 From: "Rob" <listone@deathbeforedecaf.net> To: "Gerard Samuel" <fbsd-questions@trini0.org>, <questions@freebsd.org> Subject: Re: DHCP Message-ID: <029d01c3abd9$f2bcfab0$a4b826cb@goo> References: <200311151417.14480.fbsd-questions@trini0.org>
next in thread | previous in thread | raw e-mail | index | archive | help
A couple of things:
The range statement is for unknown clients - they will be given a lease
in this range by the server. It doesn't control the host definition,
which will use the address in the fixed-address statement.
The host definition would normally go inside the subnet definition - at
the moment, it's not going to get the netmask or router options.
Any errors in the dhcpd.conf will be mentioned in /var/log/messages when
the service starts up.
Hope that helps....
----- Original Message -----
From: "Gerard Samuel" <fbsd-questions@trini0.org>
To: <questions@freebsd.org>
Sent: Sunday, November 16, 2003 5:47 AM
Subject: DHCP
> A bit off topic, but any help would be appreciated.
> Im trying to setup DHCP for the first time.
> I set winXP to auto configure itself in the network section, but it
> still remains on the IP address that it was previously set at, and not
> obeying, the range of IP Addresses listed in dhcp.conf.
> The connection works, I can use the network, but looking to see if
there are
> any errors in dhcp.conf file.
>
> Also, is there a way to not specify the MAC address, and have DHCP
still work.
> For example, say a family member comes over with their laptop, can
they just
> plug in and go??
>
> Thanks for any pointers...
>
> dhcp.conf
> -----
> # dhcpd.conf
> #
> # Sample configuration file for ISC dhcpd
> #
>
> # option definitions common to all supported networks...
> option domain-name "trini0.org";
> option domain-name-servers 192.168.0.2;
>
> default-lease-time 600;
> max-lease-time 7200;
>
> # ad-hoc DNS update scheme - set to "none" to disable dynamic DNS
updates.
> ddns-update-style none;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.100 192.168.0.254;
> option routers 192.168.0.1;
> }
>
> #laptop
> host laptop {
> hardware ethernet 00:50:BA:7A:F0:A3;
> fixed-address laptop.trini0.org;
> }
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?029d01c3abd9$f2bcfab0$a4b826cb>
