1个DHCP服务器为2个独立的networking

Debian服务器设置(wheezy)

1 – eth0 – 连接到INTERNET
1 – eth1 – LAN 1(networking1:192.168.100.0/24)
1 – wlan0 – 接入点(networking2:192.168.200.0/24)

的/ etc /networking/接口

auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.100.1 network 192.168.100.0 netmask 255.255.255.0 broadcast 192.168.100.255 gateway 192.168.100.1 auto wlan0 iface eth0 inet static address 192.168.200.1 network 192.168.200.0 netmask 255.255.255.0 

在/ etc /默认/ ISC-DHCP服务器

 INTERFACES = "wlan0" 

的/etc/dhcp/dhcpd.conf

 subnet 192.168.100.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; pool { range 192.168.100.50 192.168.100.60; } option routers 192.168.100.1; } subnet 192.168.200.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; pool { range 192.168.200.50 192.168.200.60; } option routers 192.168.100.1; } 

从上面的configuration,我从dhcp得到一个错误; 如果碰巧,只有连接到WLAN0的客户端获得ip-lease;

请帮忙。

我想你应该修改你的/ etc / default / isc-dhcp-server

INTERFACES =“wlan0”

INTERFACES =“wlan0 eth1”

然后重新启动服务器。 所以你可以避免错误,你的DHCP服务器可以服务2个networking。