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

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
主站蜘蛛池模板: 石城县| 平利县| 桑植县| 丹凤县| 舞钢市| 尤溪县| 苍山县| 长垣县| 阿拉善右旗| 宜都市| 堆龙德庆县| 永川市| 万安县| 靖州| 尚义县| 延吉市| 巫山县| 通辽市| 绍兴市| 昭通市| 鄯善县| 福贡县| 铅山县| 呼玛县| 健康| 怀化市| 晋中市| 伽师县| 高陵县| 洪泽县| 汉阴县| 郓城县| 安顺市| 纳雍县| 丹寨县| 湖北省| 丰原市| 秦皇岛市| 华亭县| 顺义区| 阿巴嘎旗|