Interfaces in the global section controls which interfaces kea listens to.
Interface in a subnet or submet6 section helps kea map (broad/multi)-cast packets to subnets by which interface they were received on. If you are using relay, you don’t really need an interface statement in the subnet(6) dictionary. If you are directly attached to the subnet, you will need the interface statement in order to know which subnet applies to that interface. Owen > On Feb 20, 2025, at 04:00, kea-users-requ...@lists.isc.org wrote: > > Send Kea-users mailing list submissions to > kea-users@lists.isc.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.isc.org/mailman/listinfo/kea-users > or, via email, send a message with subject or body 'help' to > kea-users-requ...@lists.isc.org > > You can reach the person managing the list at > kea-users-ow...@lists.isc.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Kea-users digest..." > > > Today's Topics: > > 1. Is Interface mandate in kea-DHCPv6 section (Kraishak Mahtha) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 19 Feb 2025 17:42:44 +0530 > From: Kraishak Mahtha <kraishak....@gmail.com> > To: "Kea-users@lists.isc.org" <kea-users@lists.isc.org> > Subject: [Kea-users] Is Interface mandate in kea-DHCPv6 section > Message-ID: > <caddat86peaxj4hamfsgsqmhlxkwjelydaysr1o-qry87hew...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi All, > > I am trying to use kea-DHCPv6 in my local lab, and I observed that if I > don't place the line interface in subnet 6 section, it is not working and > not able to get lease even though I added the interface on global section > > Configuration snippet: > { > "Dhcp6": { > "interfaces-config": { > "interfaces": ["ens192"] # The network interface the DHCPv6 server > listens on > }, > > "multi-threading": { > "packet-queue-size": 28, > "enable-multi-threading": true, > "thread-pool-size": 4 > }, > > "lease-database": { > "name": "/XXXXX/XXXXXX/XXXXX/XXXX/dhcp6.leases", > "type": "memfile", # In-memory lease database (useful for testing) > "persist": true # Save leases to disk > }, > > > "subnet6": [ > { > "subnet": "2001:470:edb5:200::/64", # The subnet from which > addresses are allocated > # "interface": "ens192", > "pools": [ > {"pool": "2001:470:edb5:200::2-2001:470:edb5:200::15"}, > {"pool": "2001:470:edb5:200::3e-2001:470:edb5:200::51"}, > {"pool": "2001:470:edb5:200::52-2001:470:edb5:200::65"} > ], > > "preferred-lifetime": 600, > "valid-lifetime": 1200, > "option-data": [ > { > "name": "dns-servers", > "data": "2001:470:edb5:200::23" # Override DNS servers for > this subnet > }, > { > "name": "domain-search", > "data": "tester.com" > } > ] > } > ] > } > } > In the logs I am getting are as below: > 2025-02-19 11:48:26.576 DEBUG [kea-dhcp6.packets/2086321.139784175461952] > DHCP6_RESPONSE_DATA responding with packet type 2 data is > localAddr=[ff02::1:2]:547 remoteAddr=[fe80::a28:a7f4:fea5:8142]:546 > msgtype=2(ADVERTISE), transid=0x88e10a > type=00001, len=00014: 00:01:00:01:2c:80:f6:f7:74:5d:22:3e:02:d1 > type=00002, len=00014: 00:01:00:01:2d:71:74:58:00:50:56:a2:ea:0c > type=00003(IA_NA), len=00064: iaid=125047786, t1=0, t2=0, > options: > type=00013, len=00048: NoAddrsAvail(2) "Server could not select subnet > for this client" > type=00023, len=00016: 2001:470:edb5:200::23 > type=00024, len=00012: "tester.com." (fqdn) > type=39(CLIENT_FQDN), flags: (N=1, O=0, S=0), > domain-name='ddddddd-lenovo-zzzz.' (full) > No relays traversed. > > > Q) > 1)Is it mandatory to add the interface line in every subnet6 section, > unlike subnet4 > 2)If that is mandatory, how can I use multiple subnets? Let's say I have > one more network range using the same DHCPv6 appliance, but I don't have > any interface on the box. How can we use that > > Can someone who is familiar with such setups and has faced similar issues > please guide me? > > Thanks in Advance > Kraishak > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <https://lists.isc.org/pipermail/kea-users/attachments/20250219/59e62dc3/attachment-0001.htm> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > Kea-users mailing list > Kea-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users > > > ------------------------------ > > End of Kea-users Digest, Vol 128, Issue 39 > ****************************************** -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users