2-16
Displaying and Maintaining the DHCP Server
To do…
Use the command…
Remarks
Display information about IP address
conflicts
display dhcp server conflict
{
all
|
ip
ip-address
}
Display information about lease
expiration
display dhcp server expired
{
all
|
ip
ip-address
|
pool
[
pool-name
] }
Display information about assignable
IP addresses
display dhcp server free-ip
Display IP addresses excluded from
automatic allocation in the DHCP
address pool
display dhcp server forbidden-ip
Display information about bindings
display dhcp server ip-in-use
{
all
|
ip
ip-address
|
pool
[
pool-name
] }
Display information about DHCP
server statistics
display dhcp server statistics
Display tree organization information
of address pool(s)
display dhcp server tree
{
all
|
pool
[
pool-name
] }
Available in
any view
Clear information about IP address
conflicts
reset dhcp server conflict
{
all
|
ip
ip-address
}
Clear information about dynamic
bindings
reset dhcp server ip-in-use
{
all
|
ip
ip-address
|
pool
[
pool-name
] }
Clear information about DHCP server
statistics
reset dhcp server statistics
Available in
user view
Using the
save
command does not save DHCP server lease information. Therefore, when the system
boots up or the
reset dhcp server ip-in-use
command is executed, no lease information will be
available in the configuration file. In this case, the server will deny the request for lease extension from
a client and the client needs to request an IP address again.
DHCP Server Configuration Examples
DHCP networking involves two types:
z
The DHCP server and client are on the same subnet and exchange messages directly.
z
The DHCP server and client are not on the same subnet and they communicate with each other via
a DHCP relay agent.
The DHCP server configuration for the two types is the same.