This function adds a range of IPv6 addresses to the server.
Notes:
cpsrvd
daemon must listen on IPv6 addresses. To enable this functionality, select On for the Listen on IPv6 Addresses setting in the System section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).Important:
When you disable the Web Server role, the system disables this function.
name required | string The IPv6 address range's name. Note: You cannot use SHARED as a range's name. It is reserved for the server's shared IPv6 address. Example: name=ExampleRange |
range required | string The IPv6 address range and network portion in CIDR format. Example: range=2001:db8:66ac:cafe::/64 |
enabled | integer Default: 1 Whether the IPv6 address range is available. Note
Example: enabled=1 |
note | string or null Default: null A note for the IPv6 address range. Example: note=Initial IPv6 address pool |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ ipv6_range_add \ range='2001:db8:66ac:cafe::/64' \ name='ExampleRange'
{- "metadata": {
- "command": "ipv6_range_add",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}