03-11-2008 02:09 AM - edited 03-03-2019 09:04 PM
Hi,
Can anybody send the configuration for converting a Router in to DHCP Server and how to configure the Scopes(for each vlan seprate subnets) in router? Pls help me.
Thanks &Regards,
Sham
03-11-2008 01:28 PM
Hi Sham,
You can configure a DHCP server with the following commands:
(The ip addresses are just examples).
conf t
service dhcp (this is on by default)
ip dhcp pool VLAN_1
network 10.1.1.0 /24 (this command configures the address range for hosts in vlan 1. )
lease 1 (This command determines the lease time of the ip address in days)
default-router 10.1.1.1 (You can set the default gateway for the hosts on the subnet)
dns-server 192.168.1.1 (You can set the domain name server for the hosts on the subnet)
exit
This way you can specify many different pools for the different vlans.
Don't forget to configure the clients to use dhcp for getting their ip address.
Cheers:
Istvan
03-11-2008 06:08 PM
Istvan, nice post, buddy. I gave it a 5. :-)
03-11-2008 10:17 PM
Hi Victor,
Thank you for the rating!
Actually this was an easy one.
I saw you can solve quite complex problems as well.
Congrats!
Cheers:
Istvan
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