我的网络由 Cisco Catalyst 运营,具有多个 VLAN 和一个 DHCP 服务器。在 Catalyst 上,每个 VLAN 都设置了ip address-helper
DHCP 服务器的 IP。ubuntu 14.04 上的 isc-dhcp-server 用作 DHCP 服务器。
我设置了几个网络子网,如下所示,除了一个之外,所有子网都可以正常工作,但我不知道为什么。
无法正常工作的网络是 10.12.35.0/24 我从 syslog 获得的消息如下:
Jan 6 06:57:54 dhcp-server-1 dhcpd: DHCPDISCOVER from 00:0c:29:33:3c:bb via 10.12.35.1: unknown network segment
正如我已经提到的 - 所有其他子网运行良好
谢谢!我非常感谢你的帮助!
配置文件:
option ntp-servers 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org;
authoritative;
allow client-updates;
allow unknown-clients;
ddns-updates on;
ddns-domainname "domain.do";
key rndc-key {
secret notgonnatellyou;
algorithm hmac-md5;
}
ddns-update-style interim;
option domain-name "domain.do";
option domain-name-servers 10.12.240.29, 10.12.32.41;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 10.12.4.0 netmask 255.255.252.0 {
option domain-name-servers 8.8.8.8;
option routers 10.12.4.1;
option subnet-mask 255.255.252.0;
option broadcast-address 10.12.7.255;
pool {
range 10.12.4.100 10.12.5.250;
}
}
subnet 10.12.35.0 netmask 255.255.255.0 {
ddns-updates off;
option routers 10.12.35.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.12.35.255;
pool {
range 10.12.35.100 10.12.35.254;
}
}
subnet 10.12.96.0 netmask 255.255.255.0 {
option routers 10.12.96.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.12.96.255;
pool {
range 10.12.96.100 10.12.96.200;
}
}
subnet 10.12.32.0 netmask 255.255.255.0 {
option routers 10.12.32.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.12.32.255;
pool {
range 10.12.32.200 10.12.32.220;
}
}
subnet 10.12.0.0 netmask 255.255.252.0 {
option routers 10.12.0.1;
option subnet-mask 255.255.252.0;
option broadcast-address 10.12.3.255;
pool {
range 10.12.0.10 10.12.2.255;
}
host some-host {
hardware ethernet 00:0c:29:52:1c:a7;
fixed-address 10.12.3.0;
}
host someother-host {
hardware ethernet 00:50:56:9f:04:26;
fixed-address 10.12.3.1;
}
host evenother-host {
hardware ethernet 10:dd:b1:e7:b2:e0;
fixed-address 10.12.0.200;
}
}
zone domain.do. {
primary 10.12.240.29;
key rndc-key;
}
zone 12.10.in-addr.arpa. {
primary 10.12.240.29;
key rndc-key;
}
答案1
配置一直没问题。问题出在“幽灵进程”上。我不知道是怎么回事,但我运行了两个 dhcpd 进程,第一个进程真的很老了……从 conf 中没有定义子网的时候开始