04-29-2008 09:51 PM - edited 03-05-2019 10:41 PM
HI,
How can i created a DHCP server on a switch? Please help.
04-30-2008 04:13 AM
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
04-30-2008 04:22 AM
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.
04-30-2008 08:17 AM
Don't forget options for DNS, WINS, IP Phones, etc.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide