Fix IP address based on the Option 82 info

Luke.Orehawa at controltechniques.com Luke.Orehawa at controltechniques.com
Wed Apr 12 14:22:40 UTC 2006


Thanks for your reply,

I have made the first two changes you suggested. I will try and find a way
to separate the client and server broadcast domains. My current train of
thought is using VLANs on the relay agent. 

> You neither need nor want a relay when then the server is in the same
broadcast domain as the clients.

My application requires a relay agent so that I can provide an IP address
based upon the physical location of the client. 

Kind regards,

Luke Orehawa

-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On Behalf
Of Bruce Hudson
Sent: 12 April 2006 14:20
To: dhcp-users at isc.org
Subject: Re: Fix IP address based on the Option 82 info

>  In the conf file below I have tried allocating a range, this I did 
> just for testing, I would ideally like to allocate a fixed address.

    A fixed address can be just a range with only a single address. 

> class "port1"{
> 	match pick-first-value (concat(option agent.remote-id,option 
> agent.circuit-id));
> 
> 	option host-name "port1";
> 	option root-path "192.168.1.200:/usr/ethernet/";
> 	filename "port1.xml";
> }

    You have "pick-first-value" with only a single parameter. That is adding
unnecessary complexity.
 
 
> No.     Time        Source                Destination           Protocol
> Info
>       1 0.000000    0.0.0.0               255.255.255.255       DHCP
> DHCP Discover - Transaction ID 0xb6b27336
>       2 0.013368    192.168.1.40          192.168.1.200         DHCP
> DHCP Discover - Transaction ID 0xb6b27336
>       3 0.314180    192.168.1.200         192.168.1.40          DHCP

    You are seeing the request from the client twice, once directly to the
broadcast address and once via a relay agent at 192.168.1.200. You neither
need nor want a relay when then the server is in the same broadcast domain
as the clients. 

    That is probably why you are seeing NAKs. 
--
Bruce A. Hudson				| Bruce.Hudson at Dal.CA
UCIS, Networks and Systems		|
Dalhousie University			|
Halifax, Nova Scotia, Canada		| (902) 494-3405


More information about the dhcp-users mailing list