[Kea-users] DHCPv6 not working o PVE LAN

Darren Ankney darren.ankney at gmail.com
Tue Feb 13 10:30:26 UTC 2024


Hi Yu,

Without looking too closely, I'd imagine that this subnet:
2001:db8:1::/64 does not exist in your network?  Therefore there is no
way for Kea to select this subnet?  It doesn't look like your traffic
was relayed, so your Kea server would need to find that subnet
configured on a local interface on which it was listening.  Try adding
this subnet to the ens18 interface (this is just a guess, btw).

Thank you,
Darren Ankney

On Mon, Feb 12, 2024 at 5:08 PM Xiao, Yu (CCI-Atlanta) via Kea-users
<kea-users at lists.isc.org> wrote:
>
> Greetings,
>
>
>
> I am working on a home lab as concept design for DHCP ipv6. I have two Rocky 8 VMs under PVE, one is server which installed kea-dhcp6 and the other is the client. I used the dummy configuration in the Kea manual with a few changes on T1 and T2 but the same IP information. But I don’t see the client got any IPv6 from the server. I did the packets capture using tcpdump. I can see the solicit and advertise packets, but in the advertise packet, I see status message: Server could not select subnet for this client.
>
>
>
> I did Google and found previous discussions email from this mailer, so I added the interface-id configuration under “subnet6” section. But still, I see the same error message. I have opened the port for DHCPv6 on server side, also there’s IPv4 connectivity between the server and the client with static Ips.
>
>
>
> Can anyone provide some insights? Thank you all!
>
>
>
>
>
>
>
> Configuration:
>
> {
>
> # DHCPv6 configuration starts on the next line
>
> "Dhcp6": {
>
>
>
> # First we set up global values
>
>     "valid-lifetime": 400,
>
>     "renew-timer": 100,
>
>     "rebind-timer": 200,
>
>     "preferred-lifetime": 300,
>
>
>
> # Next we set up the interfaces to be used by the server.
>
>     "interfaces-config": {
>
>         "interfaces": [ "ens18" ]
>
>     },
>
>
>
> # And we specify the type of lease database
>
>     "lease-database": {
>
>         "type": "memfile",
>
>         "persist": true,
>
>         "name": "/var/lib/kea/dhcp6.leases"
>
>     },
>
>
>
> # Finally, we list the subnets from which we will be leasing addresses.
>
>     "subnet6": [
>
>         {
>
>             "id": 1,
>
>             "subnet": "2001:db8:1::/64",
>
>             "pools": [
>
>                 {
>
>                     "pool": "2001:db8:1::1-2001:db8:1::ffff"
>
>                 }
>
>              ],
>
>             "interface-id": "ens18"
>
>         }
>
>     ]
>
> # DHCPv6 configuration ends with the next line
>
> }
>
>
>
> }
>
>
>
> Packets capture info:
>
> Frame 2: 174 bytes on wire (1392 bits), 174 bytes captured (1392 bits)
>
> Ethernet II, Src: 42:f1:11:7a:0d:e7 (42:f1:11:7a:0d:e7), Dst: c6:0b:eb:d1:72:98 (c6:0b:eb:d1:72:98)
>
> Internet Protocol Version 6, Src: fe80::40f1:11ff:fe7a:de7, Dst: fe80::c40b:ebff:fed1:7298
>
> User Datagram Protocol, Src Port: 547, Dst Port: 546
>
> DHCPv6
>
>     Message type: Advertise (2)
>
>     Transaction ID: 0x2f54ab
>
>     Client Identifier
>
>     Server Identifier
>
>     Identity Association for Non-temporary Address
>
>         Option: Identity Association for Non-temporary Address (3)
>
>         Length: 64
>
>         IAID: ca53095a
>
>         T1: 0
>
>         T2: 0
>
>         Status code
>
>             Option: Status code (13)
>
>             Length: 48
>
>             Status Code: NoAddrAvail (2)
>
>             Status Message: Server could not select subnet for this client
>
>
>
>
>
>
>
>
>
> Best Regards,
>
> Yu
>
>
>
> --
> 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 at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list