All Products
Search
Document Center

Smart Access Gateway:Configure BGP routing

Last Updated:Aug 28, 2026

Smart Access Gateway (SAG) supports Border Gateway Protocol (BGP) for dynamic routing. Configure BGP in the Smart Access Gateway console to exchange routes between an SAG device and the peer devices in your network.

How BGP routing works on an SAG device

Border Gateway Protocol (BGP) is a routing protocol that runs over TCP and exchanges routing information between autonomous systems (AS). When two autonomous systems exchange routing information, each autonomous system designates a node that runs BGP to exchange routes with the other autonomous systems on its behalf.

In large-scale networks, BGP is commonly used to propagate and control routing information among multiple autonomous systems. In these networks, an SAG device is usually deployed in one-arm mode. The BGP routing feature of the SAG device connects private network traffic to Alibaba Cloud without changing your network topology and with minimal changes to your network configuration.

Prerequisites

  • Your SAG device is an SAG-1000 model.

Procedure

Configure the BGP process on the SAG device before you enable BGP on a port.

  1. Log on to the Smart Access Gateway console.
  2. Use one of the following methods to go to the Device Settings page:

    • Click the ID of the target Smart Access Gateway instance. On the instance details page, click Device Settings.

    • Find the target Smart Access Gateway instance. In the Operation column, choose More > Device Settings.

  3. On the Device Settings page, click the Manage Routes tab.

  4. In the BGP Protocol Settings section, click Edit.

  5. In the Configure BGP Route Protocol dialog box, configure the parameters that are described in the following table.

    Parameter

    Description

    Local AS

    The number of the autonomous system to which the SAG device belongs. Valid values: 1 to 2147483647.

    Router ID

    The router ID of the BGP process on the SAG device. The value must be in IPv4 address format, for example, 192.168.1.1.

    Hold Time

    The hold time, in seconds. Valid values: 3 to 65535 seconds.

    Note

    When the SAG device establishes a peer relationship with a peer device, both devices must negotiate and use the same hold time. If the SAG device does not receive a keepalive or UPDATE message from the peer device within the hold time, the BGP connection is terminated.

    Keep Alive

    The interval, in seconds, for sending keepalive messages. Valid values: 0 to 65535 seconds.

  6. In the Dynamic Routing Settings section, select Enable BGP Protocol.

  7. In the Operation column of the target port, click Edit.

  8. In the Modify BGP Dynamic Routing Settings dialog box, select an option, and then click OK:

    • BGP Protocol: Enables the BGP routing protocol on the port. You must enter the peer IP address and the peer AS number.

    • Disabled: Disables the BGP routing protocol on the port.