excluded-address (dhcpv4-pool-config)

Identifies a single IP address or a range of IP addresses, included in the DHCP address pool, that cannot be assigned to clients by the DHCP server

Supported in the following platforms:

Syntax

excluded-address [<IP>|<HOST-ALIAS-NAME>|range]
excluded-address <IP>
excluded-address <HOST-ALIAS-NAME>
excluded-address range [<START-IP>|<START-HOST-ALIAS-NAME>] [<END-IP>|<END-HOST-ALIAS-NAME>]

Parameters

excluded-address <IP>

<IP>

Adds a single IP address to the exclude address list

excluded-address <HOST-ALIAS-NAME>

<HOST-ALIAS-NAME>

Adds a host alias. The host alias is mapped to a host‘s IP address. The host identified by the host alias is added to the excluded address list. The host alias should be existing and configured.

Note: A network host alias maps a name to a single network host. For example, ‘alias host $HOST 1.1.1.100‘. In this example the host alias is ‘$HOST‘ and it maps to a single host ‘1.1.1.100‘. For more information, see alias.
excluded-address [<START-IP>|<START-HOST-ALIAS-NAME>] [<END-IP>|<END-HOST-ALIAS-NAME>]

range [<START-IP>|

<START-HOST-ALIAS- NAME>] [<END-IP>| <END-HOST-ALIAS- NAME>]

Adds a range of IP addresses to the excluded address list. Use one of the following options to provide the first IP address in the range:
  • <START-IP> – Specifies the first IP address in the range
  • <START-HOST-ALIAS-NAME> – Specifies a host alias, mapped to the first IP address in the range

Use one of the following options to provide the last IP address in the range:

  • <END-IP> – Specifies the last IP address in the range
  • <END-HOST-ALIAS-NAME> – Specifies a host alias, mapped to the last IP address in the range

The host aliases should be existing and configured.

Examples

nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#excluded-address range 192.168.13.25 192.168.13.28
nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#show context
 dhcp-pool testPool
  network 192.168.13.0/24
  address 192.168.13.4 class dhcpclass1
  ddns server 192.168.13.9
  ddns domainname WID
  ddns multiple-user-class
  excluded-address range 192.168.13.25 192.168.13.28
  domain-name documentation
  bootfile test.txt
  default-router 192.168.13.8 192.168.13.9
  dns-server 192.168.13.19
nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#

Related Commands

no

Removes the exclude IP addresses settings