DHCP Ranges and Fixed Addresses¶
DHCP Ranges¶
A DHCP range defines a pool of IPs within a network that the DHCP server dynamically assigns.
show range¶
Syntax:
WAPI: GET range
configure network \<cidr> range add¶
Syntax:
configure network <n.n.n.n/mm> range add <startip> <endip>
[comment=<comment>]
[member=<ip>]
[failover=<name>]
[view=<name>]
WAPI: POST range
Assign to a specific DHCP member:
Assign to a failover association (takes precedence over member=):
With a comment:
configure network \<cidr> range delete¶
Syntax:
WAPI: GET range?start_addr=<s>&end_addr=<e> then DELETE <ref>
Fixed Addresses¶
A fixed address reserves a specific IP for a host identified by MAC address.
show fixed¶
Syntax:
WAPI: GET fixedaddress
configure network \<cidr> fixed add¶
Syntax:
WAPI: POST fixedaddress
MAC addresses may include colons or be bare hex - ibcli normalises them to colon-separated lowercase.
With name and comment:
configure network 10.1.0.0/24 fixed add 10.1.0.50 aabbccddeeff \
name=printer comment="Lobby printer"
The bare hex MAC aabbccddeeff is normalised to aa:bb:cc:dd:ee:ff.
configure network \<cidr> fixed delete¶
Syntax:
WAPI: GET fixedaddress?ipv4addr=<ip> then DELETE <ref>
Fixed-Address Templates¶
Templates define a prototype fixed-address with an offset, usable in bulk provisioning.
show template fixed¶
Syntax:
WAPI: GET fixedaddresstemplate
configure template fixed add¶
Syntax:
WAPI: POST fixedaddresstemplate
configure template fixed delete¶
Syntax:
WAPI: GET fixedaddresstemplate?name=<name> then DELETE <ref>
Related commands¶
- DHCP Failover - create the failover associations referenced by
failover=. - MAC Filters - alternative to per-IP fixed addresses for class-based assignment.