LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dhcp...where is it? (https://www.linuxquestions.org/questions/linux-newbie-8/dhcp-where-is-it-37355/)

nero64 12-04-2002 07:05 PM

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?

neo77777 12-04-2002 07:10 PM

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

Natbobc 12-05-2002 01:19 AM

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

DavidPhillips 12-05-2002 02:32 AM

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




All times are GMT -5. The time now is 04:01 PM.