Showing results for 
Search instead for 
Did you mean: 


Introducing the next generation of Cisco Small and Medium Business Switches. Cisco is refreshing its SMB Switch portfolio. Click here  to learn more.


Configure DHCP on VLAN

Do anyone knows if DHCP can be configure on VLAN?


I may need more detail to accurately answer your question but I believe you are asking whether or not you can configure a specific DHCP pool for each VLAN and the answer is yes...but, it depends on the devices involved in your network.

Is there a specific device you are curious about or were you wanting to know if it is even possible in the first place?

Thanks for the reply. I will be working Cisco 2960 & 3560 switches. The 3560 will be the core switches and the 2960 will hang off it. I will also configure the 3560 switches with HSRP for redundancy. I would like to configure specific DHCP pool for the created VLAN's. Do you knows the commands for creating DHCP pool for VLAN's. I have the commands for creating DHCP pool but not for VLAN's. Thanks in advance.

Hello and good evening,

You create a DHCP scope on a 3560 just like any other IOS DHCP configs is a sample config:

interface vlan 1

ip add

interface vlan 2

ip address

ip dhcp excluded-address

ip dhcp excluded-address
ip dhcp pool vlan1

   lease 3


ip dhcp pool vlan2

   lease 3


Here is the link for configuring IOS DHCP services:

Your proposed design is a good one, and you have obviously done your homework!  A nice design!

I would say however, that this community is really more for Cisco Small Business products and your question is in reference to a Cisco traditional products.  I believe you will have a better experience by posting your question in the Cisco NetPro forums located here: 

That forum has subject matter experts on Cisco traditional products that may be able to answer your question. 


Andrew Lee Lissitz

That is a great information.  However, I still want to "make sure" I am not configuring the switch (3560) incorrectly.

My scenario is this - a 3560 switch is connected to a router and a local cable modem provider.

We have configure Vlan1 and 2 to access our router and network.  However, we want to configure the Vlan10 to utilize the local cable modem for internet access.  I have the cable modem IP address (network/subnet).  The cable modem will not hand out DHCP.  I would like to setup the switch (3560) to hand out ip address using /16 subnet.


Thank you all for your input and suggestions.




Well, i just want to know the easy steps to configure the dhcp pool on different vlans, using the dhcp server.


u have to creat the required VLAN(s)

then for each VLAN u have to Creat a DHCP config the relate to that vlan and havs the right ip subnet

lets say u have vlan 10

make the vlan on ur access layer switch

with command

vlan 10 [enter]

name vlan_10

then assign this vlan to the required ports

and make sure the switch port no shutdown anslo the is Important thing which is the spanning tree PORTFAST this otion if u dont put it on access port for client need DHCP u gonna loss the DHCP

for example

interface range fa0/1 - 24

switchport mode access

switchport access vlan 10

spanning-tree portfast

no shut

these ports ready to connect the PCs

now next step for distribution layer and DHCP

make the connection between the access switches and the Dist switches trunk to pass VLAN tags

then on the Dist switches creat the same vlans numbers

and creat for each vlan a switched virtual interface SVI which will be the defaul gateway for client in the corspoding VLAN

example Dist switch

vlan 10

vlan name vlan_10

interface vlan 10

ip address

no shut will be the default gateway for vlan 10 users

then go to configure the dhcp on the switch

note: if u have the dhcp on other router, switch or server u have to add th ip hlper command on the SVI interface poiting to that dhcp server

in our example the Dist switch will be the dhcp so we dont need that command

ip dhcp pool vlan10




about option 150 this option used when u have IP telphoney and voice vlan to point to the TFTP server

if u dont have u dont need it

and repeat the same config for each vlan but with deffrent ip address

for example dhcp for vlan 20

shoud like

ip dhcp pool vlan20


default-router 20..1.1.1

and so on

dont for get the SVI

and the access port config with portfast

being enable

also check the dhcp service if enabled or not(by default yes)

this link also helpful
please, Rate if helpful

Emperor 5999

Hi, am working on a LAN network design

And I assign two vlan to a switch and I want to configure a dhcp of an IP address to the first vlan and and also configure another dhcp of a different IP address to the second vlan 

Please help me out .