An SAG-1000 device can connect your private network to Alibaba Cloud through a leased line or the Internet. When both are configured, the leased line carries active traffic and the Internet connection serves as a backup. If the leased line fails, the device automatically switches to the Internet connection.
This topic describes how to configure a leased line port on an SAG-1000 device.
Prerequisites
Before you begin, make sure you have:
An SAG-1000 device
A leased line role assigned to at least one device port. For instructions, see Assign a role to a port.
You will also need the following information during configuration:
| Information | Description | Example |
|---|---|---|
| IP address | IP address for the leased line port | 192.168.1.1 |
| Subnet mask | Subnet mask for the IP address | 255.255.255.0 |
| VLAN code | Virtual local area network (VLAN) code for the port. Valid values: 1–4094. Set to 0 for a physical port (no sub ports). | 100 |
Configure a leased line port
Log on to the Smart Access Gateway console.
Open the Device Management tab using one of the following methods:
Click the ID of the SAG instance. On the instance details page, click Device Management.
Find the SAG instance. In the Actions column, click
, then click Device Management.
On the Device Management tab, click Manage Leased Lines.
On the Manage Leased Lines tab, find the target port and click
to expand it.Configure the port based on whether you need sub ports:
No sub ports needed: Click Edit in the Actions column to configure the physical port directly.
NoteThe default VLAN code is 0, which means the port is a physical port. A physical port cannot have sub ports assigned.
Sub ports needed: Click Add in the Actions column to create a sub port.
Set the following parameters:
Parameter Description Constraints and example IP IP address of the leased line port Example: 192.168.1.1 Subnet mask Subnet mask for the IP address Example: 255.255.255.0 Port Port assigned in the previous step Read-only. Cannot be changed. VLAN VLAN code for the leased line port Valid values: 1–4094. Default: 0 (physical port, no sub ports). Click OK.
Select a routing method:
Static routing: Add a static route to direct traffic through the leased line. For instructions, see Add a static route.
Dynamic routing (BGP): Enable Border Gateway Protocol (BGP) for the port:
Click the Manage Routes tab. In the BGP Protocol Settings section, set the BGP parameters. For details, see Configure BGP routing.
In the Leased Line Dynamic Routing Settings section, find the target port and click Edit in the Actions column.
On the Modify Leased Line Dynamic Routing Settings page, select Enable BGP, enter the IP address and autonomous system (AS) code of the peer port, then click OK.