Marco Broglia writes:
We've tested it, and it (almost) worked.

Server is 10.1.1.11/24.

Why almost ? Because the following conf does not work: there are no
subnet section in the same server subnet:

=> there is no subnet which matches incoming packets. You need an
interface or another subnet entry for 10.1.1.0/24: with one of these
a subnet of the shared-network will be selected and host reservations
applied.

---
"Dhcp4": {
   "interfaces-config": {
       "interfaces": [ "em0" ],
       "dhcp-socket-type": "raw"
   },

   ...

   "shared-networks": [ {
     "name": "shared-test",
     "subnet4": [
       {
         "subnet": "10.1.2.0/24",
         "id": 1012,
         "option-data": [
           { "name": "routers",           "data": "10.1.2.254" },
           { "name": "broadcast-address", "data": "10.1.2.255" }
         ],
         "reservations": [
           { "hw-address": "mac1", "ip-address": "10.1.2.22" }
         ]
       },
       {
         "subnet": "10.1.3.0/24",
         "id": 1013,
         "option-data": [
           { "name": "routers",           "data": "10.1.3.254" },
           { "name": "broadcast-address", "data": "10.1.3.255" }
         ],
         "reservations": [
           { "hw-address": "mac2", "ip-address": "10.1.3.33" }
         ]

     ]
   } ],

   ...

},
---

BUT, if we add the following section:

---
       {
         "subnet": "10.1.1.0/24",
         "id": 1011,
         "option-data": [
           { "name": "routers",           "data": "10.1.1.254" },
           { "name": "broadcast-address", "data": "10.1.1.255" }
         ],
         "reservations": [
           { "hw-address": "fake mac", "ip-address": "10.1.1.11" }
         ]
       },
---

then the server works and give the two ip (10.1.2.22 and 10.1.3.33)
correctly, also if we don't use subnet 10.1.1.0/24 for dynamic dhcp.

=> you use it only to get it selected on reception.

Thanks

Francis Dupont <fdupont at isc.org>

Fine.

We'd like to know if you have feedback for that kind of (new) feature (shared-networks with lots of reservations) for medium environment and if you experienced problems.

We have about 100 subnet with about 12'000 reservations.

Thanks.

Bye.
Marco Broglia.

--
% Marco Broglia
% via per Vimodrone 9, 20093 Cologno Monzese (MI)
% email: [email protected]
_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to