Option 82 suboption 6 (subscriber-id) -how

Randall C Grimshaw rgrimsha at syr.edu
Mon Mar 12 12:38:35 UTC 2012

look in in the archives for some of the examples using pick-first-value

Randall Grimshaw rgrimsha at syr.edu<mailto:rgrimsha at syr.edu>

From: dhcp-users-bounces+rgrimsha=syr.edu at lists.isc.org [dhcp-users-bounces+rgrimsha=syr.edu at lists.isc.org] on behalf of arunprasad [arunprasad at pointred.co]
Sent: Monday, March 12, 2012 8:00 AM
To: dhcp-users at lists.isc.org
Subject: Re: Option 82 suboption 6 (subscriber-id) -how

Dear All,

I'd like to parse agent.subscriber-id field "arun" as follow:- but unfortunatly ISCDHCP server notable to..

lease {
  starts 1 2012/03/12 10:08:45;
  ends 1 2012/03/12 22:08:45;
  tstp 1 2012/03/12 22:08:45;
  cltt 1 2012/03/12 10:08:45;
  binding state active;
  next binding state free;
  rewind binding state free;
  hardware ethernet 00:0d:3b:12:15:a8;
  uid "\001\000\015;\022\025\250";
  option agent.unknown-6 "arun at miptest.com<mailto:arun at miptest.com>";

The log message:-

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

class "Static-1" {
        match if option agent.subscriber-id "arun at miptest.com<mailto:arun at miptest.com>";

shared-network miptest {

  subnet netmask
    option subnet-mask;
    option routers;
    pool {
        allow members of "Static-1";
    pool {
        deny members of "Static-1";

even I modified the source code (added following line) but no luck

The file server/stables.c

struct universe agent_universe;
static struct option agent_options[] = {
        { "circuit-id", "X",                    &agent_universe,   1, 1 },
        { "remote-id", "X",                     &agent_universe,   2, 1 },
        { "agent-id", "I",                      &agent_universe,   3, 1 },
        { "DOCSIS-device-class", "L",           &agent_universe,   4, 1 },
        { "link-selection", "I",                &agent_universe,   5, 1 },
        { "subscriber-id", "X",                 &agent_universe,   6, 1 },
        { NULL, NULL, NULL, 0, 0 }

somebody’s help is highly appreciated.


The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. PointRed Telecom Ltd (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system and does not guarantee that the integrity of this communication has been maintained or that this communication is free of viruses, interceptions or interferences.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120312/5fdb6626/attachment.html>

More information about the dhcp-users mailing list