exclude (S-, K-Series)

Use this command to exclude one or more addresses from a DHCP local address pool.

Syntax

exclude ip-address number
no exclude ip-address number

Parameters

ip-address Specifies the starting IP address to be excluded from this pool.
number Specifies the number of addresses to be excluded. Valid values are 1 - 65535.

Defaults

None.

Mode

Local pool configuration command mode.

Usage

Using the exclude command to add or delete addresses of an active pool (a pool is active if the ip dhcp pool command has been entered for that pool) will remove any active leases from the database as part of the underlying processing of recreating the DHCP pool.

The “no” form of this command removes the addresses from the list of addresses excluded from the local pool.

Example

This example shows how to exclude two IP addresses beginning with 172.20.28.253 from the “localpool” address pool (IP addresses 172.20.28.253 and 172.20.28.254 are excluded):

System(rw-config)->ip local pool localpool
System(rw-config-dhcp-pool)->exclude 172.20.28.253 2