###### tags: `AWS` # EC2 設定 IPv6 * 由 EC2 的資訊頁面點擊 VPC id 開啟 VPC 頁面, ![](https://i.imgur.com/tMg7VBh.png) * 在 Actions 功能表點選 Edit CIDRs ![](https://i.imgur.com/yNf4L8o.png) * Add new IPv6 CIDR ![](https://i.imgur.com/w906q2o.png) * 選擇 Amazon-provided IPv6 CIDR block ![](https://i.imgur.com/D5WctnR.png) * 點擊 VPC 資訊頁面中 Main route table 下的 route table id 進入 Route tables 頁面 ![](https://i.imgur.com/DSNRg2T.png) * 在下方的 Routes 分頁,點擊 Edit routes ![](https://i.imgur.com/ae4dKEi.png) * 新增一個 route,Destination 為 ::/0, Target 複製 IPv4 的 Target。 ![](https://i.imgur.com/6mE7re2.png) * 由 EC2 的資訊頁面點擊 Subnet id 開啟 Subnet 頁面, * 在 Actions 功能表點選 Edit IPv6 CIDRs ![](https://i.imgur.com/yvYk4wU.png) * 點擊 Add IPv6 CIDR ![](https://i.imgur.com/px9MqPj.png) * 在 Subnit CIDR block 的輸入框輸入 00 存檔 ![](https://i.imgur.com/pGaCHSw.png) * 在 EC2 頁面的 Actions 選單點選 Networking -> Manage IP Addresses ![](https://i.imgur.com/wtMzxV1.png) * 在 IPv6 Addresses 表格下點擊 Assign new IP ![](https://i.imgur.com/c3bs7G6.png) * IPv6 新增完成 ![](https://i.imgur.com/gzGt4IG.png) * 確定 Security Group 的 inbound rules 中 HTTP 及 HTTPS 有開啟 IPv6。