Multi IP assign for single MAC-Urgent

Bruce Hudson Bruce.Hudson at Dal.Ca
Tue Jan 4 16:17:18 UTC 2011


>   uid "\0003fdd01-RACad1b02d940";                             
>   uid "\000e3bc00-RACe2ab02d940";                             
>   client-hostname "e3bc00-RACe2ab02d940"; 
> 
> 
> So, I used this syntax:
> 
>  if substring (client-id,1,4) = "RAC " {
>        ignore booting;
>  }
> 
> but, it doesn't seem to have made any effect on the usage of addresses.
> I read through the man pages, but I just don't really get it.
> What does the "client-id,1,4" part mean, and does that need to be 
> changed to make this work for me?

    The "client-id,1,4" part are the parameters to the substring function;
4 bytes of the client-id option, starting at byte 1. Strings start at byte
zero so this exludes the first byte. In the examples you cited, this will
return "3fdd" and "e3bc". 

    Assuming the pattern holds, the statements:

	if substring (client-id,7,4) = "-RAC" {
	    ignore booting;
	}

should do the trick. 
--
Bruce A. Hudson				| Bruce.Hudson at Dal.CA
ITS, Networks and Systems		|
Dalhousie University			|
Halifax, Nova Scotia, Canada		| (902) 494-3405



More information about the dhcp-users mailing list