设置ISC-DHCP服务器不断获得DHCPDISCOVER,DHCPOFFER

尝试设置新的服务器来运行FOG 。 我已经设置了服务器只在eth1而不是eth0上提供DHCP地址。 我已经在服务器上安装了isc-dhcp和bind9。

我不能让一个客户端分配一个DHCP地址。 在/ var / log / syslog文件中,我得到了以下重复:

Sep 14 08:10:03 fog dhcpd: DHCPDISCOVER from (mac address here) (N049) via eth1 Sep 14 08:10:03 fog dhcpd: DHCPOFFER on 192.168.10.20 to (mac address here) (N049) via eth1 Sep 14 08:10:19 fog dhcpd: DHCPDISCOVER from (mac address here) (N049) via eth1 Sep 14 08:10:19 fog dhcpd: DHCPOFFER on 192.168.10.20 to (mac address here) (N049) via eth1 

我的/etc/dhcp/dhcpd.conf文件如下所示:

 ddns-update-style interim; ddns-domainname "chcfog.local"; ddns-rev-domainname "10.168.192.in-addr.arpa"; #include "/etc/bind/rndc.key"; key "rndc-key" { algorithm hmac-md5; secret "my key here"; }; zone theapartment.lan. { primary 127.0.0.1; key "rndc-key"; } # option definitions common to all supported networks... option domain-name "chcfog.local"; option domain-name-servers 192.168.1.11, 208.67.222.222, 208.67.220.220; #option domain-name-servers 192.168.1.1; #default-lease-time 600; #max-lease-time 7200; default-lease-time 86400; max-lease-time 86400; authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.10 192.168.10.150; zone 10.168.192.in-addr.arpa. { primary 192.168.10.1; key "rndc-key"; } } 

我的/etc/bind/named.conf.local:

 key "rndc-key" { algorithm hmac-md5; secret "my key here"; }; zone "chcfog.local" { type master; file "/var/lib/bind/chcfog.local.hosts"; allow-update { key rndc-key; }; }; zone "10.168.192.in-addr.arpa" { type master; file "/var/lib/bind/10.168.192.rev"; allow-update { key rndc-key; }; }; 

我的10.168.192.rev文件:

 $ORIGIN . $TTL 86400 ; 1 day 10.168.192.in-addr.arpa IN SOA ns.chcfog.local. email.address.here. ( 1263187366 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 38400 ; minimum (10 hours 40 minutes) ) NS ns.chcfog.local. 1 PTR ns.chcfog.local. 

我的chcfog.local.hosts文件:

 $ORIGIN . $TTL 86400 ; 1 day chcfog.local IN SOA ns.chcfog.local. dkassner.centerforhospice.org. ( 1263527838 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 38400 ; minimum (10 hours 40 minutes) ) NS ns.chcfog.local. A 192.168.10.1 ns.chcfog.local A 192.168.10.1 ns A 192.168.10.1 

/ etc / network / interfaces的eht1部分

 auto eth1 iface eth1 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 

任何想法,为什么这个DHCP服务器不会工作?

DHCP服务器确实工作(它发送DHCPOFFER响应客户端的DHCPDISCOVER )。 但是,服务器永远不会从客户端收到DHCPREQUEST请求提供的地址。

在服务器和客户端上运行tcpdump -n udp port 68dhcpdump -i INTERFACE ,然后在客户端上运行dhclient -1 。 双方的转储应该显示客户端是否没有从服务器收到DHCPOFFER ,或者服务器没有收到来自客户端的DHCPREQUEST