Setup guide
server (read-only: name) - server name which serves this client
expires-after (read-only: time) - time until lease expires
tx-rate (integer; default: 0) - maximal transmit bitrate to the client (for users it is download bitrate))
• 0 - no limitation
rx-rate (integer; default: 0) - maximal receive bitrate to the client (for users it is upload bitrate))
• 0 - no limitation
status (read-only: waiting | testing | busy | offered | bound) - lease status:
• waiting - not used static lease
• testing - testing whether this address is used or not (only for dynamic leases) by pinging it with
timeout of 0.5s
• busy - this address is assigned statically to a client or already exists in the network, so it can not
be leased
• offered - server has offered this lease to a client, but did not receive confirmation from the
client
• bound - server has received client's confirmation that it accepts offered address, it is using it
now and will free the address not later, than the lease time will be over
Command Description
check-status - Check status of a given busy dynamic lease, and free it in case of no response
Notes
Even though client address may be changed (with adding a new item) in lease print list, it will not
change for the client. It is true for any changes in in the DHCP server configuration because of the
nature of the DHCP protocol. Client tries to renew assigned IP address only when half a lease time
is past (it tries to renew several times). Only when full lease time is past and IP address was not
renewed, new lease is asked (rebind operation).
the deault mac-address value will never work! You should specify a correct MAC address there.
Example
To assign 10.5.2.100 static IP address for the existing DHCP client (shown in the lease table as item
#0):
[admin@Wandy] ip dhcp-server lease> print
Flags: X - disabled, H - hotspot, D - dynamic
# ADDRESS MAC-ADDRESS EXPIRES-AFTER SERVER STATUS
0 D 10.5.2.90 00:04:EA:C6:0E:40 1h48m59s switch bound
1 D 10.5.2.91 00:04:EA:99:63:C0 1h42m51s switch bound
[admin@Wandy] ip dhcp-server lease> add copy-from=0 address=10.5.2.100
[admin@Wandy] ip dhcp-server lease> print
Flags: X - disabled, H - hotspot, D - dynamic
# ADDRESS MAC-ADDRESS EXPIRES-AFTER SERVER STATUS
1 D 10.5.2.91 00:04:EA:99:63:C0 1h42m18s switch bound
2 10.5.2.100 00:04:EA:C6:0E:40 1h48m26s switch bound
[admin@Wandy] ip dhcp-server lease>
DHCP Relay
ip dhcp-relay