DHCP Switching

Unanswered Question
May 9th, 2007

How can I configure dhcp on a 3560 switch? Can give me an example?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
ankbhasi Wed, 05/09/2007 - 20:40

Hi Friend,

Switch(config)#service dhcp

Switch(config)#ip dhcp pool

Switch(dhcp-config)#network x.x.x.x


Switch(config)#ip dhcp excluded-address

You should exclude the address which you want but it is always recommended to exclude atleast the router address which will be assigned to the clients as a gateway address.

You can create multiple pools for different subnets and ip address range.



*Pls rate all helpfull post

Anand Narayana Wed, 05/09/2007 - 21:26

Hi Dall,

find the working configuration.


3560(config)#ip dhcp pool ABCD

3560(config-dhcp)#network 3560(config-dhcp)#


3560(config-dhcp)#domain-name abcd.org


3560(config-dhcp)#lease infinite


3560(config)#ip dhcp-server

3560(config)#interface vlan 2

3560(config-if)#ip address

additionally if u wanted to exclude certain ip address which should not be assigned to client , issue the following command

3560(config)#ip adhcp excluded-address

which means between & the ip address will not be allocated.

i hope this helps.

rate this post if clear.


This Discussion