dhcp server's range

Apr 26, 2005 6 Replies

I searched the group but it seems I could not submit the correct keywords to find out the solution.



I am looking for the command that specifies the ip pool of the dhcp server, like from 192.168.250.100 to 192.168.250.111. These addresses may not on subnet boundaries. Is it possible ?



Thanks for your advice,



DT



You don't set the range. You specify a network and then exclude ranges of addresses. Seems kind of backwards, but it is what it is.

ip dhcp excluded-address 192.168.250.1 192.168.250.99 ip dhcp excluded-address 192.168.250.112 192.168.250.254

ip dhcp pool MyPool network 192.168.250.0 255.255.255.0

Or something like that.

:> I am looking for the command that specifies the ip pool of the dhcp :> server, like from 192.168.250.100 to 192.168.250.111.

:ip dhcp excluded-address 192.168.250.1 192.168.250.99 :ip dhcp pool MyPool : network 192.168.250.0 255.255.255.0

dt1649651 -- what platform, what software version?

On the PIX, you would just use

ip local pool MyPool 192.168.250.100-192.168.250.111

addresses

Thank you. I just did that. The command "show ip dhcp pool" still shows the index starting with 1, which I already exclude, but I guess it will be excluded , right ?

( The router is remote, so I can not test it now ).

Thanks again.

DT

'show ip dhcp pool' does not indicate excluded addresses. I agree it should, but it doesn't. Try 'show ip dhcp bind', which will show what addresses are currently allocated. At least that way, you will see if it is giving out the right addresses. Also, with the 'show ip dhcp pool' look at the current index, which will show the next address to be handed out.

Jim

Sorry. It is the 1760 with 12.2(7r)XM2.

Thanks,

DT

correct

Jim,

I have ip dhcp excluded-address 192.168.248.1 192.168.248.99 and sh ip dhcp pool shows Current Index = 192.168.248.1 and the range is from .1 to .254.

This router is to replace the current router. I have to wait until the evening to turn the interfaces on to check if it will skips the excluded range. But I am sure it will.

Thanks,

DT

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required