[Kea-users] KEA DHCPv6 - Problem with Leases

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] KEA DHCPv6 - Problem with Leases

Drinis Hallaçi

Hello


I'm testing KEA DHCPv6 and we are facing a problem with leases.

Every time that a modem reboots it takes a different IP.


My config :


{


"Dhcp6": {

 "mac-sources": ["remote-id", "docsis-cmts","docsis-modem"],


"option-data": [
        {
           "name": "dns-servers",
           "code": 23,
           "space": "dhcp6",
           "csv-format": true,
           "data": "xxxx:xxxx:xxxx::xxx, xxxx:xxxx::xx:xx:xx:xx"
        },

                ],




        "interfaces-config": {
        "interfaces": [ "ens224/xxxx:xxxx::xx:xx:xx:xx" ]
                        },

        "preferred-lifetime": 300,
        "valid-lifetime": 400,
        "renew-timer": 100,
        "rebind-timer": 200,


#       "lease-database": {
#        "type": "memfile",
#       "persist": true,
#      "name": "/usr/local/var/kea/kea-leases6.csv",
#     "lfc-interval": 1800

#       }


       "lease-database": {
           "type": "mysql",
            "host": "localhost",
            "name": "dhcp",
            "password": "password",
            "user":     "dhcp"

                        },




"subnet6": [



##############---SITE2-TESTE--------#############################

{

        "subnet": "xxxx:xxxx:xxxx:x::/64",

        "pools": [{"pool": "xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
        "pd-pools": [{
                "prefix": "xxxx:xxxx:xxxx::",

                       }]
},

##############---SITE1-C40G--------#############################
{

        "subnet": " xxxx:xxxx:xxxx:x::0/64",
        "pools": [{"pool": " xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
        "pd-pools": [{
                "prefix": "xxxx:xxxx:xxx::",
                "prefix-len": 48,
                "delegated-len": 64
                       }]


},

##############---HUB4-1-CMTS3200--------#############################

{
        "subnet": "xxxx:xxxx:xxxx:x::/64",
        "pools": [{"pool": " xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
        "pd-pools": [{
                "prefix": "xxxx:xxxx:xxxx::",
                "prefix-len": 40,
                "delegated-len": 56
                       }]

}
]},

# Logger parameters (that could be shared among several components) start here.
# This section is used by both the DHCPv4 and DHCPv6 servers.
"Logging": {
   "loggers": [{
        "name": "*",
        "severity": "DEBUG"
    }]
}
# Logger parameters end here.


}



Thanks in advance


Drinis


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] KEA DHCPv6 - Problem with Leases

Marcin Siodelski
On 23.08.2017 11:28, Drinis Hallaçi wrote:

> Hello
>
>
> I'm testing KEA DHCPv6 and we are facing a problem with leases.
>
> Every time that a modem reboots it takes a different IP.
>
>
> My config :
>
>
> {
>
>
> "Dhcp6": {
>
>  "mac-sources": ["remote-id", "docsis-cmts","docsis-modem"],
>
>
> "option-data": [
>         {
>            "name": "dns-servers",
>            "code": 23,
>            "space": "dhcp6",
>            "csv-format": true,
>            "data": "xxxx:xxxx:xxxx::xxx, xxxx:xxxx::xx:xx:xx:xx"
>         },
>
>                 ],
>
>
>
>
>         "interfaces-config": {
>         "interfaces": [ "ens224/xxxx:xxxx::xx:xx:xx:xx" ]
>                         },
>
>         "preferred-lifetime": 300,
>         "valid-lifetime": 400,
>         "renew-timer": 100,
>         "rebind-timer": 200,
>
>
> #       "lease-database": {
> #        "type": "memfile",
> #       "persist": true,
> #      "name": "/usr/local/var/kea/kea-leases6.csv",
> #     "lfc-interval": 1800
>
> #       }
>
>
>        "lease-database": {
>            "type": "mysql",
>             "host": "localhost",
>             "name": "dhcp",
>             "password": "password",
>             "user":     "dhcp"
>
>                         },
>
>
>
>
> "subnet6": [
>
>
>
> ##############---SITE2-TESTE--------#############################
>
> {
>
>         "subnet": "xxxx:xxxx:xxxx:x::/64",
>
>         "pools": [{"pool":
> "xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
>         "pd-pools": [{
>                 "prefix": "xxxx:xxxx:xxxx::",
>
>                        }]
> },
>
> ##############---SITE1-C40G--------#############################
> {
>
>         "subnet": " xxxx:xxxx:xxxx:x::0/64",
>         "pools": [{"pool": "
> xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
>         "pd-pools": [{
>                 "prefix": "xxxx:xxxx:xxx::",
>                 "prefix-len": 48,
>                 "delegated-len": 64
>                        }]
>
>
> },
>
> ##############---HUB4-1-CMTS3200--------#############################
>
> {
>         "subnet": "xxxx:xxxx:xxxx:x::/64",
>         "pools": [{"pool": "
> xxxx:xxxx:xxxx:x::xxx-xxxx:xxxx:xxxx:x:ffff:ffff:ffff:ffff"}],
>         "pd-pools": [{
>                 "prefix": "xxxx:xxxx:xxxx::",
>                 "prefix-len": 40,
>                 "delegated-len": 56
>                        }]
>
> }
> ]},
>
> # Logger parameters (that could be shared among several components)
> start here.
> # This section is used by both the DHCPv4 and DHCPv6 servers.
> "Logging": {
>    "loggers": [{
>         "name": "*",
>         "severity": "DEBUG"
>     }]
> }
> # Logger parameters end here.
>
>
> }
>
>
>
> Thanks in advance
>
>
> Drinis
>
>

Hello Drinis,

It would be useful if you could provide capture of the packets being
sent by a particular client before and after its reboot. Alternatively,
a server log that contains log statements from the first lease
allocation and then an allocation after the client's reboot.

Also, what Kea version is this?

Regards,

Marcin Siodelski
ISC

_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users