Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP per Vlan???

Status
Not open for further replies.

paulk29

Technical User
Jul 15, 2003
113
0
0
Guys,
I'm configuring up a 3560 switch with two Vlans. I'd like to use the DHCP feature on the Switch so as to assign an ip address to a user depending on the vlan their connected into. Is this possible?

I've got DHCP working in a flat lan using the "ip dhcp pool" command but it assigns the same network to every interface.

My config:

ip dhcp pool 1
network 10.68.117.0 255.255.255.0
default-router 10.68.117.1
domain-name mainframe.test

This assigns any user to the 10.68.117.0 network.
But how would I assign users of vlan 1 to the 10.68.117.0 network and users of vlan 2 to say the 10.68.118.0 network using ciscos dhcp feature?

Many thanks

Paul

Paul Kilcoyne B eng. CCNA
 
Does anyone know how I can have users in different vlans on the same switch assigned to different subnets via Ciscos dhcp Server configuration?

I assume I'd have 2 dhcp pools, one for each subnet but how do I get them to link to a certain vlan???


Please help!!!!

Paul

Paul Kilcoyne B eng. CCNA
 
This is how I do it...

ip dhcp pool pool1
network 10.10.1.0 255.255.255.0
default-router 10.10.1.1
dns-server what.ever.ip.itis
!
ip dhcp pool pool2
network 10.10.2.0 255.255.255.0
default-router 10.10.2.1
dns-server what.ever.ip.itis2
vlan 10
ip address 10.10.1.1 255.255.255.0
!
vlan 20
ip address 10.10.2.1 255.255.255.0

the default-router command ties that pool to the interface (vlan)

--DW
 
DW,
that seems to make sense. I'll give it a go and let you know how it works.

Thanks

Paul

Paul Kilcoyne B eng. CCNA
 
Thats exactly what we do. Our vlans are setup with the respective IP subnets as the default gateway and then DHCP binds to that. BTW, our DHCP server runs on a windows 2000 server so it works fairly well.

Mark C. Greenwood, CNE
m_jgreenwood@yahoo.com

With more than 10 years experience to share.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top