Updated on 2025-07-23 GMT+08:00

Configuring VPC Routes

After associating VPCs with a firewall, you need to add routes. This section describes how to configure routes on the VPC side.

Configuring VPC Routes

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. In the navigation tree on the left, click in the upper left corner. Click Virtual Private Cloud under Networking and choose Virtual Private Cloud > Route Tables.
  4. In the route table list, click the name of the route table of the VPC. The basic information page is displayed.
  5. Click Add Route and configure route parameters.

    Table 1 Route parameters

    Parameter

    Description

    Destination Type

    Select the destination address type. The value can be IP address or IP address group.

    Destination

    Destination CIDR block.

    Next Hop Type

    Select VPC peering connection from the drop-down list.

    Next Hop

    Select the VPC peering connection associated with the traffic diversion VPC.

    Description

    (Optional) Supplementary information about the route.

    Enter up to 255 characters. Angle brackets (< or >) are not allowed.

  6. Click OK.

Follow-up Operations

After routes are configured, the firewall is in the Disabled state by default. You can manually enable inter-VPC protection. For details, see Enabling a VPC Border Firewall.

Related Operations

Deleting a route: If you no longer need a route and related protection, delete it from the VPC route table. Perform the following operations:

If a route table is associated with a subnet, deleting rules from the route table may affect how and where traffic is directed. Be careful with this operation as it may interrupt services.

  1. On the Route Table page of VPC, click the name of a route table.
  2. In the route list, locate the row that contains the route to be deleted and click Delete in the Operation column.
  3. Confirm the information and click OK.