Manage Route table

Last updated: 2020-04-02 16:23:09

    Creating a Custom Route Table

    In addition to the default route table automatically generated by the system, you can customize a new route table.

    1. Log in to VPC Console.
    2. Click Route Tables in the left sidebar to go to the management page.
    3. Click +Create.
    4. Enter the route table name in the pop-up box, select the VPC to which the route table belongs, create a routing policy, and click Create.

    Configuring Routing Policies

    1. Log in to VPC Console.
    2. Click Route Tables in the left sidebar to go to the management page.
    3. In the list, click the route table ID to be modified to go to the details page.
    4. Click Add Routing Policy to add a routing policy.
    5. In the pop-up box, enter the destination IP range, select the next-hop type (public gateway, VPN gateway, or direct connect gateway) and the next-hop ID.
      Configurationdescription
      DestinationTarget IP range to which the traffic is forwarded
      Next-hop typeEgress of VPC data packets. The following types are supported:
      • CVM (public network gateway): the traffic directed to a destination IP range is forwarded to a public network gateway (a CVM with the forwarding feature enabled). For more information, see Configuring a Public Gateway.
      • VPN gateway: the traffic directed to a destination IP range is forwarded to a VPN gateway.
      • Direct connect gateway: the traffic directed to a destination IP range is forwarded to a direct connect gateway.
      • Peering connection: the traffic directed to a destination IP range is forwarded to a VPC on the other end of a peering connection.
      • NAT gateway: the traffic directed to a destination IP range is forwarded to a NAT gateway.
      • CVM: the traffic directed to a destination IP range is forwarded to a CVM instance in a VPC.
      • CVM public IP: the traffic directed to a destination IP range is forwarded to the public IP address of a CVM instance in a VPC (including common public IP addresses and EIPs).
      Next hopSpecifies the next hop instance to which the traffic is redirected, such as the IP address of a gateway or CVM.
    6. Click OK, and the routing policy takes effect immediately.
    7. (Optional) After adding a custom routing policy, click Edit or Delete in the routing policy operation column to modify or delete the routing policy.

    Changing Subnet-Associated Route Tables

    1. Log in to VPC Console.
    2. Click Subnets in the left sidebar to go to the management page.
    3. In the list, find the subnet for which the route table needs to be changed and click Change route table in the operation column.
    4. Select the route table that it is to be changed to in the pop-up box and click OK to complete the operation.

    Deleting Custom Route Tables

    The default route table automatically generated by the system cannot be deleted, but custom route tables can be created, modified, and deleted.

    1. Log in to VPC Console.
    2. Click Route Tables in the left sidebar to go to the management page.
    3. In the list, locate the route table to be deleted, click Delete in the operation column, and confirm the operation.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help