[KLUG Members] dhcpd
Mark Kaechele
members@kalamazoolinux.org
Thu, 30 Jan 2003 09:09:59 -0500
I finally solved my problem. The correct format is 1:<MAC-address>. So it would look like:
subclass "a-class" 1:00:09:27:78:73:56 { option host
-name "xyz"; ddns-hostname "xyz"; }
Thank you any way,
Mark K.
>I’m having problems with dhcpd. I’m trying to
>separate two groups by mac address so they will have
>different domain names and routers.
>
>In dhcpd.conf I have:
>
>class "a-class" {
> match pick-first-value (option dhcp-client
>identifier, hardware);
>}
>
>subclass "a-class" 00:09:27:78:73:56 { option host
>-name "xyz"; ddns-hostname "xyz"; }
>
>subnet 172.16.33.0 netmask 255.255.255.0 {
> pool {
> allow members of "a-class";
> range 172.16.33.86 172.16.33.200;
> option domain-name "abc.com";
a3E option routers 172.16.33.2;
> }
> pool {
> deny members of "a-class";
> range 172.16.33.201 172.16.33.254;
> option domain-name "cba.com";
> option routers 172.16.33.1;
> }
>}
>
>In dhcpd.leases I get:
>
>lease 172.16.33.219 {
> starts 3 2003/01/22 13:24:45;
> ends 3 2003/01/22 16:12:45;
> binding state active;
> next binding state free;
> hardware ethernet 00:90:27:78:73:56;
> uid "\001\000\220'xsV";
> client-hostname "xyz";
>}
>
>Even though xyz is in a-class, it still gets a range,
>domain-name and router of one that is not in a-class
>(172.16.33.219).
>
>Does anyone have any suggestions?
>
>Thank you.