DHCP Commands
dhcp server lease add
Assign a DHCP server lease to a DHCP host in the local network.
SYNTAX:
dhcp server lease add
where:
clientid
The DHCP client identification string of the booting host.
pool
The name of the DHCP server pool from which the DHCP lease should be taken.
Tip
addr
The favoured IP address for this DHCP host. This IP address, if
specified, must be in the range of the DHCP server pool specified.
offset
A number between 0 and the integer number defined by the number of available IP
addresses in the DHCP server pool.
Represents the IP address offset in the DHCP server pool preserved for this host.
Not specifying this parameter does not preserve an IP address for the host.
leasetime
A number between 0 and 1814400 (seconds).
Represents the time the host is allowed to use this address, before renewing.
Note
hostname
The hostname to add to the local DNS table for this host. Use "" if no hostname is
associated with this lease.
EXAMPLE:
=>dhcp server lease list
Lease
0
0.0.0.0
=>dhcp server lease add clientid=01:23:55:67:89:ab pool=Local_pool leasetime=3600
=>dhcp server lease list
Lease
0
0.0.0.0
1
10.0.0.1
=>
RELATED COMMANDS:
dhcp server lease delete
dhcp server lease list
104
clientid = <client-id>
pool = <string>
[addr = <ip-address>]
[offset = <number>]
[leasetime = <number>]
[hostname = <{hostname | ""}>]
Use the command :dhcp server pool list for a list of available DHCP
server pools.
Specifying -1 makes the lease permanent.
Pool
TTL
dhcp_pool_1
00:26:40
Pool
TTL
dhcp_pool_1
00:26:40
local_pool
00:59:22
Delete a DHCP lease.
List the current DHCP leases.
State
Clientid
FREE
00:90:D0:12:34:56
State
Clientid
FREE
00:90:D0:12:34:56
USED
01:23:45:67:89:AB
REQUIRED
REQUIRED
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
E-DOC-CTC-20040907-0010 v1.0