This tutorial shows how to setup DHCP for multiple vlans.
DHCP Servers are used for allocating dynamic IP addresses to users on the network. In a multi vlan environment, where there are multiple networks, DHCP servers are configured with multiple scopes, which would provide IP addresses to users on the vlans with respective IP address.
The DHCP servers are setup and configured on a specific vlan. Users belonging to other vlans, would contact the DHCP server through a feature called IP Helper address available on routers. DHCP clients on other vlans would be unable to reach DHCP servers which are configured on different networks or vlans, due to which the IP helper address feature is used. The feature is used on the sub interface of the vlan in which the DHCP clients reside and would point to the IP address of the DHCP Server.
In the above topology, the DHCP server is configured on VLAN 3. There are two scopes on the DHCP Server, which would provide IP address in the range 192.168.1.0/24 to VLAN 2 and 192.168.2.0/24 to VLAN 3. For users in VLAN 2 to contact the DHCP Server in VLAN 3, the IP Helper address feature is used.
The details of the configuration are shown below.
router(config)#interface fastethernet 0/0.1 (VLAN 2 Sub interface )
router(config-if)#ip helper-address 192.168.2.3 (IP address of DHCP Server)
This is a sample content from the book – VLAN Network Design
Ebooks & Guides -Click here