Multiple Dhcp Pool for multiple vlan

Answered Question
Mar 13th, 2009
User Badges:

Respected All ,

I have to configure one switch of any model as DHCP server , and in my LAN there are five floor , i have created five vlan for every floor , now i want to configure that switch as DHCP Server which will server each floor with each vlan IP schema respectivly.


Regards

Amit kulshreshta

Correct Answer by Giuseppe Larosa about 8 years 4 months ago

Hello Amit,

if the device is going to be a DHCP server you need to configure multiple dhcp pools


like


ip dhcp excluded-address 10.110.224.129 10.110.224.132

ip dhcp excluded-address 10.110.224.145

!

ip dhcp pool DATA

network 10.110.224.128 255.255.255.240

default-router 10.110.224.129

dns-server 10.98.112.32 10.55.0.32

netbios-name-server 10.52.64.37 10.24.128.151

lease 0 1

!

ip dhcp pool VOICE

network 10.110.224.144 255.255.255.248

default-router 10.110.224.145

dns-server 10.98.112.32 10.55.0.32

netbios-name-server 10.52.64.37 10.24.128.151

option 150 ip 10.98.67.5 10.55.61.4

lease 0 1

!

each pool will use the ip addresses of each vlan.

By receiving a request on vlan x the device will know from what pool to take the ip address to assign to the client


if other L3 devices exist they need the ip helper address configuration as explained by Adam on client vlan sides


Hope to help

Giuseppe


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Giuseppe Larosa Fri, 03/13/2009 - 03:53
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Amit,

if the device is going to be a DHCP server you need to configure multiple dhcp pools


like


ip dhcp excluded-address 10.110.224.129 10.110.224.132

ip dhcp excluded-address 10.110.224.145

!

ip dhcp pool DATA

network 10.110.224.128 255.255.255.240

default-router 10.110.224.129

dns-server 10.98.112.32 10.55.0.32

netbios-name-server 10.52.64.37 10.24.128.151

lease 0 1

!

ip dhcp pool VOICE

network 10.110.224.144 255.255.255.248

default-router 10.110.224.145

dns-server 10.98.112.32 10.55.0.32

netbios-name-server 10.52.64.37 10.24.128.151

option 150 ip 10.98.67.5 10.55.61.4

lease 0 1

!

each pool will use the ip addresses of each vlan.

By receiving a request on vlan x the device will know from what pool to take the ip address to assign to the client


if other L3 devices exist they need the ip helper address configuration as explained by Adam on client vlan sides


Hope to help

Giuseppe


Actions

This Discussion