LinuxQuestions.org
Review your favorite Linux distribution.
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 09-20-2005, 10:17 AM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 465

Rep: Reputation: 31
New to dhcp- can't get server to start- error mesgs.


Hi All,

I'm new to dhcp and am trying to get the daemon to start but get the following error from /var/log/syslog:

Sep 20 08:12:12 localhost dhcpd: No subnet declaration for eth0 (64.81.72.103).
Sep 20 08:12:12 localhost dhcpd: ** Ignoring requests on eth0. If this is not w
hat
Sep 20 08:12:12 localhost dhcpd: you want, please write a subnet declaration
Sep 20 08:12:12 localhost dhcpd: in your dhcpd.conf file for the network segm
ent
Sep 20 08:12:12 localhost dhcpd: to which interface eth0 is attached. **
Sep 20 08:12:12 localhost dhcpd:
Sep 20 08:12:12 localhost dhcpd:
Sep 20 08:12:12 localhost dhcpd: Not configured to listen on any interfaces!



This is my dhcpd.conf file:

# option definitions common to all supported networks...
option domain-name 64.81.72.103;
option domain-name-servers 64.81.79.1, 216.231.41.2;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.


# This is a very basic subnet declaration.

subnet 64.0.0.0 netmask 255.255.255.0 {
range 64.1.1.1 64.1.1.254;
# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}


Please, any help is greatly appreciated.

Thanks,

ab
 
Old 09-20-2005, 04:55 PM   #2
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
ok - well there is obviously a problem with your configuration file.
I will just go and get mine off the server and post it for you and we can see the differences.

Riddick
 
Old 09-20-2005, 05:05 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Ok, here it is:
Code:
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "fastweb.it";
option domain-name-servers 213.156.54.80,213.156.54.81;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
default-lease-time 3600;
max-lease-time 72000;
# if you do not use dynamical DNS updates:
#
# this statement is needed by dhcpd-3 needs at least this statement.
# you have to delete it for dhcpd-2, because it does not know it.
#
# if you want to use dynamical DNS updates, you should first read
# read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt
ddns-update-style none;
ddns-updates off;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {

  host LO {
    hardware ethernet 00:04:75:D1:91:C1;
    fixed-address 192.168.0.21;
  }

  host VI {
    hardware ethernet 00:0C:6E:9C:C3:44;
    fixed-address 192.168.0.24;
  }

  host NI {
    hardware ethernet 00:11:2F:89:6F:CA;
    fixed-address 192.168.0.23;
  }

  host ED {
    hardware ethernet 00:0E:A6:C5:82:5F;
    fixed-address 192.168.0.22;
  }

  range 192.168.0.31 192.168.0.39;

}
As you can see, the IP address ranges 192.168.0.21-24 are given to specific
MAC addresses, and any guest to the network is given a number between 31 and 39.
Maybe all you need is the subnet mask declaration that I have!

Riddick
 
Old 09-20-2005, 07:14 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Here is mine if it helps;
Code:
authoritative;
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.100 192.168.0.250;
    default-lease-time 259200;
    max-lease-time 518400;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
    option domain-name-servers 192.168.0.1;
}
Also this for my setup;
/etc/conf.d/dhcp
(Set IFACE="eth0")
 
Old 09-22-2005, 01:23 PM   #5
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 465

Original Poster
Rep: Reputation: 31
Thanks for the reply! I'll give this a look over and see if I can iron out my wrinkles.

Cheers,

ab
 
  


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
X server can't start Error: No screens found perl Ubuntu 3 11-28-2005 02:06 AM
X-server fatal error,KDM refused to start callitdctr Linux - Software 3 07-01-2005 08:46 AM
Error, Cannot Start X Server imranqau Linux - Newbie 3 04-03-2005 05:53 PM
Antivir-server-prof start error hitesh_linux Linux - Software 0 12-09-2004 01:26 PM
cannot start X server error khris Linux - Laptop and Netbook 10 11-29-2004 09:35 AM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration