DHCP relay

  • DHCP relay service will not start. Running Sept 14, 2020 dev build and DHCrelay works. Update to latest build and DHCrelay stops working. Not sure what info is needed. I've installed Build Sept 14, 2020 in a VM to verify that it works and stops working after updating to latest build. DHCrelay can be started manually from the command line using full syntax. Can stop with GUI via services and will not restart.

  • @BeingMoody2 Check the logs, system and dhcp for clues.

  • Also seeing this issue, nothing in the logs to indicate the service even tried to start.

    2.5.0-DEVELOPMENT (amd64)
    built on Mon Sep 28 07:01:24 EDT 2020

    Edit 2:
    Found this in the system log:
    /services_dhcp_relay.php: No suitable upstream interfaces found for running dhcrelay!

    I have DHCP relay configured on 2 VLAN interfaces for my WiFi networks.

  • The error "No suitable upstream interfaces found for running dhcrelay!" seems to come from the function guess_interface_from_ip($ipaddress) not returning a valid interface for whatever reason. I've yet to track the changes to see what borked it.

    Edit 1:
    guess_interface_from_ip($ipaddress) return $false because route_get($ipaddress) returns array(0) for my LAN network.. the investigation continues..

    php > var_dump(route_get(''));
    array(1) {
      array(7) {
        string(12) ""
        string(6) "link#2"
        string(3) "UHS"
        array(3) {
          string(2) "up"
          string(4) "host"
          string(6) "static"
        string(3) "lo0"
    php > var_dump(route_get(''));
    array(0) {


    This code should probably handle subnets? is in the subnet which there is a route for, but the code just checks if the destination matches.

    $result = array();
    	foreach ($rtable[$family] as $item) {
    		if ($item['destination'] == $target) {
    			$result[] = $item;


  • Today Oct 14,2020 updated to latest dev build.
    2.5.0-DEVELOPMENT (amd64)
    built on Wed Oct 14 07:02:29 EDT 2020
    dhcrelay now works correctly without needing any additional work arounds. Not sure what changed from Sept 14th to Oct 14th.

Log in to reply