Enable IPv6 on a Debian EC2 instance

Boris HUISGEN
Boris HUISGEN
Enable IPv6 on a Debian EC2 instance

Following the assignment of an IPv6 block to your VPC and the network subnets, it remains to activate the IPv6 support on each EC2 instance.

In the case of a Debian distribution, the enabling of IPv6 is done by adding the following line to the configuration file of the network interfaces:

# vim /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
   post-up sleep 2
iface eth0 inet6 dhcp

The instance must be restarted next.

Boris HUISGEN
Boris HUISGEN
Blog owner
  • #debian
  • #aws
  • #ipv6