In order for the location server and equipment to communicate via DHCP, they must be in the same L2 network segment. You can bypass this restriction by using the DHCP Relay function on your network equipment.
Network device with DHCP Relay:
- Intercepts DHCP broadcast packets from equipment.
- Forwards them to the specified IP address on the DHCP location server.
- Returns responses from the DHCP server to the equipment.
Before enabling DHCP Relay, make sure that your network settings allow you to use this feature.
Setup procedure
- Enable DHCP Relay on your network equipment. The activation method depends on the model of the equipment.
- Connect to the location server via SSH.
-
Enter the kea_dhcp docker container:
Container names may differ depending on the used version of Docker Compose. A hyphen may be used instead of the underscore character in container names.
To get the exact names of the containers, run the command:
docker ps -a
docker exec -it kea_dhcp bash
-
Add addresses of devices with DHCP Relay to the shared-networks section of the /etc/kea/kea-dhcp4.conf config file:
Example... "shared-networks": [ { "name": "shared_dci", "relay": { "ip-addresses": [ "192.0.2.1", "192.0.2.2" ] } }, ...
Comments