Hello
My LAN interface card died so I put another one in - gone through the server config - defined the new LAN interface card, but now the DCHPd does not start. I am able to connect via a fixed ip, but not with dhcp (so the new interface card works).
Output from
journalctl -xe
journalctl -xe
-- Unit dhcpd.service has begun starting up.
Sep 17 17:31:15 servername dhcpd[22630]: Internet Systems Consortium DHCP Server 4.2.5
Sep 17 17:31:15 servername dhcpd[22630]: Copyright 2004-2013 Internet Systems Consortium.
Sep 17 17:31:15 servername systemd[1]: dhcpd.service: main process exited, code=exited, status=1/FAILURE
Sep 17 17:31:15 servername dhcpd[22630]: All rights reserved.
Sep 17 17:31:15 servername systemd[1]: Failed to start DHCPv4 Server Daemon.
-- Subject: Unit dhcpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dhcpd.service has failed.
--
-- The result is failed.
Sep 17 17:31:15 servername dhcpd[22630]: For info, please visit https://www.isc.org/software/dhcp/
Sep 17 17:31:15 servername systemd[1]: Unit dhcpd.service entered failed state.
Sep 17 17:31:15 servername dhcpd[22630]: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Sep 17 17:31:15 servername systemd[1]: dhcpd.service failed.
Sep 17 17:31:15 servername dhcpd[22630]: Wrote 0 deleted host decls to leases file.
Sep 17 17:31:15 servername dhcpd[22630]: Wrote 0 new dynamic host decls to leases file.
Sep 17 17:31:15 servername dhcpd[22630]: Wrote 0 leases to leases file.
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]: No subnet declaration for dummy0 (no IPv4 addresses).
Sep 17 17:31:15 servername dhcpd[22630]: ** Ignoring requests on dummy0. If this is not what
Sep 17 17:31:15 servername dhcpd[22630]: you want, please write a subnet declaration
Sep 17 17:31:15 servername dhcpd[22630]: in your dhcpd.conf file for the network segment
Sep 17 17:31:15 servername dhcpd[22630]: to which interface dummy0 is attached. **
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]: Not configured to listen on any interfaces!
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]: This version of ISC DHCP is based on the release available
Sep 17 17:31:15 servername dhcpd[22630]: on ftp.isc.org. Features have been added and other changes
Sep 17 17:31:15 servername dhcpd[22630]: have been made to the base software release in order to make
Sep 17 17:31:15 servername dhcpd[22630]: it work better with this distribution.
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]: Please report for this software via the CentOS Bugs Database:
Sep 17 17:31:15 servername dhcpd[22630]: http://bugs.centos.org/
Sep 17 17:31:15 servername dhcpd[22630]:
Sep 17 17:31:15 servername dhcpd[22630]: exiting.
Sep 17 17:31:30 servername systemd[1]: Reloaded masq, the Koozali SME Server firewall script.
-- Subject: Unit masq.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit masq.service has finished reloading its configuration
--
-- The result is done.
And output from
systemctl status dhcpd.service
systemctl status dhcpd.service
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor preset: enabled)
Drop-In: /usr/lib/systemd/system/dhcpd.service.d
└─50koozali.conf
Active: failed (Result: exit-code) since Sam 2022-09-17 17:31:15 CEST; 18s ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Process: 22630 ExecStart=/usr/bin/sh -c exec /usr/sbin/dhcpd -f -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases -user dhcpd -group dhcpd --no-pid dummy0 >>/var/log/dhcpd/current 2>>/var/log/dhcpd/current (code=exited, status=1/FAILURE)
Process: 22625 ExecStartPre=/bin/touch /var/lib/dhcpd/dhcpd.leases (code=exited, status=0/SUCCESS)
Process: 22602 ExecStartPre=/sbin/e-smith/expand-template /etc/dhcpd.conf (code=exited, status=0/SUCCESS)
Process: 22590 ExecStartPre=/sbin/e-smith/service-status dhcpd (code=exited, status=0/SUCCESS)
Main PID: 22630 (code=exited, status=1/FAILURE)
Sep 17 17:31:14 www.pdorf.at systemd[1]: Starting DHCPv4 Server Daemon...
Sep 17 17:31:15 www.pdorf.at dhcpd[22630]: Internet Systems Consortium DHCP Server 4.2.5
Sep 17 17:31:15 www.pdorf.at systemd[1]: dhcpd.service: main process exited, code=exited, status=1/FAILURE
Sep 17 17:31:15 www.pdorf.at systemd[1]: Failed to start DHCPv4 Server Daemon.
Sep 17 17:31:15 www.pdorf.at systemd[1]: Unit dhcpd.service entered failed state.
Sep 17 17:31:15 www.pdorf.at systemd[1]: dhcpd.service failed.
I don't know where the "dummy0" interface comes from, the actual interface name is now enp8s2
Is it possible to change the interface somewhere?
I have tried to go back to the old interface card, configure the server again - reboot, and then again the new interface card, and configured it again, reboot - no success, dhcp comes up with the dummy0 interface.
(The server is on SME 10.1)
I get rid of dummy0 with
ip link delete dummy0
but still no avail.
best regards
Martin