1822000 Members
3696 Online
109639 Solutions
New Discussion юеВ

DHCP and DHCPD

 
John Schultz_3
Advisor

DHCP and DHCPD

I am having another issue that i am unable to resolve.

Here is the problem:
When I connect my RH Linux 7.2 server to the internet to eth0 my cable modem and hub goes nuts. When I check PS -AX | grep DHCP, There is an entry for ..../dhcpd -n eth0. Unfortunately I can not have this due to the fact that this is the ATTBI connection. When I kill the process for the DHCP -n eth0 i then lose eth0 from ifconfig. And when I enable eth0, sure and behold, the connection does the same thing AGAIN. when I check PS -AX again, the same entry is back (only with a different PID). I have even gone as far as changing the ethernet configuration (eth0 -> eth1, and vice versa). When I attempt to start the DHCP server again, I get an errormessage stating that I need to supplu subnet parameters in the dhcpd.conf file.

Here is my dhcpd.conf file:
option netbios-name-servers 192.168.0.250;
option netbios-dd-server 192.168.0.250;
option domain-name-servers 192.168.0.250;
option domain-name "attbi.com";
option routers 192.168.0.250;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.0.0;
allow unknown-clients;
default-lease-time 31536000;
max-lease-time 31536000;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
host jschultz-laptop {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.0.3;
}
host jschultz-desk {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.0.2;
}
}
subnet 12.254.199.73 netmask 255.255.254.0 {
}

And I have tried changing "subnet 12.254.199.73 netmask 255.255.254.0" to "subnet 12.254.199.0 netmask 255.255.254.0"

Thanx in advanced for any assistance :)
2 REPLIES 2
Kodjo Agbenu
Honored Contributor

Re: DHCP and DHCPD

Hi,

Are you talking about dhcpd or dhcpcd ? dhcpd is the server daemon and dhcpcd is the client daemon.

When you decide to boot your LAN connection using dhcp, the client daemon dhcpcd is started with the parameters stored in /etc/sysconfig/network-scripts/ifcfg-eth0.

If the BOOTPROTO parameter is set to "dhcp", then "dhcpcd" is automatically started during boot process. If you kill this daemon, the networking interface disappears.

To avoid doing this, change your network configuration to make it static.

In /etc/sysconfig/network-scripts/ifcfg-eth0 :

DEVICE=eth0
BOOTPROTO=static
BROADCAST=
IPADDR=
NETMASK=
NETWORK=
ONBOOT=yes

Good luck.

Kodjo
Learn and explain...
John Schultz_3
Advisor

Re: DHCP and DHCPD

ok, clarification :)
eth0 is connected to ATTBI (it has to be set to obtain an IP from ATTBI) and the ETH1 is my private network and it needs to listen for requests.