vishwancc Thu, 11/06/2008 - 22:36
User Badges:


Router(config)# ip dhcp pool mypool

Specify the network and subnet for the addresses you want to use from the pool.

Router(dhcp-config)# network /8 Specify the DNS domain name for the clients.

Router(dhcp-config)#domain-name mydomain.comSpecify the primary and secondary DNS servers.

Router(dhcp-config)#dns-server Specify the default router (i.e., default gateway).

Router(dhcp-config)#default-router Specify the lease duration for the addresses you're using from the pool.

Router(dhcp-config)#lease 7 Exit Pool Configuration Mode.

Router(dhcp-config)#exit This takes you back to the global configuration prompt. Next, exclude any addresses in the pool range that you don't want to hand out.

For example, let's say that you've decided that all IP addresses up to .100 will be for static IP devices such as servers and printers. All IP addresses above .100 will be available in the pool for DHCP clients.

Here's an example of how to exclude IP addresses .100 and below:

Router(config)#ip dhcp excluded-address

If for some reason your DHCP server is located behind the router the DHCP discovery message had to cross the router to reach the server , these are broadcast messages which router will not forward until you give the command ip helper-address.



arianto.wibowo Thu, 11/06/2008 - 22:54
User Badges:

Hi Vinoth,

use the following template if you use switch as DHCP server :

ip dhcp pool VLANx

network x.x.x.x x.x.x.x

default-router x.x.x.x

dns-server x.x.x.x

lease 3

If you use another device you can use command :

"ip helper-address x.x.x.x"

Amit Singh Fri, 11/07/2008 - 00:03
User Badges:
  • Cisco Employee,

Is it that you want to configure the DHCP pool for the hosts in the VLAN to get the DHCP address. If yes then use the commands/ DHCP pool configuration as posted by the poster above.

If you want to have the Vlan interface pick up the IP address via DHCP then you have to configure " ip address dhcp " under the SVI interface.

"IP helper-address" command is used to forward the DHCP requests over an if you have your DHCP server located in a different subnet / remote site.

-amit singh


This Discussion