LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2005, 10:50 PM   #1
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Rep: Reputation: 0
DHCP Server


Hi there!

Anyone there can tell me how to automatically enable DHCP server upon boot up? I have already installed DHCP package, already have /etc/dhcpd.conf file. I issue these command to have DHCP running:

1. touch /var/lib/dhcp/dhcpd.leases
2. /etc/init.d/dhcpd start
3. chkconfig dhcpd on

The DHCP server is perfectly rinning after the above commands, my windows XP workstation can successfully acquire IP address but when I reboot my Linux and issue "ipconfig /renew" on my workstation it can't acquire IP address. I have to run the above commands again in order for DHCP to get started.

Thanks!
 
Old 08-11-2005, 10:58 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
chkconfig dhcpd on should be sufficient. What does 'chkconfig --list | grep dhcpd' show?
 
Old 08-11-2005, 11:22 PM   #3
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
Hello Matir,

Thank you for your reply. Yeah, that's what the tutorial is saying. But, I don't know, for some reason my workstation is not acquiring IP address. I will issue that command and check it when I get back home, I'm in the office right now.
 
Old 08-12-2005, 05:46 AM   #4
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, I'm back home..

I lurn on my linux box with, supposed to be, DHCP running after that I turn on my windows XP workstation. Still XP doesn't acquired IP address.

Here's what it shows when I issue 'chkconfig --list | grep dhcpd' command:

[username@r220-101-34-130 ~]$ /sbin/chkconfig --list | grep dhcpd
dhcpd 0ff 1ff 2n 3n 4n 5n 6ff

What does this mean?
 
Old 08-12-2005, 05:52 AM   #5
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
What the heck... how can I turn off the emoticons?
The output is '0 semi-colon off' '1 semi-colon off' '2 semi-colon on' and so on and so forth...
 
Old 08-12-2005, 08:52 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Hrrm, that would imply that the dhcpd server should be started in runlevels 2,3,4, and 5. I would assume you're not booting your system into single user mode, right?

(oh, and if you use the non-quick reply mechanism, there's a button to disable smilies).
 
Old 08-12-2005, 11:11 AM   #7
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
I had a problem getting DHCP running at home. I editted the rc.local file. I don't remember what I put in, but I think it was "/etc/init.d/dhcpd start &"

I'll check when I get home. This was in Slackware 10.0

Hope this helps.

F_M
 
Old 08-12-2005, 09:05 PM   #8
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, I created 2 users for testing purposes.. I noticed that, while I'm booting my linux box and I click on show details, the 'touch /var/lib/dhcp/dhcpd.leases' command has an error of "permission denied" and so the '/etc/init.d/dhcpd start' will fail to load - I assumed. What do I have to do now?
 
Old 08-13-2005, 09:01 PM   #9
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
C'mon, I know somebody knows how to do this..
 
Old 08-13-2005, 09:15 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What are the permissions on /var/lib/dhcp/dhcpd.leases?
 
Old 08-14-2005, 07:30 PM   #11
eagleswings
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Fedora Core 4, SuSE 9.2
Posts: 19

Original Poster
Rep: Reputation: 0
I think the permission is:

-rw-r--r-- root root

I'm in the office right now but I'm pretty much sure of the permission above because I've tried chmod it to 'a+x' yesterday (not sure if that's the right thing) but nothing happened. Next thing I will do is to chmod it to 'a+w'. Do you think that will solve the problem?

Thanks!
 
Old 08-22-2005, 07:50 AM   #12
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
I think that if you su first, and then do the "touch /var/lib/dhcp/dhcpd.leases" it will work. Basically all this is doing is creating a blank dhcpd.leases file. Once you do the touch, you can exit out of root.

F_M

P.S. Sorry about not getting back to this sooner, I was leaving on vacation and time got away from me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration