Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

DHCP server on switch

HI,

How can i created a DHCP server on a switch? Please help.

3 REPLIES

Re: DHCP server on switch

Hi

This is obviously dependant an what switch you have and whether it supports the dhcp service. You will need to enable the dhcp service, then configure the pools.

conf t

!

service dhcp

!

ip dhcp pool VLAN1

network 192.168.1.0 255.255.255.0

default-router

dns-server

lease

!

ip dhcp pool VLAN2

network 192.168.2.0 255.255.255.0

default-router

dns-server

lease

!

ip dhcp pool VLAN3

network 192.168.3.0 255.255.255.0

default-router

dns-server

lease

!

This is just an basic example, and you may wish to add additional options. Please see the following url for detail config guide:

http://www.cisco.com/en/US/docs/ios/12_4/ip_addr/configuration/guide/hipdhprm.html

Hope this helps

Martin

Community Member

Re: DHCP server on switch

ip dhcp pool VLAN

network X.X.X.0 255.255.255.0

default-router A.B.C.D

Where A.B.C.D is that VLAN interface ip address. If you want to exclude any ip address you can do it.

Community Member

Re: DHCP server on switch

Don't forget options for DNS, WINS, IP Phones, etc.

302
Views
0
Helpful
3
Replies
CreatePlease to create content