Multiple class options

Patrick Trapp ptrapp at nex-tech.com
Fri Mar 14 17:17:32 UTC 2014


I don't work with subscriber-id, but I do a lot with circuit-id. I found a reference from an earlier post that might help:

https://lists.isc.org/pipermail/dhcp-users/2012-March/015114.html

That's not the answer, but I hope the thread helps you.

Patrick
________________________________________
From: dhcp-users-bounces+ptrapp=nex-tech.com at lists.isc.org [dhcp-users-bounces+ptrapp=nex-tech.com at lists.isc.org] on behalf of Nisha Chandy [nchandy at hctc.coop]
Sent: Friday, March 14, 2014 10:07 AM
To: Users of ISC DHCP
Subject: RE: Multiple class options

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,
nc


-----Original Message-----
From: dhcp-users-bounces+nchandy=hctc.coop at lists.isc.org [mailto:dhcp-users-bounces+nchandy=hctc.coop at lists.isc.org] 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 hctc.coop> 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 lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

________________________________

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.
_______________________________________________
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