This topic describes how to configure health check for triggering route advertisement policies in the Smart Access Gateway (SAG) console.

Prerequisites

Make sure that the following requirements are met.

Procedure

  1. Log on to the SAG console.
  2. Use one of the following methods to open the Network Configuration tab.
    • Click the ID of the target SAG instance. On the instance details page that appears, click the Network Configuration tab.
    • Find the target SAG instance and click Network Configuration in the Actions column.
  3. In the left-side navigation tree, click Routes.
  4. Find the target destination CIDR block and click Set Health Check in the Actions column.
  5. In the Set Health Check dialog box that appears, select the target health check instance and click OK.
    Note After the CIDR block is associated with the health check instance, you must set the advertisement policy again before the settings can take effect.
  6. Select an advertisement policy.
    • To set the policy for advertising a route to your private network, click Edit in the Publish to On-premises column and select a policy.
    • To set the policy for advertising a route to Alibaba Cloud, click Edit in the Health Check Actions column and select a policy.
    Route advertisement policy Description
    Not Publish - Publish When Health Check Succeeds Routes are advertised only after network connectivity passes health check. Advertised routes are automatically withdrawn after network connectivity fails health check.
    Not Publish - Publish when health check fails Routes are advertised only after network connectivity fails health check. Advertised routes are automatically withdrawn after network connectivity passes health check.
    Publish - Withdraw when health check succeeds Advertised routes are withdrawn after network connectivity passes health check. Routes are automatically advertised after network connectivity fails health check.
    Publish - Publish when health check fails Advertised routes are withdrawn after network connectivity fails health check. Routes are automatically advertised after network connectivity passes health check.
  7. Click OK.
    After you set the advertisement policy for a route, you can find the target destination CIDR block and check the advertisement status in the Publishing Status column.Route-HC