[Kea-users] DHCPv6, anybody got it working?

Marcin Siodelski marcin at isc.org
Mon Jun 19 16:42:07 UTC 2017


Ricardo,

Your "subnet6" declaration should be updated to include an "interface"
or "relay" parameter to indicate when this particular subnet should be
selected.

For example:

"relay": {
   "ip-address": "3000::1"
}

or

"interface": "eth0"

In the former case, for DHCP messages received from the particular relay
agent the server will use the given subnet. In the latter case this
subnet will be picked for the messages received on "eth0" interface.

Marcin Siodelski
ISC Engineering


On 19.06.2017 17:51, Ricardo J. Barberis wrote:
> Hi all,
> 
> I've been trying to make kea-dhcp6 work with no luck so far.
> 
> I'm on CentOS 7.3 (client and server), I tried 1.1.0 from EPEL and 1.2.0 
> self-compiled. Client has dhclient-4.2.5-47.el7.
> 
> I started configuring a lot of things (host reservations, hosts and leases in 
> mysql, etc) in a non-default way, so I figured I did something wrong, but 
> last Friday I tried a very basic, mostly default config and stil I can't get 
> an IPv6.
> 
> Clients always get 'IA_NA status code NoAddrsAvail: "Server could not select 
> subnet for this client"'.
> 
> 
> Has anybody made kea-dhcp6 work? Can you share a working config to see what 
> I'm doing wrong?
> 
> 
> Here's my last kea.conf as a reference (dhcp4 always worked fine for me, BTW):
> 
> {
> "Dhcp4": {
>   "interfaces-config": {
>     "interfaces": [ "eth0" ]
>   },
>   "lease-database": {
>     "type": "memfile"
>   },
>   "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
>   },
>   "valid-lifetime": 4000,
>   "subnet4": [
>     {
>       "subnet": "NN.NN.NN.0/24",
>       "pools": [ { "pool": "NN.NN.NN.2-NN.NN.NN.10" } ],
>       "id": 2,
>     }
>   ]
> },
> 
> "Dhcp6": {
>   "interfaces-config": {
>     "interfaces": [ "eth0" ]
>   },
>   "lease-database": {
>     "type": "memfile"
>   },
>   "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
>   },
>   "preferred-lifetime": 3000,
>   "valid-lifetime": 4000,
>   "renew-timer": 1000,
>   "rebind-timer": 2000,
>   "subnet6": [
>     {
>       "subnet": "2800:NNNN::/64",
>       "pools": [ { "pool": "2800:NNNN::/64" } ],
>       "id": 1
>     }
>   ]
> },
> 
> "DhcpDdns":
> {
>   "ip-address": "127.0.0.1",
>   "port": 53001,
>   "tsig-keys": [],
>   "forward-ddns" : {},
>   "reverse-ddns" : {}
> },
> 
> "Logging":
> {
>   "loggers": [
>     {
>       "name": "kea-dhcp4",
>       "output_options": [
>           {
>             "output": "/var/log/kea-dhcp4.log"
>           }
>       ],
>       "severity": "INFO",
>       "debuglevel": 0
>     },
>     {
>       "name": "kea-dhcp6",
>       "output_options": [
>           {
>             "output": "/var/log/kea-dhcp6.log"
>           }
>       ],
>       "severity": "DEBUG",
>       "debuglevel": 99
>     },
>     {
>       "name": "kea-dhcp-ddns",
>       "output_options": [
>           {
>             "output": "/var/log/kea-ddns.log"
>           }
>       ],
>       "severity": "INFO",
>       "debuglevel": 0
>     }
>   ]
> }
> }
> 




More information about the Kea-users mailing list