打印

Create Custom Route Tables and Associate VSwitches

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

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

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:

  1. Log on to the VPC console.
  2. In the left-side navigation pane, select Route Tables.
  3. Select the region of the route table to create.
  4. On the Route Tables page, select Create Route Table. The Create Route Table page appears.
    Figure 1. Creating a Route Table
  5. Configure the following parameters, and then select OK.
    1. From VPC, select your VPC.
    2. In Name, enter the name for the routing table, and create the route table, and now appears in the list of Route Tables.
  6. On the Route Tablespage, select the route table you created and then select the Associated VSwitches tab.
  7. Select Associate VSwitch. The Associate VSwitchpage appears.
    Figure 2. Associating a VSwitch
  8. From the VSwitch menu, select the relevant VSwitch to be associated with the Route Table.
  9. Select Refresh to confirm that the VSwitch associated with the Routing Table.
..