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:

  1. Intercepts DHCP broadcast packets from equipment.
  2. Forwards them to the specified IP address on the DHCP location server.
  3. 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


  1. Enable DHCP Relay on your network equipment. The activation method depends on the model of the equipment.
  2. Connect to the location server via SSH.
  3. Enter the kea_dhcp docker container:

    docker exec -it kea_dhcp bash
    BASH
  4. 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"
    				]
    			}
    		},
    ...
    CODE

    192.0.2.1, 192.0.2.2 — IP addresses of devices with DHCP Relay