LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DHCPD error, Fedora 13 (https://www.linuxquestions.org/questions/linux-newbie-8/dhcpd-error-fedora-13-a-834200/)

jerrybuilt 09-24-2010 05:08 AM

DHCPD error, Fedora 13
 
I am trying to configure a Fedora 13 server, simple installation, for PXE boot installation to install Xenserver

I have obviously made a basic error in my dhcpd.conf file (please see below)

The effect is that the DHCPD service does not run automatically, I have to run /etc/init.d/network restart before DHCPD runs on my server. Any ideas anyone?

Many thanks

#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
DHCPDARGS=eth0;

subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.10 192.168.1.30;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.100;
default-lease-time 600;
max-lease-time 7200;
}
host clientname{
filename "/tftpboot/xenserver/install.img";
}


allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.1.8;
filename "linux-install/pxelinux.0";
}

jerrybuilt 09-24-2010 05:46 AM

Sorry guys but my problems seems mor basic than with the dhcpd.conf file, I've just noticed that eth0 does not start on boot up, I have to run /etc/init.d/network restart before the NIC will start, here are my eth0 configs

Many thanks

# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=F2:BF:5F:80:3F:1B
IPADDR=192.168.1.8
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
TYPE=Ethernet

prayag_pjs 09-24-2010 05:59 AM

do this
Quote:

system-config-network
click on eth0
Check the Option Activate the device when computer start

restart network service
Quote:

/etc/init.d/network restart

/etc/init.d/NetworkManger restart

jerrybuilt 09-24-2010 06:12 AM

Sorry Prayag, I should have said, I am non GUI, command line only.

Thanks


All times are GMT -5. The time now is 04:57 AM.