Static IP via Option 82 - methodology
Dave Brenner
david at toledotel.com
Thu Jan 9 20:45:33 UTC 2014
On 1/9/2014 12:03 PM, perl-list wrote:
> Our situation is with Calix equipment. Calix stuffs ascii text into the
> option 82 parameters. I am aware that cisco does binary option 82
> stuffing (for lack of a better term) - that is a problem we have as
> well, but that one is best left for another day :)
That example was actually taken from a Calix example and modified to
look more like your example. Here is a Calix example I took from our
config file, with the IP munged:
host N42-1-1-4-3-1 {
host-identifier option agent.remote-id "Ont:N42-1-1-4-3-OntEth1-1";
fixed-address 192.168.1.200;
}
Note that if you are working with C7s and you are on an older release
(pre-8, I believe), the Calix-generated option 82 strings are
null-terminated, so any matches that involve the end of the string must
take that into consideration. A "\000" at the end of the match string
works nicely:
host N42-1-1-4-3-1 {
host-identifier option agent.remote-id "Ont:N42-1-1-4-3-OntEth1-1\000";
fixed-address 192.168.1.200;
}
More information about the dhcp-users
mailing list