Static IP via Option 82 - methodology

Denis Laventure Denis_Laventure at uqac.ca
Wed Jan 22 16:26:59 UTC 2014


Since hosts with static records are not recorded in dhcpd.leases file, stash-agent-options do nothing with option-82 hosts definitions. I use a really large lease time for my static hosts with option-82, eventually they will reboot and make a new DHCPREQUEST…

De : dhcp-users-bounces+denis_laventure=uqac.ca at lists.isc.org [mailto:dhcp-users-bounces+denis_laventure=uqac.ca at lists.isc.org] De la part de perl-list
Envoyé : 22 janvier 2014 11:08
À : Users of ISC DHCP
Objet : Re: Static IP via Option 82 - methodology


Does anyone know if this statement is only relevant in the host declaration or is a global statement?  Secondly, would this apply to host statements since the lease isn't recorded in the dhcpd.leases ?



------------------------

The stash-agent-options statement



            stash-agent-options flag;



            If  the stash-agent-options parameter is true for a given client, the server will record the relay agent information options sent during the client's initial DHCPREQUEST message when the client was in the SELECTING state and behave as if those options

            are included in all subsequent DHCPREQUEST messages sent in the RENEWING state.  This works around a problem with relay agent information options, which is that they usually not appear in DHCPREQUEST messages sent by the client in the RENEWING  state,

            because such messages are unicast directly to the server and not sent through a relay agent.

------------------------



________________________________
From: "perl-list" <perl-list at network1.net<mailto:perl-list at network1.net>>
To: "Users of ISC DHCP" <dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>>
Sent: Tuesday, January 21, 2014 3:43:25 PM
Subject: Re: Static IP via Option 82 - methodology

Folks,

We were finally able to test this.

I removed the configs for the previous method for a certain ONT.  I then set the static IP based on option 82 using the method described in the quote below.  The Calix blade said that the ONT had the correct IP address, and I showed a complete DHCP conversation in the logs with the correct IP address. However, the ONT itself never placed the address on its interface.  The first thing I noticed was that the extra log messages for option 82 that we have configured did not print to the logs.  Dialtone was not available from that ONT.

We then went ahead and swapped in a new ONT.  It did get the address immediately via DHCP which is what we were trying to accomplish, so that was good.  But it also did not actually get the IP address on the ONT the same as above.

I'm suspecting that the Option 82 circuit-id was not returned in the DHCP reply packets (DHCPOFFER and DHCPACK) based on not seeing them printed in the logs.  This could prevent the Calix from completing the assignment, I would assume.

We then returned the previous configs and the ONT got the correct address and dialtone returned.  Is there some global config that I need to set to prompt Option 82 circuit-id to be included in the response with this host statement method?

I do already have this set: stash-agent-options true;

Is there more?

________________________________
From: "perl-list" <perl-list at network1.net<mailto:perl-list at network1.net>>
To: "Users of ISC DHCP" <dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>>
Sent: Thursday, January 9, 2014 1:34:07 PM
Subject: Re: Static IP via Option 82 - methodology

Thank you - i'll try that out!  it does past syntax check - now to see if it works in the real world.

________________________________
From: "Dave Brenner" <david at toledotel.com<mailto:david at toledotel.com>>
To: dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>
Sent: Thursday, January 9, 2014 11:39:05 AM
Subject: Re: Static IP via Option 82 - methodology

On 1/9/2014 6:42 AM, perl-list wrote:
> Is this the way to do it?
>
> ------------------------
>
> host 10-24-24-9 { option agent.circuit-id = "1.21.1.4/Ethernet9";
> fixed-address 10.24.24.9; } # static by option 82 (with host line)?
>
> ------------------------

Close.

host 10-24-24-9 {
    host-identifier option agent.circuit-id "1.21.1.4/Ethernet9";
    fixed-address 10.24.24.9;
}


_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/dhcp-users



_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/dhcp-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140122/17ec74c2/attachment-0001.html>


More information about the dhcp-users mailing list