Matching DHCP Option 82 - Sub-option 151

Johan Denoyer johan.denoyer at gmail.com
Mon May 25 15:30:02 UTC 2009


Hello All,

I am currently facing a problem with matching DHCP requests from a specific
VRF using option 82.

The VRF name is encoded in option 82 - suboption 151 (seems cisco uses
binary data type), but I can't seem to get it to match. I need to receive
DHCP requests from multiple VRF, and depending on the VRF I have to respond
from a specific pool.

If a request comes from a VRF named "VRF_CISCO" I need to match it and send
an IP from the correct pool.

Here's the configuration I am using :

option agent.VPN-ID code 151 = string;

class "VPN_CISCO"
{
 match if ( agent.VPN-ID = "VRF_CISCO");

}
subnet 10.0.0.0 netmask 255.255.248.0 {
  option routers 10.0.0.1;
        pool {
                range 10.0.1.0 10.0.1.255;
                allow members of "VPN_CISCO";
        }
        pool {
                range 10.0.0.2 10.0.0.255;
        }
}

Has anyone been successfull in getting something similar to work?

Thanks in advance for your help,


Salutations,

Johan Denoyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090525/53798f49/attachment.html>


More information about the dhcp-users mailing list