LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-20-2011, 04:06 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
No subnet declaration for eth0


My box is scientific linux x86 6.1.

I install dhcpd by "yum -y install dhcp*", however dhcpd does not work.


Code:
# dhcpd -d
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
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 (192.168.0.4).
** 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!
And my dhcod.conf is

Quote:
authoritative;
include "/etc/rndc.key";

server-identifier server;
ddns-domainname "myhome.dyndns.org";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;

zone hanpedro.dyndns.org {
primary 127.0.0.1;
key rndckey;

default-lease-time 21600;
max-lease-time 43200;

option domain-name "myhome.dyndns.org.";
option ip-forwarding off;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 192.168.0.1
zone 0.168.192.in-addr.arpa. {
primary 192.168.0.4;
key rndckey;
}
zone localdomain. {
primary 192.168.4;
key rndckey;
}
}
And I disabled firewall and selinux.

Any helpful comment would be appreciated.

Thanks in advance.
 
Old 11-20-2011, 08:18 AM   #2
geirskjo
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: 1
Have you bound it to an interface? From crazysquirrel :

Quote:
Binding DHCP to an Interface
The default Debian install of DHCP doesn't bind it to any interface. This is to stop a default DHCP configuration from polluting the network. To bind and interface you need to make and entry in /etc/default/dhcp3-server for example:
Code:
INTERFACES="eth1"
If you don't make this entry the DHCP server will complain about any interfaces with addresses you don't have a subnet declaration for:
No subnet declaration for eth0 (81.5.183.107).
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. **
Finally restart your dhcp server and reconfigure your host machine so that it picks up it's IP address and other information from your server via DHCP.
Also.. looks like you have an error in zone localadmin (primary 192.168.4)

What does the rest of you network config look like (interface configs)
 
1 members found this post helpful.
Old 11-21-2011, 07:39 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
geirskjo/

There is not "/etc/default/dhcp3-server" file. Can I make this file including this code?

Quote:
INTERFACES="eth1"
 
Old 11-21-2011, 08:14 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
http://docs.redhat.com/docs/en-US/Re...ng-server.html
 
1 members found this post helpful.
Old 11-21-2011, 08:34 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
geirskjo and jefro/

Thanks!

I installed xinetd, then works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No subnet declaration for restart (0.0.0.0) changlinn Linux - Networking 11 07-16-2013 10:09 PM
No subnet declaration for eth0 when runnig dhcpd nicolaus Linux - Networking 3 02-16-2013 07:49 AM
DHCPD - No subnet declaration ResPower Linux - Server 1 06-24-2010 09:14 PM
No subnet declaration for eth0 jakobsg Linux - Networking 6 09-04-2006 12:52 PM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 11:32 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration