cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1373
Views
0
Helpful
3
Replies

ip dhcp excluded-address command no work

pingyyy456
Level 1
Level 1

I want to provide 1.1.1.101 to 1.1.1.126 using dhcp pool. Here is my configuration

no ip dhcp use vrf connected
ip dhcp excluded-address 1.1.1.1 1.1.1.100
ip dhcp excluded-address 1.1.1.127 1.1.1.254
!
ip dhcp pool V1
network 1.1.1.0 255.255.255.0
default-router 1.1.1.1

But the end of ip dhcp pool is not 1.1.1.126, it become 1.1.1.254

R1#show ip dhcp pool
Pool V1 : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 1 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased addresses 1.1.1.102 1.1.1.1 - 1.1.1.254 1

Is it any wrong configuration?

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Thats fine your device should still only give out ips in the range which is not excluded

dont forget your dns in the pool , its already leased an address as well what did it give out should be .101

Yes, you are right. But is it any method to change the correct range showed on the dhcp pool?

Hi no thats just the way the ios software reads it unfortunatly cannot be changed manually the excluded range is not part of the dhcp database that shows the pool but the rule comes in too effect when the ips are being given out by the device

Review Cisco Networking for a $25 gift card