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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP and Vlans

Status
Not open for further replies.

ttnnee

MIS
Sep 20, 2001
52
US
I am wondering how to assign ip addresses to different Vlans. For example, these might be the addresses I want for each vlan.

Vlan 1 = 172.17.30.1/24 - 172.17.30.254/24
Vlan 2 = 172.17.31.1/24 - 172.17.31.254/24
Vlan 3 = 172.17.32.1/24 - 172.27.32.254/24

If I only had one DHCP server, how could I set it up to assign these scopes to the correct Vlans? Could I use a router as a DHCP server and set up subinterfaces for each Vlan, and then assign scopes on a per Vlan basis?
 
If you have a router (or RSM in a 5500/6500, etc) with an interface on each VLAN, adding the command 'ip helper-address a.b.c.d' on every interface you need DHCP on besides the one the DHCP server resides on will do the trick. a.b.c.d is the IP address of your DHCP server. This will forward the DHCP requests to the server, as they normally would not cross subnet boundaries because of their broadcast nature.

I would imagine you could do it the way you described, although I've never been fond of the IOS DHCP server, especially in larger networks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top