This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Dhcp Set - Up Problems
From: "Jonathan Lynch" <j.lynch@globetech.ie>
Date: Tue, 7 Dec 1999 14:23:19 -0000
Hi, I'm having some trouble setting up my DHCP server on our Linux box.
The linux box is also our gateway and this is where the trouble starts.
When I try to run the server (/usr/sbin/dhcpd -d -f) I get an error
message:
"No subnet declaration for eth1 (ip-address)"
eth0 is the card I'm using for the internal network so I don't
understand why
the daemon is even concerned with eth1. I have edited the
/etc/sysconfig/daemons/dhcp file like so:
ROUTE-DEVICE-"eth0"
Options="eth0"
Also below is a rough copy of my dhcpd.conf file:
default-lease-time 2000;
max-lease-time; 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers (ip address);
option domain-name-servers (ip addresses);
option domain-name "domain name";
etc
etc
etc
Any help would be greatly appreciated!!
===
Subject: RE: Dhcp Set - Up Problems
From: "cajun" <cajun@cajuninc.com>
Date: Tue, 7 Dec 1999 08:35:21 -0800
Add this to your dhcpd.conf file and the problem should be resolved:
subnet xx.xx.xx.0 netmask 255.255.255.0 {
}
k===
Subject: Re: Dhcp Set - Up Problems
From: "Jonathan Lynch" <j.lynch@globetech.ie>
Date: Tue, 7 Dec 1999 17:12:36 -0000
Hi there, thanks for replying. I added that to my dhcpd.conf file
but I get a new error message now:
Listening on Socket /eth1/IP-address
Sending on Socket /eth1/IP-address
The Standard socket API can only support hosts with a single network
Interface
dhcpd: exiting
My DHCPD.conf file now looks like
default-lease-time 2000;
max-lease-time; 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers (ip address);
option domain-name-servers (ip addresses);
option domain-name "domain name";
subnet 192......... netmask 255.255.255.0 { # for eth0
range etc.
}
subnet xx.xx.xx.xx netmask 255.255.255.xxx { # for eth1
}
etc.
etc.
etc.
Any more wisdom on offer??
===
Subject: RE: Dhcp Set - Up Problems
From: "cajun" <cajun@cajuninc.com>
Date: Tue, 7 Dec 1999 09:45:27 -0800
You DID substitute your real eth1 IP for the xx.xx.xx.xx didn't you ?
Also, I'm not sure the effect of putting the comment # for ethx within the
brackets. Try it like this:
# for eth0
subnet 192......... netmask 255.255.255.0
range etc.
}
# for eth1
subnet xx.xx.xx.xx netmask 255.255.255.xxx {
}
===