Click to See Complete Forum and Search --> : starting eth0 on a DHCP server?


richfolk
07-23-2002, 11:11 AM
Hi
I am having some trouble starting eth0 on my machine that is running a DHCP server. The DHCP server is started and when I run /etc/rd.d/init.d/network restart, eth0 fails when it tries to determine it's IP.

If the DHCP server is going out on eth0, can eth0 be configured by DHCP?

warakiya
07-23-2002, 11:35 AM
I've had similar problems in the past using RedHat 7.*. I use Road Runner and for some reason DHCP can't determine an IP address from time to time, so eth0 goes out. First check your network setup, and if everything seems right in there try a newer network adapter. I don't like to tinker, and I got it working just fine.

richfolk
07-23-2002, 11:38 AM
I guess I should give some more info.

here is my dhcpd.conf file

# vectra dhcp server configuration file
# last updated 7/23/02
#
default-lease-time 720;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
#option routers 192.168.0.1;
#option domain-name-servers 192.168.0.1;
option domain-name "foulkes.org";

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.250;
}

host vectra {
hardware ethernet 00:C0:F0:3E:C8:48;
fixed-address 192.168.0.1;
}


the host vectra is the machine the server is running on and I was thinking I would always assign it the same IP.

warakiya
07-23-2002, 11:43 AM
Forgive me if I'm wrong, but isn't DHCP for configuring dynamic IP addresses? It sounds like you have a static setup...

cowanrl
07-23-2002, 12:03 PM
Eth0 cannot be configured to use DHCP if that's the interface your DHCP server is going out on. You'll need to assign a static IP address to it.