[nylug-talk] dhcp with multiple nics?

jh jhlists at hirschman.net
Tue Nov 6 17:05:17 EST 2007


I'm trying to set up a new dhcp server on Debian stable, and running 
into some issues.

The server has two nics: eth0 for 192.168.1.0/24, and eth1 for 
192.168.2.0/24.

Everything works fine from Linux clients; clients on 192.168.1.0/24 get 
correct addresses, as to the Linux boxes on 192.168.2.0/24.

Windows clients work fine on 192.168.1.0/24, but I get the following for 
the other physical segment, which repeats ad infinitum:

Nov  6 16:45:29 dhcpdns dhcpd: DHCPDISCOVER from 00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:30 dhcpdns dhcpd: DHCPOFFER on 192.168.2.83 to 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:30 dhcpdns dhcpd: DHCPREQUEST for 192.168.2.83 from 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:30 dhcpdns dhcpd: DHCPACK on 192.168.2.83 to 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:30 dhcpdns dhcpd: DHCPDECLINE on 192.168.2.83 from 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:30 dhcpdns dhcpd: Abandoning IP address 192.168.2.83: declined.
Nov  6 16:45:40 dhcpdns dhcpd: DHCPDISCOVER from 00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:41 dhcpdns dhcpd: DHCPOFFER on 192.168.2.84 to 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:41 dhcpdns dhcpd: DHCPREQUEST for 192.168.2.84 from 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:41 dhcpdns dhcpd: DHCPACK on 192.168.2.84 to 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:42 dhcpdns dhcpd: DHCPDECLINE on 192.168.2.84 from 
00:0a:e4:f3:34:96 via eth1
Nov  6 16:45:42 dhcpdns dhcpd: Abandoning IP address 192.168.2.84: declined.

I also found this on a google search...

http://tinyurl.com/ylwuf5

...which suggests doing this:

route add -host 255.255.255.255 dev eth0

... but no dice as a fix.

My subnet declarations from dhcpd.conf:

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.100 192.168.1.199;
    option routers 192.168.1.1;
    option broadcast-address 192.168.1.255;

}

subnet 192.168.2.0 netmask 255.255.255.0 {
    range 192.168.2.3 192.168.2.254;
    option routers 192.168.2.1;
    option broadcast-address 192.168.2.255;
}

Suggestions? Is dhcpd not compatible with multiple nics? dnsmasq does 
the same thing, but only after Windows boxes are power-cycled.

jh


More information about the nylug-talk mailing list