Create NAT Gateway

Create Nat Gateway

Create an Elastic IP address

  1. Access EC2
  • Select Elastic IPs
  • Select Allocate Elastic IP address nat
  1. In the interface Allocate Elastic IP address
  • Public IPv4 address pool, select Amazon’s pool of IPv4 addresses
  • Select Allocate nat
  1. We have just successfully created a Public IP Address nat

Create Nat Gateway

  1. Access to VPC
  • Select NAT Gateways nat
  1. In the NAT gateway interface
  • Name, enter NAT-Provider
  • Subnet, select PublicSubnet-Provider
  • Connectivity type, select Public
  • Elastic IP allocation ID, select the newly created Elastic IP.
  • Select Create NAT gateway nat
  1. Successfully created NAT gateway

Edit Route tables RTB-PrivateSubnet-Provider and RTB-PublicSubnet-Provider to allow instances inside the Private subnet to access the Internet via NAT

  1. Access VPC
  • Select Route tables
  • Select RTB-PrivateSubnet-Provider , select the Route tab and press Edit routes rt
  1. In the Edit routes interface
  • Select Add route
  • Fill in the Destination CIDR : 0.0.0.0/0 representing the Internet.
  • In the Target section select NAT Gateway, then select the NAT Gateway we created. NAT Gateway will be automatically populated.
  • Select Save changes

rt 3. In the Route tables interface

  • Select RTB-PublicSubnet-Provider
  • In the Routes tab, select Edit routes rt
  1. In the Edit routes interface
  • Select Add route
  • Fill in the Destination CIDR : 0.0.0.0/0 representing the Internet.
  • In the Target section select Internet Gateway, then select the Internet Gateway we created. Internet Gateway ID will be automatically filled in.
  • Select Save changes rt