Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-14-2008, 08:36 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 2
Rep:
|
DHCP/PXE configuration problem[URGENT]
Hi
I need to setup dhcp server on my opensuse 10.3.
# /etc/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
ddns-updates off;
allow booting;
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
Pranav
|
|
|
01-15-2008, 02:31 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
please do not mark threads as urgent. This is a voluntary forum and it is not urgent for our members who kindly donate their time to help others.
|
|
|
01-15-2008, 03:16 AM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
Have you given any network interfaces the IP address 192.168.1.1 for example so the dhcpd knows which interface to listen?
|
|
|
01-15-2008, 03:45 AM
|
#4
|
Member
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978
Rep:
|
regarding the input of Zmyrgel
The option is missing if you server has more then one Nic:
server-identifier
looks like this:
Code:
server-identifier 192.168.0.2;
there you go
|
|
|
01-15-2008, 10:26 PM
|
#5
|
LQ Newbie
Registered: Dec 2007
Posts: 1
Rep:
|
Hi,
This is Mohammed Dadapeer.i am Working on Redhat v6.6.Please give me the details to
install the linux v6.6 with minimum drive partitions. And DHCP Configuration
commands.
THANKING YOU.
REGARDS
MOHAMMED.
|
|
|
01-16-2008, 12:37 AM
|
#6
|
Member
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978
Rep:
|
@dadapeer.md please open a new thread or can you tell us what this post hast to do with DHCP/PXE configuration problem and OpenSuse ?
|
|
|
01-16-2008, 04:55 PM
|
#7
|
LQ Newbie
Registered: Jan 2006
Posts: 2
Original Poster
Rep:
|
error still persists
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.
Pranav
|
|
|
01-16-2008, 11:34 PM
|
#8
|
Member
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|