[Kea-users] DHCPv6 not working o PVE LAN

Xiao, Yu (CCI-Atlanta) yu.xiao at cox.com
Mon Feb 12 22:08:30 UTC 2024


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240212/f8fb1e42/attachment-0001.htm>


More information about the Kea-users mailing list