Default Setting
One day
Command Modes
DHCP Pool Configuration
Example
The following example leases an address to clients using th is pool f or 7 days.
Console(config-dhcp)#lease 7
Console(config-dhcp)#
host
Use this command to specify the IP address and net wor k m a sk t o m a nually bind to a
DHCP client. Use the
no
form to remove the IP address for the client.
Syntax
host
address [mask]
no host
address - Specifies the IP address of a client.
mask - Specifies the network mask of the client.
Default Setting
None
Command Mode
DHCP Pool Configuration
Usage Guidelines
• Host addresses must fall within the range specified for an existing network pool.
When a client request is received, the switch first checks for a network
address pool matching the gateway where the request originated (i.e., if the
request was forwarded by a rela y ser ver) . I f t here is n o ga te way in the cli ent
request (i.e., the request was not forwa rded by a rel ay server ), the s witch
searches for a network pool matching the interface throug h which the client
request was received. It then searches for a manually configured host address
that falls within the matching network pool.
• When searching for a manual binding, th e switch compares the client identifie r
for DHCP clients, and then compares the hardware address for DHCP or
BOOTP clients.
If no manual binding has been specified for a host entry with the
client-identifier
or
hardware-address
commands, then the switch will
assign an address from the matching network pool.
If the mask is unspecified, DHCP examines its address poo ls. If no mask is
found in the pool database, the Class A, B, or C nat ural mas k is used (s ee
page 20-5). This command is valid for manual bindings only.
39-12
DHCP Commands
39