Quote:
Originally Posted by unclecameron
Hi all,
I'm trying to set up an external facing master/slave DNS Bind9 2 server config. (on eth0 with static IP, obviously) with an internal DHCP/PXE/TFTP (and eventually LDAP domain authentication) server master/slave serving up DHCP on eth1, but I keep getting:
Oct 11 06:36:37 ns1 dhcpd: No subnet declaration for eth0 (172.16.0.170).
Thanks for the help,
|
Depends on the distribution but look in the init script for an interfaces specification; for example, in Debian it's:
INTERFACES="eth0"
# Reads config file (will override defaults above)
[ -r /etc/default/dhcp ] && . /etc/default/dhcp
DHCPDPID=/var/run/dhcpd.pid
case "$1" in
start)
echo -n "Starting DHCP server: "
start-stop-daemon --start --quiet --pidfile $DHCPDPID \
--exec /usr/sbin/dhcpd -- -q $INTERFACES
........................
RH-ish distributions might have an interface specification somewhere in /etc/sysconfig
Worse comes to worse you could simply specify it in the init script but of course I'd avoid hard-coding anything if possible.