Help Center/ Virtual Private Cloud/ FAQs/ Connectivity/ What Are the Priorities of the Custom Route and EIP If Both Are Configured for an ECS to Enable the ECS to Access the Internet?
Updated on 2026-01-28 GMT+08:00

What Are the Priorities of the Custom Route and EIP If Both Are Configured for an ECS to Enable the ECS to Access the Internet?

In a VPC route table, routes are matched in descending order of priority: Local route > specific route > EIP route > default route.
  • If the destination of a custom route is a specific IP address (not 0.0.0.0/0), it takes priority over the EIP route.
  • If the destination of a custom route is 0.0.0.0/0, it can match any traffic. In this case, the EIP route has higher priority.

For more information about route priorities, see Route Priority.