aws ipv6

最後更新: 2022-07-20

Notes

 * No IPv6 EIP

 * IPv6 跟 NIC 的

 


Steps

 

Create VPC with IPv6

1. VPC with an IPv6 /56 CIDR block

2. Creates a subnet with /64 CIDR block

3. Add "::/0" route on the "Routes Tables" menu which point to your "Internet Gateways"

Assign IPv6 to instances

1) Assign IPv6 to NIC

2) Assign NIC to instance

 * An IPv6 address persists when you stop and start, or hibernate and start, your instance,

    and is released when you terminate your instance.

 * You assign an IPv6 address to the primary network interface of your instance after launch.

    You can assign additional IPv6 addresses to your instance by assigning them to a network interface attached to your instance.

Configure DHCPv6 on instances

Centos 7

/etc/sysconfig/network-scripts/ifcfg-eth0

NM_CONTROLLED=no
IPV6INIT=yes
DHCPV6C=yes

/etc/sysconfig/network

NETWORKING_IPV6=yes

service network restart

Checking

ip addr | grep inet6

ip -6 route show