How do I configure dhcp on cisco 6500 ?

there is a core switch 6500 two vlans were configured vlan 1, & vlan 2
all clients in both vlans configured with a static IPs.
I want all clients in vlan 1 and vlan 2 to get their ips dynamic through  the core switch.
So what should be the configuration?
int vlan 1
ip add 10.10.10.1 255.255.255.0
 
int vlan 2
ip add 20.20.20.1 255.255.255.0

Open in new window

paintcoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Don JohnstonInstructorCommented:
Once you're in dhcp pool configuration mode use the "?" if you need to define DNS or any other DHCP variables.

ip dhcp excluded-address 10.10.10.1 10.10.10.5
ip dhcp excluded-address 20.20.20.1 20.20.20.5
!
ip dhcp pool VLAN-10
 network 10.10.10.0 255.255.255.0
 default-router 10.10.10.1
!
ip dhcp pool VLAN-20
 network 20.20.20.0.0 255.255.255.0
 default-router 20.20.20.1

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Istvan KalmarHead of IT Security Division Commented:
Hi,

Don't forget the network name, and DNS, WINS server, TFTP server for IP phones:

ip dhcp pool VLAN-10
 network 10.10.10.0 255.255.255.0
 default-router 10.10.10.1
  netbios-name-server 10.168.1.10
  dns-server 10.167.1.1 10.168.1.10
  option 43 ip 10.168.77.253
 domain-name nothing.clever.uk
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.