我试图在一个相当大的networking上跟踪大量的子网和VLAN之类的设备和networking信息,其中大部分是从Cisco [企业级]交换机或路由器提供的DHCP服务。 在这方面,我正在寻找各种DHCP池/示波器,但是我可以find的所有信息都是关于如何使用Cisco IOSconfigurationDHCP,这是没有用的,因为我不想改变范围,只是显示他们目前的状况。
我可以做一个show ip dhcp binding来获取DHCP客户端的列表,用他们的IP,猜测DHCP IP的有效范围是什么,但是这是非常不可取的…那么显示这些信息的命令是什么(不改变现有configuration)?
从相关设备中,尝试show ip dhcp pool 。 要显示排除项,请尝试show run | i excluded-addresses show run | i excluded-addresses 。
以下输出来自Cisco 4507交换机。
CORE#show ip dhcp pool Pool VOICE : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 42 Excluded addresses : 101 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased/Excluded/Total 192.168.122.234 192.168.122.1 - 192.168.122.254 42 / 101 / 254 Pool GUEST : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 9 Excluded addresses : 103 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased/Excluded/Total 192.168.111.165 192.168.111.1 - 192.168.111.254 9 / 103 / 254
排除情况:
CORE#show run | i excluded-addresses ip dhcp excluded-address 192.168.122.1 192.168.122.50 ip dhcp excluded-address 192.168.122.100 192.168.122.150 ip dhcp excluded-address 192.168.111.1 192.168.111.50 ip dhcp excluded-address 192.168.111.100 192.168.111.150