Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Help in using DHCP, Help in using DHCP
arshad_iraq
post Jan 21 2006, 12:35 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 17-January 06
Member No.: 5,975



I am using DHCP 3.0.3 on Redhat FC4 and i use the steps that given but the following error apear when i type /usr/sbin/dhcpd start
:-
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No subnet declaration for start (0.0.0.0).
** Ignoring requests on restart. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface restart is attached. **
Not configured to listen on any interfaces!

and me /etc/dhcpd.conf look like :-
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "compdept.edu";
option domain-name "compdept.edu";
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200; }
and i have enabled /var/lib/dhcp/dhcpd.leases
Can anyone tell me way it n't start?????
Go to the top of the page
 
+Quote Post
michaelk
post Jan 21 2006, 04:32 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



Be sure to add an entry to the /etc/sysconfig/dhcpd file to specify the interface
DHCPDARGS=eth0 (Change eth0 for your actual interface )

Also use the init.d service scripts to start, stop dhcpd i.e.
service dhcpd start
service dhcpd stop
or
service dhcpd restart
Go to the top of the page
 
+Quote Post
arshad_iraq
post Jan 21 2006, 08:39 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 17-January 06
Member No.: 5,975



I had changed /etc/sysconfig/dhcpd to eth0 and i try to use service dhcpd start but it Failed so as /usr/sbin/dhcpd start
is there a realtion between Bind and DHCP ?
Go to the top of the page
 
+Quote Post
michaelk
post Jan 22 2006, 05:55 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



QUOTE
/usr/sbin/dhcpd start

start is not a valid command line option for dhpcd. It fails because start is not defined.

When you try starting dhcpd via the service command what are the errors? Look at the output of the file /var/log/messasges and post anything relevant to dhcpd.

I do not use bind so I am not aware of anything.
Go to the top of the page
 
+Quote Post
arshad_iraq
post Jan 23 2006, 02:46 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 17-January 06
Member No.: 5,975



The messages files write the following :

Can't open lease database /var/lib/dhcp/dhcpd.leases: Permission denied --
check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.

i try to make changes in the permissions or to retype the code

touch /var/lib/dhcp/dhcpd.leases or touch /var/db/dhcpd.leases

but no way it failed
Go to the top of the page
 
+Quote Post
michaelk
post Jan 23 2006, 07:15 AM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



It appears that the lease file has the wrong permissions. I will verify and post back.
Go to the top of the page
 
+Quote Post
michaelk
post Jan 23 2006, 01:44 PM
Post #7


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



What are the permissions of /var/lib/dhcp/dhcpd.leases
Should be -rw-r--r-- and the owner should be root.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 02:53 AM