using variable

Pierre LEONARD pier.leonard at free.fr
Tue Mar 21 18:24:18 UTC 2006


Simon Hobson a e'crit:
>Pierre LEONARD wrote:
>
>  
>
>>nobody can help me ?
>>    
>>
>
>Posting this only 4 hours after posting your original message sounds 
>very impatient.
>
>  
>
>>i found how assign a value to a variable : /*set variable = "string"
>>
>>*/but now i would like to use this variable in order to assign fixed ip
>>but get don't exists apparently because i have an "get: no such
>>function" error in syslog after a successful lauching.
>>any idea please ??
>>    
>>
>
>I'm fairly certain you can't (directly). The ISC DHSP server supports 
>only two modes that I know of, dynamic addresses and fixed addresses 
>specified with fixed-address statements in host declarations.
>
>However, there have been some convoluted methods suggested that 
>effectively create a class per client device and allow each client 
>access to a single address range. It's long winded, and I suspect not 
>very efficient, but it should work IFF you have a list of possible 
>values known in advance.
>
>
>
>  
>
sorry for my impatience :-)
in fact there is not a list of known value it's just a way for me to 
check that the packet come from a specific switch and vlan.
if the paquet come from the good way i assign any value just to check 
and after i can say "if variable_test = "good_value" then assign this ip"
i hope i'm clear when i speak in english !




More information about the dhcp-users mailing list