C
M
OMMAND
ODE
DHCP Pool Configuration
U
G
SAGE
UIDELINES
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 relay server). If there is no gateway
in the client request (i.e., the request was not forwarded by a relay
server), the switch searches for a network pool matching the interface
through 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, the switch compares the client
◆
identifier 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
◆
identifier
or
an address from the matching network pool.
If the mask is unspecified, DHCP examines its address pools. If no
◆
mask is found in the pool database, the Class A, B, or C natural mask is
used (see
page
The no host command only clears the address from the DHCP server
◆
database. It does not cancel the IP address currently in use by the
host.
E
XAMPLE
Console(config-dhcp)#host 10.1.0.21 255.255.255.0
Console(config-dhcp)#
R
C
ELATED
OMMANDS
client-identifier (1635)
hardware-address (1638)
This command configures the duration that an IP address is assigned to a
lease
DHCP client. Use the no form to restore the default value.
S
YNTAX
lease {days [hours] [minutes] | infinite}
no lease
days - Specifies the duration of the lease in numbers of days.
(Range: 0-364)
hardware-address
commands, then the switch will assign
1641). This command is valid for manual bindings only.
– 1639 –
| DHCP Commands
C
48
HAPTER
DHCP Server
client-