DHCP Commands
E-DOC-CTC-20060414-0002 v1.0
149
dhcp server lease add
Add a DHCP server lease.
SYNTAX:
where:
EXAMPLE:
dhcp server lease add
clientid = <client-id>
pool = <string>
[addr = <ip-address>]
[offset = <number>]
[leasetime = <number>]
[expirytime = <number>]
[gateway = <ip-address>]
[macaddr = <hardware-address>]
clientid
The DHCP client identification string of the booting host.
REQUIRED
pool
The name of the DHCP server pool from which the DHCP lease should be taken.
Tip
Use the command
:dhcp server pool list
to obtain a list of avail-
able DHCP server pools.
REQUIRED
addr
The favoured IP address for this DHCP host.
This IP address, if specified, must be in the range of the specified DHCP server
pool.
OPTIONAL
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.
Note
Not specifying this parameter does not preserve an IP address for the
host.
OPTIONAL
leasetime
A number (of seconds).
Represents the time the host is allowed to use this address.
Note
0 means infinite leasetime.
OPTIONAL
expiretime
The time in seconds the DHCP server keeps the lease reserved
Tip
0 means infinite expirytime.
gateway
The IP address of the default router for this client.
OPTIONAL
macaddr
The MAC address of the host.
OPTIONAL
=>dhcp server lease list
Lease
Pool
TTL
State
Clientid
0
0.0.0.0
dhcp_pool_1
00:26:40
FREE
00:90:D0:12:34:56
=>dhcp server lease add clientid=01:23:55:67:89:ab pool=Local_pool leasetime=3600
=>dhcp server lease list
Lease
Pool
TTL
State
Clientid
0
0.0.0.0
dhcp_pool_1
00:26:40
FREE
00:90:D0:12:34:56
1
10.0.0.1
local_pool
00:59:22
USED
01:23:45:67:89:AB
=>
Summary of Contents for SpeedTouch 516
Page 2: ......
Page 3: ...SpeedTouch 516 v6 536 v6 546 v6 CLI Reference Guide ...
Page 30: ...ADSL Commands E DOC CTC 20060414 0002 v1 0 10 ...
Page 61: ...ATM Commands E DOC CTC 20060414 0002 v1 0 41 atm oam ping Send ATM loopback cells ...
Page 86: ...AutoPVC Commands E DOC CTC 20060414 0002 v1 0 66 ...
Page 94: ...Config Commands E DOC CTC 20060414 0002 v1 0 74 ...
Page 130: ...DHCP Commands E DOC CTC 20060414 0002 v1 0 110 dhcp client ifdelete Delete a DHCP client ...
Page 315: ...Expr Commands E DOC CTC 20060414 0002 v1 0 295 EXAMPLE 1 ...
Page 317: ...Expr Commands E DOC CTC 20060414 0002 v1 0 297 EXAMPLE 2 ...
Page 322: ...Expr Commands E DOC CTC 20060414 0002 v1 0 302 ...
Page 360: ...GRP Commands E DOC CTC 20060414 0002 v1 0 340 ...
Page 382: ...IDS Commands E DOC CTC 20060414 0002 v1 0 362 ...
Page 404: ...Interface Commands E DOC CTC 20060414 0002 v1 0 384 ...
Page 446: ...IP Commands E DOC CTC 20060414 0002 v1 0 426 ...
Page 482: ...Label Commands E DOC CTC 20060414 0002 v1 0 462 ...
Page 500: ...MBUS Commands E DOC CTC 20060414 0002 v1 0 480 ...
Page 574: ...PPTP Commands E DOC CTC 20060414 0002 v1 0 554 ...
Page 602: ...Service Commands E DOC CTC 20060414 0002 v1 0 582 ...
Page 618: ...SNMP Commands E DOC CTC 20060414 0002 v1 0 598 ...
Page 628: ...Software Commands E DOC CTC 20060414 0002 v1 0 608 ...
Page 656: ...Upgrade Commands E DOC CTC 20060414 0002 v1 0 636 ...
Page 684: ...System Logging Messages E DOC CTC 20060414 0002 v1 0 664 ...
Page 694: ...Supported Key Names E DOC CTC 20060414 0002 v1 0 674 ...
Page 709: ......