Multiple class options

Nisha Chandy nchandy at
Fri Mar 14 15:07:22 UTC 2014

I am getting the error

/etc/dhcpd.conf line 51: no option named subscriber-id in space agent

I know that option 82 option 6 is subscriber-id . Not sure how to define this so the dhcp server accepts it

Thanks & Regards,

-----Original Message-----
From: at [ at] On Behalf Of Simon Hobson
Sent: Friday, March 14, 2014 9:18 AM
To: Users of ISC DHCP
Subject: Re: Multiple class options
Importance: Low

Nisha Chandy <nchandy at> wrote:

> I am looking for a way to match multiple options in a class and I get an error in syntax. Appreciate any help of doing this.
> The two options that I need to use are agent.circuit-id or
> agent.subscriber-id. thanks
> class "Vlan5" {
> ((match if option agent.circuit-id = "Vlan5") or (match if option agent.subscriber-id = "Vlan5"));
> }

It's "match <boolean expression>", so you probably want :

match if ((option agent.circuit-id = "Vlan5") or (option agent.subscriber-id = "Vlan5")); or match if (option agent.circuit-id = "Vlan5") or (option agent.subscriber-id = "Vlan5");

Also be aware that if an option is not present, I think any expression using it becomes "unknown" and hence you may need some "if exists" bits in there. Possibly "pick first option" might be useful, as in :
match if pick first option (option agent.circuit-id,option agent.subscriber-id) = "Vlan5";

You'll need to check the correct names and syntax - man dhcp-eval

dhcp-users mailing list
dhcp-users at


CONFIDENTIALITY NOTICE: This email and any attachments are confidential and intended to be reviewed only by the individual or organization named above. Unauthorized review, use, disclosure, or distribution of this email by any other person is prohibited. If you have received this message in error, please delete it from your system immediately and notify our office at once by telephone at 830-367-5333 or 1-800-292-5457. Thank you for your cooperation.

USDA is an equal opportunity provider, employer and lender. To file a complaint of discrimination, write USDA, Director, Office of Civil Rights, 1400 Independence Avenue, S.W., Washington, DC 20250-9410, or call 800-795-3272 (voice) or 202-720-6382 (TDD).

Hill Country Telephone Cooperative, Inc. borrows money from the Rural Utilities Service and is an equal opportunity provider and employer. Please contact us at 830-367-5333 or 800-292-5457 for any questions.

More information about the dhcp-users mailing list