[Kea-users] Lease same IP for same MAC

Gibbins, John (IM&T, Black Mountain) John.Gibbins at csiro.au
Sun Dec 27 11:06:30 UTC 2020


Hi Roland,

If the client does not request the same IP as it had before you probably need to assign a fixed IP to the device.

I'm assuming you have a config which includes your subnet.  Something like:
...
    "subnet4": [
      {
        "subnet": "192.168.178.0/24",
        ...
      }
    ]
...

To ensure that you always get the same IP you need to create a reservation which maps the MAC to the desired IP.  Such as:
...
    "subnet4": [
      {
        "subnet": "192.168.178.0/24",
        ...
        "reservations": [
          {
            "hw-address": "00:50:56:92:07:82",
            "ip-address": "192.168.178.251"
          }
        ]
      }
    ]
...

You may want to check out the "reservation-mode" attribute if you have both pools and reservations on the same subnet.

Regards
johng
-----Original Message-----
From: Kea-users <kea-users-bounces at lists.isc.org> On Behalf Of rondal
Sent: Sunday, 27 December 2020 9:23 PM
To: kea-users at lists.isc.org
Subject: [Kea-users] Lease same IP for same MAC

Hi, I try to deploy an ubuntu server to vsphere with packer. After
installation has finished the machine reboots an gets an other IP address.
Packer can not complete its work because it is still trying to connect to
the old ip address.

>From the kea log I see the following:

192.168.178.*251*,00:50:56:92:07:82,01:00:50:56:92:07:82,0  
,1609062019,1,1,1,ubuntu-server,0,
192.168.178.*252*,00:50:56:92:07:82,01:00:50:56:92:07:82,4000,1609066573,1,1,1,ubuntu-server,0,

In the client I configure networking (netplan) with dhcp-identifier: mac

- Any ideas how I can tell kea to lease the same ip, in this case *.251,
again?


Best Roland



--
Sent from: http://kea-users.7364.n8.nabble.com/
_______________________________________________
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