Skip to content

IPv6 networking

evroc Compute supports IPv6 alongside IPv4, giving you the flexibility to run workloads on dual-stack or IPv6-only networks. This page explains how IPv6 works with VPCs, subnets, and VMs on the evroc platform.

Every VPC, subnet, and VM has a stack type that determines which IP protocols it uses:

  • Dual-stack — IPv4 and IPv6 addresses are both assigned
  • IPv6-only — Only IPv6 addresses are assigned

A resource’s stack type must be compatible with its parent resource. A dual-stack VPC can contain dual-stack or IPv6-only subnets. An IPv6-only VPC can only contain IPv6-only subnets. A VM’s stack type must be compatible with the subnet it runs in.

Subnet type Valid VM stack types
Dual-stack Dual-stack, IPv6-only
IPv6-only IPv6-only

When you create a dual-stack or IPv6-only subnet, evroc automatically allocates a /64 IPv6 CIDR block for it from the parent VPC’s IPv6 block. You don’t specify this range — the service handles it and reflects the allocated CIDR on the subnet’s status.

VMs receive their IPv6 addresses automatically from the subnet’s range. Like IPv4 addresses, these are assigned by the system rather than specified at creation time.

When you create a new project, evroc automatically provisions a dual-stack VPC and one dual-stack subnet per availability zone. This means IPv6 is present from the start — you don’t need to enable it.

The default VPC receives a /56 IPv6 CIDR block and each default subnet receives a /64 block carved from that VPC range. The /64 blocks are not contiguous - different projects can have different orders of /64 blocks across zones.

Security group rules can target IPv6 addresses and CIDR ranges using the same fields as IPv4. A rule that specifies an IPv6 CIDR only applies to IPv6 traffic, and a rule that specifies an IPv4 CIDR only applies to IPv4 traffic.

The default security groups provided with every project include both IPv4 and IPv6 rules, so VMs with IPv6 addresses aren’t left with implicit deny on all traffic. When you create custom rules for IPv6 workloads, write separate rules for each protocol version:

# Ingress rule for IPv4 SSH
remote:
address:
ipAddressOrCIDR: 0.0.0.0/0
# Ingress rule for IPv6 SSH
remote:
address:
ipAddressOrCIDR: ::/0

IPv4-only VMs are deprecated - you can no longer create new IPv4-only VMs. Existing IPv4-only VMs continue to work, but you should migrate them to dual-stack or ipv6-only.

The v1beta2 release adds a stackType field to VMs. In releases earlier than v1beta2, all VMs were effectively IPv4-only — there was no stack type to configure.

New VMs must use dual-stack or ipv6-only. The ipv4-only stack type is deprecated and can’t be set on new VMs.

To migrate a VM, use the evroc CLI:

  1. Stop the VM:

    Terminal window
    evroc compute virtualmachine update myvm --running=false
  2. Update the VM’s stack type to dual-stack (if IPv4 networking is desired) or ipv6-only:

    Terminal window
    evroc compute virtualmachine update myvm --stack-type=dual-stack
  3. Start the VM again:

    Terminal window
    evroc compute virtualmachine update myvm --running=true

You can check a VM’s stack type and addresses using:

Terminal window
evroc compute virtualmachine get myvm

Look for the stackType, privateIPv4Address, and ipv6Address fields in the output.

To use IPv6 on pre-existing VMs, you must configure security groups which allow IPv6 connectivity. This requirement applies to any security group rule which uses a remote IP or CIDR for the remote.

For example, to create a security group which allows all IPv6 egress traffic in the default VPC, use:

Terminal window
evroc networking securitygroup create allow-ipv6-egress
evroc networking securitygroup addrule allow-ipv6-egress \
--name=allow-egress-ipv6 \
--direction=Egress \
--remote-ip-or-cidr=::/0 \
--protocol=All

You must then configure this security group on the VMs which require IPv6 egress connectivity.

For a complete list of new features and other changes in v1beta2, see What’s new in the v1beta2 release.

The following features aren’t supported:

  • Customer-specified IPv6 CIDR blocks for VPCs or subnets — these are service-allocated
  • Static IPv6 address assignment on VMs — addresses are assigned automatically
  • NAT64 or DNS64 for IPv6-only VMs to reach IPv4-only internet destinations
  • Multiple network interfaces on a VM