Configuring DHCP Address Pool - network, subnet mask, end and excluded IP address

Address pools are used by the servers to allocate the IP addresses to the client.

To configure DHCP address pool:
  1. Create a pool and enter the DHCP Pool Configuration mode.
    iS5comm(config)# ip dhcp pool<pool number (1-2147483647)>

    Perform the following:

    iS5comm(config)# ip dhcp pool 1

    A pool number is entered. The range is from 1 to 2147483647.

  2. Configure the network parameters - start IP address and subnet mask of the DHCP pool.
    iS5comm(dhcp-config)# network<Start-IP>[ { <mask> | / <prefix-length (1-31)> } ] [end ip]
    Perform the following:

    iS5comm(dhcp-config)# network 12.0.0.0 255.0.0.0

    The network is configured as 12.0.0.0 and the mask as 255.0.0.0
    Note: This command specifies the IP addresses that are available in the server to assigned to the DHCP client.
  3. Specify the upper limit for IP addresses in an address pool.
    iS5comm(dhcp-config)# network<network IP address><mask><end IP Address pool>
    Perform the following:

    iS5comm(dhcp-config)# network 12.0.0.0 255.0.0.0 12.0.0.100

    The network is configured as 12.0.0.0 and the mask as 255.0.0.0 and the IP Address for the end of the pool.
  4. Verify the IP addresses in the address pool.
    iS5comm(dhcp-config)# end
    iS5comm# show ip dhcp server pools

    Global Options--------------

    Code : 3, Value : 12.0.0.2

    Pool Id : 1

    -------------------------------------------

    Subnet : 12.0.0.0

    Subnet Mask : 255.0.0.0

    Lease time : 95400 secs

    Start Ip : 12.0.0.1

    End Ip : 12.0.0.100

    Note: As seen in the printout above, the Start IP is 12.0.0.1. This is the DHCP address which is assigned to the DHCP client.
    The End IP of 12.0.0.100 is also shown.
  5. (Optional) Specify an excluded address in the address pool.
    iS5comm(dhcp-config)# network<network IP address><mask><end IP Address pool>
    Perform the following:

    iS5comm(dhcp-config)# excluded-address 12.0.0.5 12.0.0.10

    The excluded IP addresses range is configured as from 12.0.0.5 to 12.0.0.10. Or only one address which is the address of the router can be excluded.