Option 82 suboption 6 (subscriber-id) -how

arunprasad arunprasad at pointred.co
Mon Mar 12 12:00:16 UTC 2012


Dear All,

 

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

 

lease 10.30.30.100 {

  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";

}

 

The log message:- 

 

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

        match if option agent.subscriber-id

                              ^

dhcpd.conf:-

 

class "Static-1" {

        match if option agent.subscriber-id "arun at miptest.com";

}

 

shared-network miptest {

 

  subnet 10.30.30.0 netmask 255.255.255.0

    {

    option subnet-mask 255.255.255.0;

    option routers 10.30.30.1;

    pool {

        range 10.30.30.55;

        allow members of "Static-1";

    }

    pool {

        range 10.30.30.100 10.30.30.200;

        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.

 

Regards

Arun.

 

 

 


DISCLAIMER:
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/8b6ea122/attachment.html>


More information about the dhcp-users mailing list