Create Routing Table

We will create two tables Cloud-RT-Public and Cloud-RT-Private:

  • Cloud-RT-Public: Routing Cloud-Subnet-Public to Cloud-IGW internet gateway.
  • Cloud-RT-Private: Routing Cloud-Subnet-Private to Cloud-NATGW NAT gateway.

I. Create route table public

In VPC dashboard

  • Choose Route tables menu.
  • Click the Create route table button.

rt

  1. At the Create route table page.
    • In the Name field, enter Cloud-RT-Public.
    • In the VPC section, select Cloud Server.
    • Click Create route table.

rt

  1. After creating the route table successfully.
  • Click Edit routes.

rt

  1. At the Edit routes page.
  • Click Add route.
  • In the Destination field, enter 0.0.0.0/0
  • In the Target section, select Internet Gateway and then select Cloud-IGW.
  • Click Save changes.

rt

rt

  1. Click the Subnet associations tab.
  • Click Edit subnet associations to proceed with the associate custom route table we just created in Cloud-Subnet-Public.

rt

  1. At the Edit subnet associations page.
  • Click on Cloud-Subnet-Public.
  • Click Save associations.

rt

  1. Check that the route table information has been associated with Cloud-Subnet-Public and the internet route information has been pointed to the Internet Gateway as shown below.

rt

II. Create route table private

In VPC dashboard

  • Choose Route tables menu.
  • Click the Create route table button.

rt

  1. At the Create route table page.
    • In the Name field, enter Cloud-RT-Private.
    • In the VPC section, select Cloud Server.
    • Click Create route table.

rt

  1. After creating the route table successfully.
  • Click Edit routes.

rt

  1. At the Edit routes page.
  • Click Add route.
  • In the Destination field, enter 0.0.0.0/0
  • In the Target section, select NAT Gateway and then select Cloud-NATGW.
  • Click Save changes.

rt

  1. Click the Subnet associations tab.
  • Click Edit subnet associations to proceed with the associate custom route table we just created in Cloud-Subnet-Private.

rt

  1. At the Edit subnet associations page.
  • Click on Cloud-Subnet-Private.
  • Click Save associations.

rt

  1. Check that the route table information has been associated with Cloud-Subnet-Private and the internet route information has been pointed to the Internet Gateway as shown below.

rt