Stephen Gran on 22 Feb 2005 13:49:37 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] assign dhcp address using dhcp-client-identifier?


On Tue, Feb 22, 2005 at 06:57:58AM -0500, Jason Costomiris said:
> It's terribly simple to assign a fixed address through DHCP by using
> the MAC address of the client, such as:
> 
> host samwise {
>                 hardware ethernet 00:11:24:2d:5a:64;
>                 fixed-address x.y.z.35;
> }

class "laptop" {
   match if substring (option dhcp-client-identifier, 1, 7) = "samwise";
   fixed-address x.y.z.35;
}

Is one way to handle it.

There is also 

match pick-first-value (option dhcp-client-identifier, hardware)

and the like.  If you're not using dhcpd v.3 or above, I recommend
upgrading.  The docs alone make it worth it.
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Your good nature will bring unbounded   |
|  steve@lobefin.net             | happiness.                              |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: pgp1vEABja7EP.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug