设备:Cisco 3750 核心交换机 最近一段时间,内网时常出客户端无法通过DHCP自动获取IP,但是在线在用的IP不多。
show ip dhcp binding 检查地址并没用尽
show ip dhcp pool +pool name
排除地址与设置不符,被吃掉了几十个IP
show ip dhcp conflict 发现被吃掉的IP都在这被占用了
clear ip dhcp conflict * 清除所有冲突IP
查了下资料,原来DHCP server检测到IP被占用后,会记录到log,并且dhcp server 不会再把该IP分配出去,除非重启设备,或通过clear ip dhcp conflict,否则地址池就会越来越小,直到无法分配。所以客户端不能自动获取IP,只能设置静态IP。 可以通过no ip dhcp conflict log,取消地址冲突记录日志。
Pool DHCPLIST : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 11 Excluded addresses : 185 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased/Excluded/Total 10.100.10.185 10.100.10.1 - 10.100.10.254 11 / 185 / 254