[Kea-users] Problem with multiple subnets

chmielewskim michal.chmielewski at ts.fujitsu.com
Tue Mar 26 10:56:49 UTC 2019


Hello, I have one server with multiple interfaces now is 5 in future more -
we try convert infrastucture from isc dhcp to KEA dhcp. We reserving almost
whole pool from each network. The problem is when we have multiple
interfaces (every have difrent id) only this with id: 1 work fine, the rest
unfortunatly not. 
This is the config file:
{
   "Dhcp4":{
      "option-data":[
        {
          "name":"domain-name-servers",
          "data":"10.172.201.4, 10.172.107.4"
        }
      ],   
      "interfaces-config":{
         "interfaces":["ens160", "ens224", "ens192", "ens220", "ens168"],
         "dhcp-socket-type":"raw"
      },
      
    "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
     },

     "renew-timer": 900,
     "rebind-timer": 1800,
     "valid-lifetime": 3600,
     "echo-client-id": true,

      "subnet4":[
			//Production network (107)
         {
            "id": 6,
            "pools":[{"pool":"10.172.107.250-10.172.107.254"}],
            "subnet":"10.172.107.0/24",
            "interface":"ens160",
            "option-data":[{"name":"routers", "data":"10.172.107.1,
10.172.107.2"}]
         },
		 
                        //Virtual machine network (241) - not avaliable yet
//        {
//           "id": 2,
//           "pools":[{"pool":"10.172.241.250-10.172.241.254"}],
//          "subnet": "10.172.241.0/24",
//           "interface": "ens",
//            "option-data":[{"name":"routers", "data":"10.172.241.1,
10.172.241.2"}]            
//         },

			//Virtual machine network (193)
         {
            "id": 1,
            "pools":[{"pool":"10.172.193.250-10.172.193.254"}],
            "subnet":"10.172.193.0/24",
            "interface":"ens192",
            "option-data":[{"name":"routers", "data":"10.172.193.1,
10.172.193.2"}]
         },
		 
			//Shared network (181)
	     {
	       "id": 3,
	       "pools":[{"pool":"10.172.181.250-10.172.181.254"}],
	       "subnet": "10.172.181.0/24",
           "interface":"ens222",
	       "option-data":[{"name":"routers", "data":"10.172.181.1,
10.172.181.2"}]
	     },
		 
			//iRMC network (201)
	     {
	       "id": 4,
           "pools":[{"pool":"10.172.201.250-10.172.201.254"}],
	       "subnet": "10.172.201.0/24",
	       "interface":"ens224",
	       "option-data":[{"name":"routers", "data":"10.172.201.1"}]
	     },
		 
			//QA iRMC network (73)
	     {
	       "id": 5,
	       "pools":[{"pool":"172.17.73.250-172.17.73.254"}],
	       "subnet": "172.17.73.0/24",
	       "interface":"ens168",
	       "option-data":[{"name":"routers", "data":"172.17.73.1,
172.17.73.2"}]
	     }
         ],

      "hosts-database": {
         "type":"mysql",
         "name":"network",
         "user":"some-user",
         "password":"some-password",
         "host":"localhost",
         "port":3386
      },

      "lease-database":{
         "type":"mysql",
         "name":"network",
         "user":"some-user",
         "password":"some-password",
         "host":"localhost",
         "port":3386
      },
      
      "hooks-libraries": [{
        "library": "/usr/local/lib/hooks/libdhcp_lease_cmds.so"
      }]
   },

"Logging": {
     "loggers": [
         {
             "name": "kea-dhcp4",
             "output_options": [
                 {
                     "output": "/usr/local/etc/kea/var/log/kea-dhcp4.log"
                 }
             ],
             "severity": "INFO"
         }
     ]
 }
}




--
Sent from: http://kea-users.7364.n8.nabble.com/


More information about the Kea-users mailing list