Skip to main content

ipv6_ranges

Creates, updates, deletes, gets or lists an ipv6_ranges resource.

Overview

Nameipv6_ranges
TypeResource
Idlinode.networking.ipv6_ranges

Fields

The following fields are returned by SELECT queries:

Returns IPv6 range information.

NameDatatypeDescription
is_bgpbooleanRead-only Whether this IPv6 range is shared.
linodesarrayRead-only A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
prefixintegerThe prefix length of the address. The total number of addresses that can be assigned from this range is calculated as 2<sup>(128 - prefix length)</sup>.
rangestringRead-only The IPv6 address of this range. (example: 2600:3c01::)
regionstringRead-only The region for this range of IPv6 addresses. (example: us-east)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipv6_rangeselectView IPv6 range information.

Learn more...

Learn more...
get_ipv6_rangesselectpage, page_sizeDisplays the IPv6 ranges on your Account.

- An IPv6 range is a /64 or /56 block of IPv6 addresses routed to a single Linode in a given region.

- Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.

- Run the Create an IPv6 range operation to add a /64 or /56 block of IPv6 addresses to your account.

Learn more...

Learn more...
post_ipv6_rangeinsertdata__prefix_lengthCreates an IPv6 Range and assigns it based on the provided Linode or route target IPv6 SLAAC address. See the ipv6 property when running the Get a Linode operation to view a Linode's IPv6 SLAAC address.

- Either linode_id or route_target is required in a request.
- linode_id and route_target are mutually exclusive. Submitting values for both properties in a request results in an error.
- Upon a successful request, an IPv6 range is created in the region that corresponds to the provided linode_id or route_target.
- Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
- Run the Assign IP addresses operation to re-assign IPv6 Ranges to your Linodes.

> 📘
>
> - A Linode can only have one IPv6 range targeting its SLAAC address.
> - An account can only have one IPv6 range in each region.
> - Open a support ticket to request expansion of these restrictions.

Learn more...

Learn more...
delete_ipv6_rangedeleteRemoves this IPv6 range from your account and disconnects the range from any assigned Linodes.

> 📘
>
> You can't delete shared IPv6 ranges. Contact Customer Support for assistance.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

View IPv6 range information.

Learn more...

Learn more...

SELECT
is_bgp,
linodes,
prefix,
range,
region
FROM linode.networking.ipv6_ranges;

INSERT examples

Creates an IPv6 Range and assigns it based on the provided Linode or route target IPv6 SLAAC address. See the ipv6 property when running the Get a Linode operation to view a Linode's IPv6 SLAAC address.

- Either linode_id or route_target is required in a request.
- linode_id and route_target are mutually exclusive. Submitting values for both properties in a request results in an error.
- Upon a successful request, an IPv6 range is created in the region that corresponds to the provided linode_id or route_target.
- Your Linode is responsible for routing individual addresses in the range, or handling traffic for all the addresses in the range.
- Run the Assign IP addresses operation to re-assign IPv6 Ranges to your Linodes.

> 📘
>
> - A Linode can only have one IPv6 range targeting its SLAAC address.
> - An account can only have one IPv6 range in each region.
> - Open a support ticket to request expansion of these restrictions.

Learn more...

Learn more...

INSERT INTO linode.networking.ipv6_ranges (
data__linode_id,
data__prefix_length,
data__route_target
)
SELECT
{{ linode_id }},
{{ prefix_length }} --required,
'{{ route_target }}'
RETURNING
range,
route_target
;

DELETE examples

Removes this IPv6 range from your account and disconnects the range from any assigned Linodes.

> 📘
>
> You can't delete shared IPv6 ranges. Contact Customer Support for assistance.

Learn more...

Learn more...

DELETE FROM linode.networking.ipv6_ranges;