Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
class "pxe"
{
match if substring(option vendor-class-identifier,0,9)="PXEClient";
}
class "etherboot"
{
match if substring(option vendor-class-identifier,0,9)="Etherboot";
}
# Subnet for PXE boot installation
subnet 192.168.0.0 netmask 255.255.255.0
{
option broadcast-address 192.168.0.255;
pool
{
range 192.168.0.202 192.168.0.203;
default-lease-time 180;
max-lease-time 360;
server-name "192.168.0.103"; # IP of DHCP server means own IP
allow members of "pxe";
allow members of "etherboot";
}
}
host # rcdhcpd restart
My host is cramiping showing following error
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
No subnet declaration for “eth0” (0.0.0.0).
** Ignoring requests on “eth0”. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface “eth0” is attached. **
Not configured to listen on any interfaces!
Anybody has idea what's going wrong ?
Thanks in advance
Thanks for the reply(@Zmyrgel and @odcheck)
I have tried DHCPARGS with eth0
as well as network interface with ip but problem still persists.
Any more ideas.
Are you sure that dhcpd service is started?
And Do you really only want a DHCP Server nothing else? If so then backup this dhcpd.conf in /etc and replace it
with the one .../share/doc/dhc****/dhcpd.sample.conf
change the values within it and then you've got a working config.
Next step check with chkconfig --list dhcpd if the DHCPD Server Daemon is startet in Runlevel 235
if not do a chkconfig -level 235 dhcpd on and then /etc/init.d/dhcpd start
Cause in Your config shown above it looks like you want to tread it like a pxe / tftp server without the tftp kernel files...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.