DHCP Exclusion

Unanswered Question
Feb 9th, 2008
User Badges:

I want to exclude some IPs from DHC on a switch 3750.

will this command work

ip dhcp excluded-address 172.28.140.0 172.28.140.9


or shuld i write like this

ip dhcp excluded-address 172.28.140.1 172.28.140.9


can anyone explain the difference ?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
sgvoip001 Sat, 02/09/2008 - 13:15
User Badges:

Hi,


if the netmask is /24 (255.255.255.0) you can write the second one because 172.28.140.0 is the network address and won't assigned to a client by the DHCP algorithm.


The excluded command has following parameters


ip dhcp excluded-address


The first command would exclude the IP Adress x.x.x.0 until (inclusive) x.x.x.9 and the second one would exclude x.x.x.1 until (inclusive) x.x.x.9.


Olli

munawar.zeeshan Sat, 02/09/2008 - 13:30
User Badges:

Ok. means the first way is the wrong method and it will not work ?


and it will exclude also the whole network , because of .0

sgvoip001 Sat, 02/09/2008 - 14:00
User Badges:

Hi,


its not the wrong method and it will work but it isn't neccessary. You exclude only the IP itself and not the whole network. But the DHCP algorithm wouldn't assign this IP to a client and therefore it isn't neccessary.


Olli

Actions

This Discussion