VMmanager: Administrator guide
en En
es Es

Managing IPv6

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 the VM's network interface settings, the prefix of the created IPv6 subnet is specified, not the subnet allocated to the VM.

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: 

  1. Go to Networks → IP subnets → Add IP subnet. 
  2. Select subnet status: Active.
  3. 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.
  4. 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". 
  5. Enter the Gateway for the subnet.
  6. Specify any Note.
  7. To add IP addresses of the subnet to the pool:
    1. Enable the Add IP addresses to the IP pool option.
    2. In the IP pool name field, select the name of an existing pool or enter the name of a new pool. 
    3. 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.
    4. 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.
  8. 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:

NDP is used for multicast proxying ICMP6 neighbor discovery (ND) requests. If provider's IPv6 network is routed on-link, then multicast ND request (analog of ARP request on IPv4) will come to physical interface of cluster node. Proxying allows ND requests to be forwarded to the vmbr0 bridge, and responses are sent back to the physical interface.
  1. Connect to the cluster node via SSH.
  2. Install the ndppd service: 

    dnf config-manager --set-enabled powertools
    dnf install epel-release
    dnf install ndppd
  3. Create the configuration file /etc/ndppd.conf: 

    Configuration file example
    proxy enp3s0f0 {
     rule 2a01:4f8:13b:9a7::/64 {
     iface vmbr0
     }
    }
    Comments
  4. Add a rule for the default gateway: 

    ip -6 neigh add proxy <address> dev vmbr0
    Comments to the command

Useful tips