I am using a Cisco 877, but I have noticed I get a new IP everytime, but the next one up, there are only 2 PC's on this router. I get an IP of 192.168.2.11, then tomorrow it will be 192.168.2.12, then 13, 14 etc, surely it should release the IP after a day or 2 and reuse the IP's at the beggining of the scope?
ip dhcp pool client
network 192.168.2.0 255.255.255.0
dns-server 220.127.116.11 18.104.22.168 22.214.171.124
lease 0 2
Actually I believe the IOS DHCP server will use linearly the pool unless the client requests an available address.
Do "show ip dhcp pool" to see which address will be handed out at the next request .
Here it is:
H0m3#sh ip dhcp pool
Pool client :
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
192.168.2.21 192.168.2.1 - 192.168.2.254 1
Well,you should now be able to observe, as mentioned before, that the router allocated addresses in a linear fashion, spanning the full scope, unless the client request otherwise.