Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
09-20-2005, 10:17 AM
|
#1
|
Member
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483
Rep:
|
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
|
|
|
09-20-2005, 04:55 PM
|
#2
|
Member
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454
Rep:
|
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
|
|
|
09-20-2005, 05:05 PM
|
#3
|
Member
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454
Rep:
|
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
|
|
|
09-20-2005, 07:14 PM
|
#4
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
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")
|
|
|
09-22-2005, 01:23 PM
|
#5
|
Member
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483
Original Poster
Rep:
|
Thanks for the reply! I'll give this a look over and see if I can iron out my wrinkles.
Cheers,
ab
|
|
|
All times are GMT -5. The time now is 08:17 PM.
|
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
|
|