User manual

dhcpserver
Chapter 2 Command Descriptions 23
dhcpserver
Devices
supported
This command is supported in Digi Cellular Family products only.
Purpose Used for managing and showing the status of a DHCP server, including
managing the leases for IP addresses, restarting, running, and shutting
down the DHCP server, and displaying DHCP server status information.
Required
permissions
For Digi Connect products with two or more users, permissions must be set
to “set permissions connect=execute” to use this command. See
"set permissions" on page 157 for details on setting user permissions for
commands.
Syntax dhcpserver [deletelease={ip address|all}]
restart
run
shutdown
status
Options deletelease={ip address|all}
Specifies how to handle IP address leases. You may remove leases from
the DHCP Server while it is running.
ip address
Removes a specific lease from the DHCP server.
all
Removes all IP address leases from the DHCP server.
Removing a lease will cause the associated IP address to be returned
immediately to the available address pool. Any IP address in this
available address pool may be served in a new lease to a DHCP client.
If you stop or restart the DHCP server, or if you reboot the Digi Connect
product, all knowledge of the IP address leases will be lost. All leased
addresses, except for reservations, will be returned to the available
address pool and may be served in a new lease to a DHCP client.
Static lease reservations will always be displayed in the lease list. These
reservation leases may be removed, but a new lease will be created
immediately. To disable or permanently remove a reservation, use the
“set dhcpserver” command. See the examples for "set dhcpserver" on
page 96.
restart
Restarts the DHCP server.
run
Runs (starts) the DHCP server if it not already started.
shutdown
Shuts down the DHCP server.
status
Displays DHCP server status information.