Networks¶
Network management covers IPv4 and IPv6 networks, IPAM operations (next available IP/network), and network reassignment.
show network¶
List all networks or show a specific network.
Syntax:
WAPI: GET network / GET ipv6network (paginated)
IPv4 vs IPv6 is auto-detected from the CIDR address family.
configure network add¶
Add a new network.
Syntax:
configure network add <n.n.n.n/mm>
[comment=<comment>]
[view=<name>]
[set <key> <value> ...]
[member <ip> [member <ip> ...]]
WAPI: POST network (IPv4) or POST ipv6network (IPv6)
With extensible attributes:
Assigning DHCP members at creation time¶
The member <ip> keyword is repeatable - you can specify up to 5 member IPs on a
single add line. Each IP is submitted as a dhcpmember struct in the WAPI POST body.
Failover-backed ranges
For failover-backed DHCP ranges, both failover peers must be assigned as
members on the network before a range using that failover association can be
created. Using member at creation time sets this up in a single command,
eliminating the separate configure network <cidr> move member … step.
configure network \<cidr> modify¶
Modify an existing network's comment or extensible attributes.
Syntax:
WAPI: GET network?network=<cidr> then PUT <ref>
configure network 10.1.0.0/24 modify comment "Updated dev network"
configure network 10.1.0.0/24 modify set Owner alice
configure network \<cidr> delete¶
Delete a network.
Syntax:
WAPI: GET network?network=<cidr> then DELETE <ref>
configure network \<cidr> split¶
Split a network into sub-networks at a new prefix length.
Syntax:
WAPI: POST <ref>?_function=split_network with cidr=<new_prefix>
<num> is the new prefix length (must be larger than the current prefix).
configure network \<cidr> join¶
Join two adjacent sibling networks into their parent CIDR.
Syntax:
WAPI: Deletes both child networks, then creates the parent.
Partial state risk
If deletion of the second network fails after the first has been deleted, ibcli prints a PARTIAL STATE error with instructions to recover manually. The operation is not atomic.
The two networks must:
- Have the same prefix length.
- Be adjacent siblings (same parent supernet).
- Both exist in WAPI.
configure network \<cidr> move¶
Reassign DHCP member(s) or a failover association to a network.
Syntax (member):
Syntax (failover):
WAPI: PUT <ref> with updated members or failover_association
IPAM - next available IP¶
Find the next available IP address in a network.
Syntax:
WAPI: POST <ref>?_function=next_available_ip
IPAM - next available network¶
Find the next available sub-network from a container.
Syntax:
WAPI: POST networkcontainer/<ref>?_function=next_available_network
show network statistics¶
Show IPAM utilization statistics for a network.
Syntax:
WAPI: GET ipam:statistics?network=<cidr>
Related commands¶
- Network Containers - supernet containers for IPAM.
- Shared Networks - logical groupings across subnets.
- DHCP Ranges - add DHCP ranges within networks.