cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
304
Views
19
Helpful
3
Replies

DHCP

sham_chennala
Level 1
Level 1

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

3 Replies 3

Istvan_Rabai
Level 7
Level 7

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

Istvan, nice post, buddy. I gave it a 5. :-)

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

Review Cisco Networking products for a $25 gift card