Help Center/ Enterprise Router/ User Guide/ Routes/ Modifying a Static Route
Updated on 2024-10-14 GMT+08:00

Modifying a Static Route

Scenarios

This section describes how to modify static routes, including common routes and blackhole routes, in a route table of an enterprise router. For example, you can perform the following operations:

  • Change a common route to a blackhole route.
  • Change the attachment type and next hop of a common route.

Only static routes can be modified. Propagation routes cannot be modified.

Notes and Constraints

To change the destination of a static route, delete this static route and create another one with your desired destination.

Procedure

  1. Go to the enterprise router list.
  2. Search for the target enterprise router by name.
  3. Go to the Route Tables tab using either of the following methods:

    • In the upper right corner of the enterprise router, click Manage Route Table.
    • Click the enterprise router name and click Route Tables.

  4. Click the route table where you want to modify a route. On the Routes tab, locate the route and click Modify in the Operation column.

    The Modify Route dialog box is displayed.

  5. Modify the route based on Table 1.

    Table 1 Parameter description

    Parameter

    Setting

    Example Value

    Blackhole Route

    Optional

    If Blackhole Route is enabled, you do not need to configure Attachment Type and Next Hop for the route. If the destination of a route is the same as, or is contained in, that of this blackhole route, all packets destined for the destination will be dropped.

    -

    Attachment Type

    • If Blackhole Route is not enabled, you need to configure this parameter.
    • If Blackhole Route is enabled, you do not need to configure this parameter.
    Select an attachment type.
    • VPC: Create a static route for a VPC attachment.
    • Peering connection: Create a static route for an enterprise router in another region.
    • CFW instance: Create a static route for a VPC border firewall that is attached to the enterprise router.

    For more information, see Attachment Overview.

    VPC

    Next Hop

    • If Blackhole Route is not enabled, you need to configure this parameter.
    • If Blackhole Route is enabled, you do not need to configure this parameter.

    In the drop-down list, select the target attachment.

    er-attach-01

  6. Click OK.

    View the modified static route in the route list.