LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2008, 07:25 AM   #1
nicolaus
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
No subnet declaration for eth0 when runnig dhcpd


Hi just new in linux enviroment and got stuck when configuring dhcp sever
when running it. any help is highly appreciated
1. My /etc/dhcp.conf file

# global-definitions
ddns-update-style interim;
ignore client-updates;
option subnet-mask 255.255.255.0;
option domain-name "scott.ac.ke";
option domain-name-server 192.168.11.254;
default-lease-time 21600; # second till expire
max-lease-time 43200; # maximum lease time
subnet 192.168.11.0 netmask 255.255.255.0

{
option routers 192.168.1.22;
option subnet-mask 255.255.255.0;
range 192.168.11.1 192.168.11.25;

localdomain
{
Ethernet HWaddr 00:14:22:557:81;
fixed-address 192.168.11.55;
}

}



2.
The error i am getting


[root@localhost ~]# service dhcpd restart
Shutting down dhcpd: [FAILED]
Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for eth0 (192.168.10.112). (very funny adress what could be wrong)
** 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!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.


3.

dhcpd 3.0.1-server restart command gives different result

[root@localhost ~]# dhcpd 3.0.1-server restart
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface restart is attached. **


No subnet declaration for 3.0.1-server (0.0.0.0).
** Ignoring requests on 3.0.1-server. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface 3.0.1-server is attached. **


Not configured to listen on any interfaces!


4.THE ifcommand results

Link encap:Ethernet HWaddr 00:14:22:557:81
inet addr:192.168.10.112 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::214:22ff:fe55:d781/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:125279 errors:0 dropped:0 overruns:0 frame:0
TX packets:13710 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27140678 (25.8 MiB) TX bytes:1429740 (1.3 MiB)
Interrupt:169

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2088 errors:0 dropped:0 overruns:0 frame:0
TX packets:2088 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
 
Old 04-04-2008, 01:10 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Try changing

Code:
 {
option routers 192.168.1.22;
option subnet-mask 255.255.255.0;
range 192.168.11.1 192.168.11.25;

localdomain
{
Ethernet HWaddr 00:14:22:557:81;
fixed-address 192.168.11.55;
}

}
to

Code:
subnet 192.168.0.0 netmask 255.255.255.0 {
   option routers 192.168.1.22;
   range 192.168.11.1 192.168.11.25;

   localdomain
   {
      Ethernet HWaddr 00:14:22:557:81;
      fixed-address 192.168.11.55;
   }

}
I am unfamiliar with your localdomain declaration, so I don't know if that is correct or not. (Indentation makes the file easier to read but isn't necessary.)

I note that ifconfig is showing eth0 with a netsmask of 255.255.0.0, whereas a mask of 255.255.255.0 (like in your dhcpd.conf file) is what is traditional.

Also, note that when posting, if you wrap computer output, config files, etc in code tags, you won't have things like smilies popping up in weird places.
 
Old 01-28-2012, 08:21 AM   #3
rehberg
LQ Newbie
 
Registered: Feb 2010
Location: Adel, Georgia
Distribution: CentOS
Posts: 3

Rep: Reputation: 0
Interface check

You'll also want to make sure that your network interface is up when dhcpd starts. I just ran into a problem where my interface was set ONBOOT="no" and even though dhcpd.conf was correct, it didn't see the subnet for which there was a declaration because it wasn't on the network. This reply isn't timely, but it's relevant.
 
Old 02-16-2013, 06:49 AM   #4
moron007
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
Lightbulb This Should work

You need to ensure you have a interface configured and up with the subnet you using in dhcp ( 192.168.11.0 )
 
  


Reply



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 09:09 PM
No subnet declaration for eth0 jakobsg Linux - Networking 6 09-04-2006 11:52 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
Samba, GUI settings wrong, RedHat - W2K, smbclient runnig good, Nautils runnig bad samuel_burg Linux - Networking 1 06-23-2004 07:54 AM
Config DHCPD for non-direct connected subnet desmondwck Linux - Software 0 05-14-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration