LinuxQuestions.org
Help answer threads with 0 replies.
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 10-11-2007, 04:47 PM   #1
unclecameron
LQ Newbie
 
Registered: Feb 2004
Location: Selma, Oregon
Distribution: Debian Lenny
Posts: 5

Rep: Reputation: 1
DHCP / PXE and DNS on separate NIC's


Hi all,

I'm trying to set up an external facing master/slave DNS Bind9 2 server config. (on eth0 with static IP, obviously) on Debian Etch, 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).
Oct 11 06:36:37 ns1 dhcpd: ** Ignoring requests on eth0. If this is not what
Oct 11 06:36:37 ns1 dhcpd: you want, please write a subnet declaration
Oct 11 06:36:37 ns1 dhcpd: in your dhcpd.conf file for the network segment
Oct 11 06:36:37 ns1 dhcpd: to which interface eth0 is attached. **

my /etc/dhcp3/dhcp.conf looks like this:

DHCPDARGS=eth1;
option domain-name "domain.com";
option domain-name-servers 172.16.0.170, 172.16.0.180;
default-lease-time 600;
max-lease-time 7200;
one-lease-per-client on;
log-facility local7;
failover peer "dhcp" {
primary;
address 172.16.0.170;
port 519;
peer address 172.16.0.180;
peer port 520;
max-response-delay 60;
max-unacked-updates 10;
mclt 600;
split 128;
load balance max seconds 3;
}
include "/etc/dhcp3/rndc.key";
zone domain.com. {
primary 172.16.0.170;
key rndc-key;
}
zone reversedpublicip.in-addr.arpa. {
primary 172.16.0.170;
key rndc-key;
}
subnet 172.20.0.0 netmask 255.255.255.0 {
pool {
failover peer "dhcp";
range 172.20.0.10 172.20.0.254;
deny dynamic bootp clients;
allow unknown-clients;
}

Thanks for the help,

Last edited by unclecameron; 10-12-2007 at 03:55 AM.
 
Old 10-12-2007, 12:11 AM   #2
boethius
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Rep: Reputation: 1
Quote:
Originally Posted by unclecameron View Post
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.
 
  


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
dhcp - PXE booting icedude Linux - Enterprise 10 09-28-2010 05:36 AM
PXE booting problem with DHCP amagi Linux - Networking 4 08-15-2006 02:38 AM
DHCP vs PXE woes :S kevingpo Linux - Networking 2 11-05-2005 01:02 PM
DHCP won't grab IP for either NIC's. mrsolo Linux - Networking 4 12-31-2003 03:10 PM
DHCP Server and 2 NIC's NVETHIS Linux - Networking 4 07-10-2003 09:26 AM

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

All times are GMT -5. The time now is 11:00 PM.

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