[Kea-users] vendor-encapsulated-options not sent to clients

Anton Yurchenko ayurchenko at gmail.com
Thu Jul 21 23:59:05 UTC 2016


Hi,


I configured some vendor-encapsulated-options, but I do not see them 
getting sent to the clients.

I am using version 1.0.0

Trying to understand what am I missing


Here is my config:

---------------------------------------------------------------------------------------------------


# DHCPv4 configuration starts here.
"Dhcp4":
{

   "option-def": [
         {
             "name": "image-file-name",
             "code": 0,
             "space": "vendor-encapsulated-options-space",
             "type": "string",
             "array": false,
             "encapsulate": ""
         }
     ],

   "option-def": [
         {
             "name": "config-file-name",
             "code": 1,
             "space": "vendor-encapsulated-options-space",
             "type": "string",
             "array": false,
             "encapsulate": ""
         }
     ],
   "option-def": [
         {
             "name": "transfer-mode",
             "code": 3,
             "space": "vendor-encapsulated-options-space",
             "type": "string",
             "array": false,
             "encapsulate": ""
         }
     ],

     "option-data": [
         {
             "name": "image-file-name",
             "space": "vendor-encapsulated-options-space",
             "code": 0,
             "csv-format": true,
             "data": 
"/as-image/jinstall-ex-4200-13.2X50-D19.2-domestic-signed.tgz"
         }
     ],
     "option-data": [
         {
             "name": "config-file-name",
             "space": "vendor-encapsulated-options-space",
             "code": 1,
             "csv-format": true,
             "data": "/as-config/EX4200-48T-BLAH.conf"
         }
     ],
     "option-data": [
         {
             "name": "transfer-mode",
             "space": "vendor-encapsulated-options-space",
             "code": 3,
             "csv-format": true,
             "data": "http"
         }
     ],
     "option-data": [
         {
             "name": "vendor-encapsulated-options",
             "csv-format": false
         }
     ],


# Add names of interfaces to listen on.
   "interfaces-config": {
     "interfaces": [ "eth1" ]
   },

# Use Memfile lease database backend to store leases in a CSV file.
   "lease-database": {
     "type": "memfile"
   },

# Setup reclamation of the expired leases and leases affinity.
# Expired leases will be reclaimed every 10 seconds. Every 25
# seconds reclaimed leases, which have expired more than 3600
# seconds ago, will be removed. The limits for leases reclamation
# are 100 leases or 250 ms for a single cycle. A warning message
# will be logged if there are still expired leases in the
# database after 5 consecutive reclamation cycles.
   "expired-leases-processing": {
     "reclaim-timer-wait-time": 10,
     "flush-reclaimed-timer-wait-time": 25,
     "hold-reclaimed-time": 3600,
     "max-reclaim-leases": 100,
     "max-reclaim-time": 250,
     "unwarned-reclaim-cycles": 5
   },

# Global (inherited by all subnets) lease lifetime is mandatory parameter.
   "valid-lifetime": 4000,

# Below an example of the simple subnet declaration. Uncomment to
# enable it. This is a list, denoted with [ ], of structure, denoted
# with { }. Each structure describes a single subnet and may have
# several parameters. One of those parameters is "pools" that is
# also a list of structures.
   "subnet4": [
   {    "subnet": "10.6.30.0/24",
        "pools": [ { "pool": "10.6.30.10 - 10.6.30.20" } ] }

   ]
},


# Logging configuration starts here. It tells Kea servers to store
# all log messages (on severity INFO or more) in a file.
# debuglevel variable is used on DEBUG level only.
"Logging":
{
   "loggers": [
     {
       "name": "kea-dhcp4",
       "output_options": [
           {
             "output": "/var/log/kea-dhcp4.log"
           }
       ],
       "severity": "INFO",
       "debuglevel": 0
     }
   ]
}

}


---------------------------------------------------------------------------------------------------

Thanks!!




More information about the Kea-users mailing list