Assign fixed addresses for a group of hosts

Simon Hobson dhcp1 at thehobsons.co.uk
Tue Jan 30 10:55:18 UTC 2007


Reinhard Brandstaedter wrote:

>Is it possible to assign fixed IP addresses based on dhcp-eval
>expressions?
>What I want is that a host whose MAC ends in "01" gets the IP .101 and
>the DNS name jboss-1. Dynamically of course, without multiple host
>statements. I know this is not very useful in the most common scenarios
>but my "jboss" hosts are Xen Virtual machines and I can completely
>control their MAC addresses so that there are no duplicates (two MACs
>ending in the same number)

You could try classes :
class "1" {< match if mac ends in 01> }

...

   pool {
     allow members of "1" ;
     range x.y.z.101 ;
   }


repeat as required.


More information about the dhcp-users mailing list