Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5575 closed task (invalid)

Option82 with IPv4

Reported by: bakip Owned by:
Priority: medium Milestone: Kea1.4
Component: agent Version: 1.1.0
Keywords: relay agent information, option82 Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


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 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; ---> 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 netmask {}
subnet netmask {

option routers;


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?


Change History (2)

comment:1 Changed 2 years ago by tomek

  • Milestone changed from Kea-proposed to Kea1.4
  • Resolution set to invalid
  • Status changed from new to closed

This question is also posted to kea-users. Here's the answer:

Please do not create tickets that are questions. Mailing list is much better venue for this.

comment:2 Changed 2 years ago by bakip

Thank you for response, I will continue from mailing list.

Note: See TracTickets for help on using tickets.