[Kea-users] one interface, multiple subnets
Francis Dupont
fdupont at isc.org
Mon Oct 23 09:28:39 UTC 2017
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>
More information about the Kea-users
mailing list