How it works in VMmanager
VMmanager supports IPv6 subnets with the prefix length 32 to 96. Every virtual machine is allocated a separate subnet, and the first IP address of the subnet is added to its interface. When adding an IPv6 address to a VM, you can select the prefix of the allocated subnet from /32 to /125. For more information on how to add an IPv6 address manually please refer to the article Assigning IP addresses with OS tools.
In VMmanager, create a network and an IP pool that belongs to this subnet so the platform will allocate IPv6 subnets to VMs. A pool of IPv6 addresses in VMmanager is specified as a subnet in the format <subnet address>/<subnet prefix length>.
How to add an IPv6 subnet to the IP pool
To add a subnet and IP pool:
- Go to Networks → IP subnets → Add IP subnet.
- Select subnet status: Active.
-
To prevent the gateway address, network address, and broadcast address from being reserved, enable the Do not use service IP addresses option.
This option works only in clusters with the IP-fabric network configuration type. - Specify a IP subnet in the format <subnet address>/<subnet prefix length>. The prefix length must be from 32 to 96. Eg, "be6a:2a1d:f079:d165::/32".
- Enter the Gateway for the subnet.
- Specify any Note.
- To add IP addresses of the subnet to the pool:
- Enable the Add IP addresses to the IP pool option.
- In the IP pool name field, select the name of an existing pool or enter the name of a new pool.
- Specify the IP addresses for new VMs. You can enter a single IP address ("1.1.1.1"), a mask ("1.1.1.1/24") or a range ("1.1.1.1-1.1.1.5"). Subnets for the pool must belong to the subnet specified in the IP subnet field. We recommend that you create a pool that included the whole subnet.
- Select the clusters in which this pool will be used. If the cluster uses two network interfaces, specify whether the pool belongs to the Main or the Additional network.
- Click Add button.
How to configure IPv6 on cluster nodes in the Hetzner and OVH data centers
To configure IPv6 routing, add IPv6 address to the cluster node: Nodes → node name → IP addresses → IPv6 → Add an IP address. For correct operation of IPv6 network, specify the address ::2 and prefix length 64. Example: 2a01:4f8:13b:9a7::2/64. VMmanager will configure the subnet in the node automatically.
If there is no routing with the provider's network, you can enable IPv6 proxying via NDP:
- Connect to the cluster node via SSH.
-
Install the ndppd service:
dnf config-manager --set-enabled powertoolsdnf install epel-releasednf install ndppd -
Create the configuration file /etc/ndppd.conf:
Configuration file exampleproxy enp3s0f0 { rule 2a01:4f8:13b:9a7::/64 { iface vmbr0 } }Comments -
Add a rule for the default gateway:
ip -6 neigh add proxy <address> dev vmbr0Comments to the command
En
Es