cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
503
Views
0
Helpful
3
Replies

DHCP server on switch

drnteam
Level 1
Level 1

HI,

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

3 Replies 3

Martin Parry
Level 3
Level 3

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

pradeepkum
Level 1
Level 1

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.

Iain
Level 4
Level 4

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

Review Cisco Networking products for a $25 gift card