This topic describes how to implement active/standby static routing for two Virtual Border Routers (VBRs) in the same region by using route maps of Cloud Enterprise Network (CEN).

Prerequisites

Before you add a route map, make sure that the following conditions are met:

Background information

A route map permits or denies a route based on configured rules. You can set rules to modify the attributes of a route that is permitted by a route map.Implement active/standby routing for VBRs in the same region by using route maps of CEN

As shown in the preceding figure, a company has an on-premises data center in Hangzhou. The company connects the on-premises data center to Alibaba Cloud by using two leased lines from two service providers. Leased line 1 has a port specification of 10 GB. Leased line 2 has a port specification of 1 GB. The two corresponding VBRs, namely VBR 1 and VBR 2, and a VPC are attached to a CEN instance. The company used load balancing routing to connect the on-premises data center to Alibaba Cloud. However, the port specification of leased line 2 were insufficient. To fix the problem, the company needs to use leased line 2 as a standby link and leased line 1 as the active link so that traffic is forwarded to leased line 2 when leased line 1 fails.

The company can use route maps to set a higher priority for leased line 1 and a lower priority for leased line 2. By doing so, the link of VBR 1 becomes an active link and the link of VBR 2 becomes a standby link.

Step 1: Set the link of VBR 1 as the active link

To set the link of VBR 1 as the active link, follow these steps:

  1. Log on to the CEN console.
  2. In the left-side navigation pane, click Instances.
  3. On the Instances page, find the target CEN instance and click Manage in the Actions column.
  4. On the CEN page, click the Route Maps tab and then click Add Route Map.
  5. On the Add Route Map page, configure the route map according to the following information and then click OK.
    • Route Map Priority: Enter the priority of the route map. A smaller number represents a higher priority. In this example, enter 20.
    • Region: Select the region in which the route map is applied. In this example, select China (Hangzhou).
    • Transmit Direction: Select the direction in which the route map is applied. In this example, select Import to Regional Gateway.
    • Match Conditions: Set the matching conditions of the route map. In this example, select Source Instance IDs as a match condition and enter the instance ID of VBR 1.
    • Action Policy: Select the action that is performed to a route if the route meets all the match conditions. In this example, select Permit.
    • Policy Entry: Select Route Preference and then set the preference for the permitted routes. In this example, set the preference to 10.
      Note The preference of a permitted route is set to 50 by default. You can set the preference of a route to a value from 1 to 100. The smaller the value is, the higher the preference is.

Step 2: Set the link of VBR 2 as the standby link

To set the link of VBR 2 as the standby link, follow these steps:

  1. In the left-side navigation pane, click Instances.
  2. On the Instances page, find the target CEN instance and click Manage in the Actions column.
  3. On the CEN page, click the Route Maps tab and then click Add Route Map.
  4. On the Add Route Map page, configure the route map according to the following information and then click OK.
    • Route Map Priority: Enter the priority of the route map. A smaller number represents a higher priority. In this example, enter 30.
    • Region: Select the region in which the route map is applied. In this example, select China (Hangzhou).
    • Transmit Direction: Select the direction of the route map. In this example, select Import to Regional Gateway.
    • Match Conditions: Set the matching conditions of the route map. In this example, select Source Instance ID as a match condition and then enter the instance ID of VBR 2.
    • Action Policy: Select the action that is performed to a route if the route meets all the match conditions. In this example, select Permit.
    • Policy Entry: Select Route Preference and then set the preference for the permitted routes. In this example, set the preference to 20.
      Note The preference of a permitted route is set to 50 by default. You can set the preference of a route to a value from 1 to 100. The smaller the value is, the higher the preference is.
    After you add the route maps, you can see that one of the two routes pointing to 10.0.0.0/24 is a standby route on the Routes tab.View active/standby routes