官术网_书友最值得收藏!

How to do it...

  1. I have created one more EC2 instance as visible in the Instances section of the EC2 console.
 EC2 created for NAT
  1. Click on Elastic IPs in the left menu bar.
 Elastic IP dashboard
  1. Click on Allocate new address.

 Elastic IP creation page
  1. Click on Allocate.
Elastic IP creation success message
  1. Click on Close. The Elastic IP page will be visible. Choose Elastic IP and click on Actions | Associate address.

Elastic IP Action menu
  1. Choose Instance in the Resource type. Select Nat Instance from the Instance drop-down menu. Click on Associate. A success message is shown.

 Elastic IP association with EC2 instance
  1. Go to the Instances menu. You can see that the public DNS and IPv4 public IP has changed. You can see Change Source/Dest. Check is true for the instance.
 EC2 instance with Elastic IP
  1. Select Actions | Networking | Change Source/Dest. Check.
Changing Source/Dest Check for NAT instance
  1. You can see that Change Source/Dest. Check is now false.
NAT instance details
  1. We need to update the main Route Table attached to the VPC. Let's go back to the VPC dashboard and select our VPC.
 VPC dashboard
  1. Click on the Route Tables starting with rtb.

 Main Route Table
  1. Select the Route Table and navigate to the Routes tab. Click on the Edit button. Add 0.0.0.0/0 in the destination and the NAT instance ID in Target. Click Save.
 Attach NAT in main Route Table
主站蜘蛛池模板: 惠来县| 大洼县| 临清市| 定南县| 吴桥县| 龙南县| 株洲县| 安顺市| 新田县| 睢宁县| 临澧县| 久治县| 西乌珠穆沁旗| 奈曼旗| 耒阳市| 浦县| 本溪市| 连州市| 织金县| 灌云县| 柞水县| 红安县| 徐水县| 宝清县| 汾西县| 闽侯县| 沂南县| 广丰县| 昭平县| 靖西县| 如东县| 岐山县| 克东县| 滦平县| 大冶市| 洪泽县| 民乐县| 湄潭县| 涟水县| 迭部县| 唐河县|