LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2002, 08:05 PM   #1
nero64
LQ Newbie
 
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
dhcp...where is it?


I don't seem to have dhcp running properly. I don't have the dhcpd.conf file in /etc and when i try starting the dhcpd in /etc/rc.d/init.d/ i get nothing.

When i do rpm -q dhcp it tells me dhcp-2.0p15-4 is installed.

Ok! where has the rookie gone wrong?
 
Old 12-04-2002, 08:10 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Is your system acting like DHCP server or client?
rpm -qs dhcp | less
will give you all the files that were installed with DHCP rpm, look there for dhcp.conf
 
Old 12-05-2002, 02:19 AM   #3
Natbobc
LQ Newbie
 
Registered: Dec 2002
Posts: 9

Rep: Reputation: 0
Hello,

If you're making a dhcp server then you use dhcpd. If you want your machine to use dhcp then you need dhcpcd (dhcp client daemon). Assuming you are using a client based approach simply type:

dhcpcd eth0

If this is totally the opposite direction you were looking, I appologize in advance. Hopefully it wasn't completely useless though .

Regards,

Nathan
 
Old 12-05-2002, 03:32 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I assume you are running a server since you mention the config file

you will need to create it, there is no default, probably because it will not work anyway, it is very system specific.

You may also need to create the dhcpd.leases file but you will be informed if it's necessary when starting dhcpd

After creating the dhcpd.conf file start it like this

check this..

chkconfig --list dhcpd

you most likely want 0:off 1:off 2:off 3:on 4:on 5:on 6:off

set it with this..

chkconfig --level 126 dhcpd off
chkconfig --level 345 dhcpd on


if it's not listed in chkconfig do this first..

chkconfig --add dhcpd




to start it use this..
/etc/rc.d/init.d/dhcpd start



Last edited by DavidPhillips; 12-05-2002 at 03:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 06:43 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 10:34 AM
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 09:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM


All times are GMT -5. The time now is 08:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration