User manual

set dhcpserver
Chapter 2 Command Descriptions 101
Examples Configure the IP address range for the DHCP server scope and enable it
set dhcpserver item=scope action=set enabled=on
startip=10.30.1.150 endip=10.30.1.199
Since the “leasetime” and “offerdelay” options are not specified, the default
values for them are used, unless they were previously changed to another
value by use of a “set dhcpserver item=scope” command (or using the web
UI).
Add an IP address reservation for a client:
set dhcpserver item=reservation action=set range=1 enabled=on ip=10.30.1.195
clientid=00:09:26:19:51:05
Since the leasetime option is not specified, the DHCP server's scope lease
time is used, unless a lease time was previously changed to a value by use
of a “set dhcpserver item=reservation action=set range=1” command (or
using the web UI).
Disable all reservations that were previously added:
set dhcpserver item=reservation action=set range=all enabled=off
Permanently remove a reservation that was previously added:
set dhcpserver item=reservation action=revert range=1
Any client that has the lease for the reserved IP address that is removed in
this manner, will still keep its lease. However, without the reservation,
future address leases to that client are not guaranteed to be for this same
IP address, which is the purpose of a reservation.
Add an IP address exclusion range for the scope:
set dhcpserver item=exclusion action=set range=1 enabled=on
startip=10.30.1.170 endip=10.30.1.179
This exclusion instructs the DHCP server to not issue leases for the IP
addresses from 10.30.1.170 to 10.30.1.179 inclusive. Note that reservation
leases may be configured for any address in that range, and the DHCP
server will permit a lease of such an address to the correct client only. That
is, reservations override exclusions.