cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
269
Views
0
Helpful
1
Replies

Cisco Router DHCP

emilyforcisco1
Level 1
Level 1

Is there a way to specify a certain IP range for a DHCP pool on a Cisco 2901?

I am familiar with the typical set up of a range that goes from 172.16.x.1 - .254

But I need to set an existing range to be something like 172.16.x.25 - 199.

I can excluded IPs, but that isn't what I really want to do unless its the only way to make sure the router doesn't assign IPs in the range that are already in use by static devices

1 Reply 1

willwetherman
Spotlight
Spotlight

Hi,

You need to exlcude parts of the range that you do not want to allocate by using the 'ip dhcp exclude-address' command.

Taking your example, to configure a DHCP pool to only allocate IPs within the range 172.16.1.25 to 172.16.1.199 you would configure the following:

ip dhcp excluded-address 172.16.1.1 172.16.1.24
ip dhcp excluded-address 172.16.1.200 172.16.1.254
!
ip dhcp pool Test
   network 172.16.1.0 255.255.255.0
   default-router 172.16.1.1

Hope this helps