host

Use this command to specify an IP address and network mask for manual DHCP binding.

Syntax

host address [mask | prefix-length]
no host address [mask | prefix-length]

Parameters

address Specifies the IP address of the DHCP client.
mask | prefix-length (Optional) Specifies a network mask or prefix for the IP address.

Defaults

If not specified, DHCP server will examine its defined IP address pools for a mask or prefix-length.

Mode

DHCP address pool configuration command mode.

Usage

The “no” form of this command removes the client IP address.

Example

This example shows how to set 15.12.1.99 255.255.248.0 as the IP address and subnet mask of a client in the “localpool” address pool:

System(rw-config)->ip dhcp pool localpool
System(rw-config-dhcp-pool)->hardware-address 0e-fd-04-20-00-01
System(rw-config-dhcp-host)->host 15.12.1.99 255.255.248.0