Operating System - Linux
1830345 Members
2745 Online
110001 Solutions
New Discussion

Re: DHCPD SERVICE CAN'T START

 
Sakui
Frequent Advisor

DHCPD SERVICE CAN'T START

I AM USING A RED HAT LINUX 9. i HAVE SUCCESSFULLY INSTALLED AND CONFIGURED THE DHCP SERVICE. I COPIED THE SAMPLE CONGIURATION FILE FROM /USR/SHARE/DOC/DHCP AND RENAME THE FILE IN INTO THE /ETC DIRECTORY. /ETC/DHCP.CONF. I EDITED THE FILE AND ADDED MY OWN SETTINGS.WHEN I START THE SERVICE, I DON'T SEE NO STATUS AND NO ERROR. I APPLIED THE FF COMMAND service dhcpd start and service dhcpd status.IT'S DOESN'T GIVE ANY ERROR.SO WHAT IS THE PROBLEM.
9 REPLIES 9
Vitaly Karasik_1
Honored Contributor

Re: DHCPD SERVICE CAN'T START

can you please send you dhcp.conf?

did you check /var/log/messages?
Sakui
Frequent Advisor

Re: DHCPD SERVICE CAN'T START

ddns-update-style interim;
ignore client-updates;

subnet 192.168.50.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.50.1;
option subnet-mask 255.255.255.0;

# option nis-domain "";
option domain-name "liberian.org";
option domain-name-servers 192.168.50.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.50.5 192.168.50.255;
default-lease-time 21600;
max-lease-time 43200;
"dhcp.conf" 31L, 851C 1,1 Top


There is no error log in the /var/log/messages about the dhcp.
Vitaly Karasik_1
Honored Contributor

Re: DHCPD SERVICE CAN'T START

it seems like you didn't close

subnet 192.168.50.0 netmask 255.255.255.0 {

definition. I mean - there is no appropriate "}".
Volker Spies
Trusted Contributor

Re: DHCPD SERVICE CAN'T START

Hello Sakui,

there ist no closing bracket "}" in your Subnet definition.

Is stated in your /var/log/messsages that the dchp daemon ist started? Or are there no messages at all regarding dhcp?

Regards

Volker
Gopi Sekar
Honored Contributor

Re: DHCPD SERVICE CAN'T START

in case of problem with your dhcpd.conf then you should be able to get the error by validating the dhcpd.conf file.

check it by 'dhcpd -t' option

Also I hope you are running this as root user. Try running 'service dhcpd start' and post the entire output here. Let us take a look at it.

Regards,
Gopi
Never Never Never Giveup
Sakui
Frequent Advisor

Re: DHCPD SERVICE CAN'T START


i did close brace and restarted the dhcp daemon again and there was no error and only the prompt sign appear again like when you hit the enter key twice in the terminal screen. i was expecting to see "ok" the service has started or any error message.but nothing at all.
Gopi Sekar
Honored Contributor

Re: DHCPD SERVICE CAN'T START


what is the output of 'dhcpd -t' did it give any error on the screen?

Another reason could be that already another instance of dhcpd running which prevents this dhcpd to start. Try 'service dhcpd restart'

Regards,
Gopi
Never Never Never Giveup
Sakui
Frequent Advisor

Re: DHCPD SERVICE CAN'T START


i try the dhcpd-t option nothing appear expect the prompt sign. I really want to know how to uninstalled a sevice in linux or a package.
Ivan Ferreira
Honored Contributor

Re: DHCPD SERVICE CAN'T START

Use tail -f /var/log/messages, then after a few ENTERS, restart the DHCP service in another terminal.

To uninstall? a service/package you need to run rpm -qa |grep package-name, and then use rpm -e package name to delete the package.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?