[Kea-users] Option82

Batuhan Bakıp bakip at itu.edu.tr
Fri Mar 16 07:19:21 UTC 2018


I want to use option82 in KEA. I read KEA document but I cannot understand how to do. Now I use ISC DHCP and I use option82 successfully.

The structure I am currently using is as follows:

Example for one user;

I have class file /etc/dhcp/class/example and it contains a class like the following.
...
class "ABCD"{
match if (substring (option agent.circuit-id,2, 2) = 00:1A) --->vlan number type hex (00:1A=26)
and (substring( option agent.remote-id, 2, 10) = 12:34:AB:CD:56:78)--->remote-id of switch type hex
and (suffix (option agent.circuit-id, 1) = 09) --->port number in switch
and(substring (hardware, 1, 6) = 34:17:eb:bc:6e:33);}  --->mac address
....

I have pool file /etc/dhcp/pool/example and it contains a pool like the following.
...
pool {
allow members of "ABCD"; ---> Matching class name
range 192.168.1.50;} ---> Giving this IP address if it matches informations in the class
....

I define pool and class in the file (etc/dhcp/dhcpd.conf) as follows.
...
...
include "etc/dhcp/class/example";
shared-network EXAMPLE{
subnet 192.168.100.100 netmask 255.255.255.255 {}
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
}
include "etc/dhcp/pool/example";
}
...
...

And this works. The person with this MAC address will get this IP address if it sends a request from this port of this switch.
How to similar structure in KEA?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180316/0b92fb46/attachment.htm>


More information about the Kea-users mailing list