Static IP via Option 82 - methodology
Frank Bulk
frnkblk at iname.com
Fri Jan 17 05:32:11 UTC 2014
Thanks, Dave. If you wanted to give the customer one static and one dynamic
IP, is there a combination of using classes on a subnet with host
identifiers?
class "ONTs"
{
lease limit 2;
match if substring(option agent.remote-id,0,3)="Ont";
spawn with option agent.remote-id;
}
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;
}
shared-network FTTH
{
subnet 192.168.1.0 netmask 255.255.255.0
pool
{
range 192.168.1.2 192.168.1.100;
allow members of "ONTs";
}
}
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
}
Frank
-----Original Message-----
From: dhcp-users-bounces+frnkblk=iname.com at lists.isc.org
[mailto:dhcp-users-bounces+frnkblk=iname.com at lists.isc.org] On Behalf Of
Dave Brenner
Sent: Thursday, January 09, 2014 2:46 PM
To: dhcp-users at lists.isc.org
Subject: Re: Static IP via Option 82 - methodology
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;
}
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list