[solved] dhcpd can't start on all interfaces

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Hello,
Systemctl gives me:
● dhcpcd.service loaded failed failed    dhcpcd on all interfaces

So I'm not sure what's the really impact of the failed state of dhcpd service. What's your recommendation?
Tips: You should display more informations in "Services and power" (such as the detail status of each service, with the error). And add the service "logrotate"?



Code:
sudo ./init_dhcpd start
isc-dhcpd-4.4.2
ls: cannot access '/opt/keexybox/dhcpd/dhcpcd*.pid': No such file or directory
Internet Systems Consortium DHCP Server 4.4.2
Copyright 2004-2020 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /opt/keexybox/dhcpd/etc/dhcpd.conf
Database file: /opt/keexybox/dhcpd/etc/dhcpd.leases
PID file: /opt/keexybox/dhcpd/dhcpcd.pid
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 13 leases to leases file.
Multiple interfaces match the same shared network: br0 br0:0
Listening on LPF/br0/dc:a6:32:d3:52:ea/local_net
Sending on   LPF/br0/dc:a6:32:d3:52:ea/local_net
Sending on   Socket/fallback/fallback-net





dhcpd.conf
Code:
pi@raspberrypi:/opt/keexybox/dhcpd/etc $ cat dhcpd.conf
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE


ddns-update-style none;

option domain-name "keexybox";

default-lease-time 600;
max-lease-time 7200;

log-facility local7;

class "external_host" {
            match hardware;
}

class "internal_host" {
            match hardware;
}

include "/opt/keexybox/dhcpd/etc/dhcpd-reservations.conf";

shared-network local_net {
        # INTERNET ROUTER SIDE
    subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers 192.168.1.254;
                option domain-name-servers 192.168.1.1;
                pool {
                range 192.168.1.151 192.168.1.201;
                        allow members of "external_host";
                        deny unknown-clients;
                }
    }

        # USER AND DEVICES SIDE
    subnet 192.168.0.0 netmask 255.255.255.0 {
        option routers 192.168.0.254;
                option domain-name-servers 192.168.0.254;
                pool {
                range 192.168.0.1 192.168.0.100;
                        allow members of "internal_host";
                        allow unknown-clients;
                }
    }
}

Do we need to indicate which scope is autoritative?


Code:
more dhcpd-reservations.conf
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE


host ajonc {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.37;
}
subclass "internal_host" MACaddress;

host Printer-Pixma {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.3;
}
subclass "internal_host" MACaddress;

host Freebox-Mini {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.4;
}
subclass "internal_host" MACaddress;


/opt/keexybox/dhcpd/etc/interfaces.conf
Code:
export LISTENING_INTERFACES="br0"


and
Code:
more /etc/network/interfaces
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# Auto load interfaces
auto lo br0 br0:0
iface lo inet loopback

# Hotplug interfaces
allow-hotplug br0 br0:0


# Output network configuration
iface br0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.254
    dns-nameservers 208.67.222.222 8.8.4.4

    bridge_ports eth0
    bridge_stp off
    bridge_waitport 0
    bridge_waitport 0

# Internal network configuration
iface br0:0 inet static
    address 192.168.0.254
    netmask 255.255.255.0


On each PC, DHCP server is set to 192.168.1.1 (instead of 192.168.0.254 i think)


By the way, there is an issue with the time zone in the GUI. My timezone is Europe/Paris  but when I checked in raspi-config it was "London".



Code:
Rq:
I'm using raspberry 4 with a for website filtering and anonymity. First for parental control, and a little for ad blocker.
internal interface of Keexybox: 192.168.0.254
external interface of Keexybox:192.168.1.1
router interface: 192.168.1.254

GW: 192.168.1.254
DNS1: 208.67.222.222
DNS2: 8.8.4.4

DNS Redirector: enabled

DHCP conf is (on the same interface so: Bro):
internal: range 192.168.0.1 to 100
external: range 192.168.1.251 to  201
Reply
#1
Hello,
Systemctl gives me:
● dhcpcd.service loaded failed failed    dhcpcd on all interfaces

So I'm not sure what's the really impact of the failed state of dhcpd service. What's your recommendation?
Tips: You should display more informations in "Services and power" (such as the detail status of each service, with the error). And add the service "logrotate"?



Code:
sudo ./init_dhcpd start
isc-dhcpd-4.4.2
ls: cannot access '/opt/keexybox/dhcpd/dhcpcd*.pid': No such file or directory
Internet Systems Consortium DHCP Server 4.4.2
Copyright 2004-2020 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /opt/keexybox/dhcpd/etc/dhcpd.conf
Database file: /opt/keexybox/dhcpd/etc/dhcpd.leases
PID file: /opt/keexybox/dhcpd/dhcpcd.pid
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 13 leases to leases file.
Multiple interfaces match the same shared network: br0 br0:0
Listening on LPF/br0/dc:a6:32:d3:52:ea/local_net
Sending on   LPF/br0/dc:a6:32:d3:52:ea/local_net
Sending on   Socket/fallback/fallback-net





dhcpd.conf
Code:
pi@raspberrypi:/opt/keexybox/dhcpd/etc $ cat dhcpd.conf
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE


ddns-update-style none;

option domain-name "keexybox";

default-lease-time 600;
max-lease-time 7200;

log-facility local7;

class "external_host" {
            match hardware;
}

class "internal_host" {
            match hardware;
}

include "/opt/keexybox/dhcpd/etc/dhcpd-reservations.conf";

shared-network local_net {
        # INTERNET ROUTER SIDE
    subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers 192.168.1.254;
                option domain-name-servers 192.168.1.1;
                pool {
                range 192.168.1.151 192.168.1.201;
                        allow members of "external_host";
                        deny unknown-clients;
                }
    }

        # USER AND DEVICES SIDE
    subnet 192.168.0.0 netmask 255.255.255.0 {
        option routers 192.168.0.254;
                option domain-name-servers 192.168.0.254;
                pool {
                range 192.168.0.1 192.168.0.100;
                        allow members of "internal_host";
                        allow unknown-clients;
                }
    }
}

Do we need to indicate which scope is autoritative?


Code:
more dhcpd-reservations.conf
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE


host ajonc {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.37;
}
subclass "internal_host" MACaddress;

host Printer-Pixma {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.3;
}
subclass "internal_host" MACaddress;

host Freebox-Mini {
        hardware ethernet MACaddress;
        fixed-address 192.168.0.4;
}
subclass "internal_host" MACaddress;


/opt/keexybox/dhcpd/etc/interfaces.conf
Code:
export LISTENING_INTERFACES="br0"


and
Code:
more /etc/network/interfaces
# GENERATED BY KEEXYBOX WEBUI
# DO NOT EDIT THIS FILE

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# Auto load interfaces
auto lo br0 br0:0
iface lo inet loopback

# Hotplug interfaces
allow-hotplug br0 br0:0


# Output network configuration
iface br0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.254
    dns-nameservers 208.67.222.222 8.8.4.4

    bridge_ports eth0
    bridge_stp off
    bridge_waitport 0
    bridge_waitport 0

# Internal network configuration
iface br0:0 inet static
    address 192.168.0.254
    netmask 255.255.255.0


On each PC, DHCP server is set to 192.168.1.1 (instead of 192.168.0.254 i think)


By the way, there is an issue with the time zone in the GUI. My timezone is Europe/Paris  but when I checked in raspi-config it was "London".



Code:
Rq:
I'm using raspberry 4 with a for website filtering and anonymity. First for parental control, and a little for ad blocker.
internal interface of Keexybox: 192.168.0.254
external interface of Keexybox:192.168.1.1
router interface: 192.168.1.254

GW: 192.168.1.254
DNS1: 208.67.222.222
DNS2: 8.8.4.4

DNS Redirector: enabled

DHCP conf is (on the same interface so: Bro):
internal: range 192.168.0.1 to 100
external: range 192.168.1.251 to  201
Reply
#2
Hello,

dhcpcd is not a service managed by keexybox. This is a DHCP client installed by default in raspios/debian. Many users are confused between dhcpcd and dhcpd service.

You can simply ignore this error.
Reply
#2
Hello,

dhcpcd is not a service managed by keexybox. This is a DHCP client installed by default in raspios/debian. Many users are confused between dhcpcd and dhcpd service.

You can simply ignore this error.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)