CISCO DHCP中继和服务器

我想设置一个Cisco路由器作为DHCP中继,但是我想在本地回答DHCP请求,如果DHCP中继请求不会回答。

换句话说,我想设置一个具有故障安全function的DHCP中继(从它自己的DHCP池中分配IP)

您可以使用事件和IP sla来删除故障转移检测中的命令。 从那里我会configuration您的主要DHCP的冲突检测,并可能分裂范围如下面的文章中定义。

下面的例子可能需要稍微修改,但应该足够简单。

ip sla 10 icmp-echo DHCP-SERVER-IP timeout 200 frequency 5 ip sla schedule 10 life forever start-time now track 1 rtr 10 reachability event manager applet PRIMARY-DHCP-OFFLINE event track 1 state down action 5.0 cli command "enable" action 5.1 cli command "conf t" action 5.3 cli command "ip dhcp excluded-address 10.10.10.1" action 5.4 cli command "ip dhcp pool backup" action 5.5 cli command "network 10.10.10.1 255.255.255.0" action 5.6 cli command "default-router 10.10.10.1" action 5.7 cli command "lease 0 12" action 5.8 cli command "exit" action 5.9 cli command "end" event manager applet PRIMARY-DHCP-ONLINE event track 1 state up action 6.0 cli command "enable" action 6.1 cli command "conf t" action 6.2 cli command "no ip dhcp pool backup" action 6.3 cli command "no ip dhcp excluded-address 10.10.10.1" action 6.4 cli command "end" 

如果您的主要DHCP服务器是Windows下面的文章configuration拆分范围,这将确保服务器不会在任何IP上抢占DHCP

https://blogs.technet.microsoft.com/teamdhcp/2009/01/22/how-to-configure-split-scope-using-wizard/

你也想在windows上configuration重复的IP检测。

https://technet.microsoft.com/en-us/library/dd183587(v=ws.10).aspx