DDNS with host declarations
Simon Hobson
dhcp1 at thehobsons.co.uk
Sun Oct 29 10:58:50 UTC 2006
Jan Engelhardt wrote:
>class "xp" { match if binary-to-ascii(16, 8, ":", hardware) =
>"00:0C:29:93:C6:21"; }
You don't need the binay-ascii stuff in there :
class "xp" { match if hardware) = 01:00:0C:29:93:C6:21; }
should do. Note the leading 01, it's the hardware type for ethernet.
>subnet ... {
> range 192.168.234.10 192.168.234.40;
> pool { allow members of "xp"; range 192.168.222.41; }
>}
>
>The client always gets the IP address it used before (234.20) rather
>than picking up .41. Is this because of the unconditional range
>statement?
Yes, you need to deny the class from all other ranges, so if you have
a few you'd end up with :
pool { deny members of "xp1" ;
deny members of "xp2" ;
deny members of "xp3" ;
deny members of "xp4" ;
deny members of "xp5" ;
range 192.168.234.10 192.168.234.40; }
pool { allow members of "xp1"; range 192.168.222.41; }
pool { allow members of "xp2"; range 192.168.222.42; }
pool { allow members of "xp3"; range 192.168.222.43; }
pool { allow members of "xp4"; range 192.168.222.44; }
pool { allow members of "xp5"; range 192.168.222.45; }
More information about the dhcp-users
mailing list