ip local pool

Use this command to configure a local address pool. This defines a range of IP addresses which can be used by the DHCP server and enables IP local pool configuration mode.

Syntax

ip local pool name subnet mask
no ip local pool name

Parameters

name Specifies a name for the local address pool.
subnet Specifies an IP subnet for the local address pool.
mask Specifies a subnet mask for the local address pool. Valid entries are of the form: x.x.x.x or /x.

Defaults

None.

Mode

Configuration command mode.

Usage

The “no” form of this command removes the local address pool.

Example

This example shows how to configure a local address pool called “localpool” on IP subnet 172.20.28.0/24 and enter configuration mode for that pool. Mask can also be expressed as 255.255.255.0:

System(rw-config)->ip local pool localpool 172.20.28.0/24
System(rw-config-dhcp-pool)->