03-13-2009 03:36 AM - edited 03-06-2019 04:34 AM
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
Solved! Go to Solution.
03-13-2009 03:53 AM
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
03-13-2009 03:46 AM
Hi
You are going to need to setup ip helper address heading towards the ip of the subnet that the DHCP server lives on and the server will allocate based on the ip address of the relay agent.
Here is a nice config guide you can follow :
http://www.cisco.com/en/US/docs/ios/12_4t/ip_addr/configuration/guide/htdhcpsv.html
03-13-2009 03:53 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide