Hy every body every where,
I'm with Fedora 19 version.
i've a problem with my dhcp server. I should start it manually at each reboot !
What coul be the reason(s)
this the output of the following command:
[root@serveur ~]# systemctl status dhcpd.service
dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled)
Active: failed (Result: exit-code) since mer. 2013-08-21 18:53:33 CET; 3min 21s ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Process: 841 ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid (code=exited, status=1/FAILURE)
août 21 18:53:33 serveur dhcpd[841]: ** Ignoring requests on em1. If this is not what
août 21 18:53:33 serveur dhcpd[841]: you want, please write a subnet declaration
août 21 18:53:33 serveur dhcpd[841]: in your dhcpd.conf file for the network segment
août 21 18:53:33 serveur dhcpd[841]: to which interface em1 is attached. **
août 21 18:53:33 serveur dhcpd[841]:
août 21 18:53:33 serveur dhcpd[841]:
août 21 18:53:33 serveur dhcpd[841]: Not configured to listen on any interfaces!
août 21 18:53:33 serveur dhcpd[841]:
août 21 18:53:33 serveur systemd[1]: dhcpd.service: main process exited, code=exited, status=1/FAILURE
août 21 18:53:33 serveur systemd[1]: Unit dhcpd.service entered failed state.
[root@serveur ~]#
and this is my dhcpd.conf
Now if i restart the dhcpd manualy , it works and this is what i get:[root@serveur dhcp]# cat dhcpd.conf
#ddns-update-style interim;
ddns-update-style none;
ignore client-updates;
deny client-updates;
#### By red for PXE Booting
#allow booting;
#allow bootp;
### End by red
#log-facility local6;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
##### By red for PXE booting
# class "pxeclients" { match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
# next-server 192.168.0.1;
# filename "linux-install/pxelinux.0"; }
#### End by red
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
# option nis-domain "domain.org";
option domain-name "cabinet.intranet";
option domain-name-servers 192.168.0.1;
option time-offset -18000;
range dynamic-bootp 192.168.0.5 192.168.0.50;
default-lease-time 3600;
max-lease-time 7200;
# we want the nameserver to appear at a fixed address
## by red: ICI on desire reserver des adresses IP fixes a des machines ##
#group {
#use-host-decl-names true;
#### ICI on defini toutes les machines, Administration by red 05/07/2013 ####
host ibmPC {
hardware ethernet 00:c0:9f:fa:be:6c;
fixed-address 192.168.0.2;
}
host ibmPW {
hardware ethernet 00:16:6f:8b:19:18;
fixed-address 192.168.0.3;
}
#} #### End group #####
}
###### End dhcpd.conf #####
[root@serveur dhcp]#
[root@serveur cabinet-serveur-configuration]# systemctl status dhcpd.service
dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled)
Active: active (running) since mer. 2013-08-21 20:33:56 CET; 2min 10s ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Main PID: 1982 (dhcpd)
CGroup: name=systemd:/system/dhcpd.service
└─1982 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
août 21 20:33:56 serveur dhcpd[1982]: ** Ignoring requests on em1. If this is not what
août 21 20:33:56 serveur dhcpd[1982]: you want, please write a subnet declaration
août 21 20:33:56 serveur dhcpd[1982]: in your dhcpd.conf file for the network segment
août 21 20:33:56 serveur dhcpd[1982]: to which interface em1 is attached. **
août 21 20:33:56 serveur dhcpd[1982]:
août 21 20:33:56 serveur dhcpd[1982]: Sending on Socket/fallback/fallback-net
août 21 20:33:58 serveur dhcpd[1982]: DHCPDISCOVER from 00:c0:9f:fa:be:6c via p3p1
août 21 20:33:58 serveur dhcpd[1982]: DHCPOFFER on 192.168.0.2 to 00:c0:9f:fa:be:6c via p3p1
août 21 20:33:58 serveur dhcpd[1982]: DHCPREQUEST for 192.168.0.2 (192.168.0.1) from 00:c0:9f:fa:be:6... p3p1
août 21 20:33:58 serveur dhcpd[1982]: DHCPACK on 192.168.0.2 to 00:c0:9f:fa:be:6c via p3p1
[root@serveur cabinet-serveur-configuration]#
Thanks a lot for your kind help
red


Reply With Quote
