A route table is a list of route entries in a VPC. The network traffic is routed based on the configurations of the route entries in the route table. After a VPC is created, the system automatically creates a default route table and adds system routes to the route table for traffic management.

You cannot create or delete the default route table. However, you can create a custom route table and associate it with a VSwitch to control the routes of the corresponding subnet. To create a custom route table and associate it with a VSwitch, perform the following steps:

Prerequisites

Ensure that a VPC and VSwitches have been created. For steps, see Create a Virtual Private Cloud and Create a VSwitch.

Procedure

  1. Log on to the VPC console.
  2. In the left-side navigation pane, click Route Tables.
  3. Select the region of the route table to be created.
  4. On the Route Tables page, click Create Route Table.
    The Create Route Table page appears.
  5. Configure the following parameters, and then click OK.
    1. From the VPC drop-down menu, select your VPC.
    2. In the Name text box, enter the name for the routing table.
      The route table is created, and it gets added to the list of Route Tables.
  6. On the Route Tables page, select the route table that you have created and then click the Associated VSwitches tab.
  7. Click Associate VSwitch.
    The Associate VSwitch page appears.
  8. From the VSwitch drop-down menu, select the relevant VSwitch to be associated with the Route Table.

Results

Click Refresh to confirm that the VSwitch is associated with the Routing Table.

What to do next