Matching DHCP Option 82 - Sub-option 151

Johan Denoyer johan.denoyer at
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 netmask {
  option routers;
        pool {
                allow members of "VPN_CISCO";
        pool {

Has anyone been successfull in getting something similar to work?

Thanks in advance for your help,


Johan Denoyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list