We are currently in the process of planning to implement VLANs onto our network. Currently we have a 10.1.21.0 /24 network which I will subnet into a 10.1.21.0/27 network.
We use dell switches but the cisco router that will be in use is a 1841. Im a bit confused as to how DHCP will work In this situation. Currently DHCP is running on a windows server, but I suppose I would have to move it from there onto the router.
Would I need to create a different DHCP pool for each VLAN subnet, similar to this?
1841(config)#ip dhcp pool vlan2
1841(dhcp-config)#network 10.1.21.0 255.255.255.224
1841(config)#ip dhcp pool vlan3
1841(dhcp-config)#network 10.1.21.32 255.255.255.224
So If I wanted 5 vlans I would have 5 pools for the 5 different subnets?
If this is the case my question is how does a client get associated with a pool? Like how does the router assign a client in vlan4 an address from the vlan4 pool?
Can anyone please give me some pointers on setting up DHCP on a router in a VLAN environment.