After you create a Smart Access Gateway (SAG) vCPE instance, you can run the script provided by Alibaba Cloud to deploy the SAG vCPE image on a host. This topic describes how to deploy an SAG vCPE image on a host.
Prerequisites
- An SAG vCPE instance is created and the serial number and key of an SAG vCPE device are obtained. For more information, see Create an SAG vCPE instance.
- Before you deploy the SAG vCPE image on a host, make sure that the host meets the requirements. For more information, see Prerequisites.
Descriptions of the script parameters
The script that is used to deploy the SAG vCPE image provides the following parameters.

Parameter | Description |
---|---|
-n (required) | The serial number of the SAG vCPE device. |
-k (required) | The key of the SAG vCPE device. |
-t (required) | The service provider of the host on which you want to install the SAG vCPE image.
Valid values:
|
-v | The virtual IP address when two SAG vCPE devices have the high availability feature
enabled. The high availability feature is available only if the SAG vCPE image is
deployed on an Alibaba Cloud ECS instance.
Note If you want to enable the high availability feature for two SAG vCPE devices, you
must use the high-availability virtual IP address (HAVIP) feature provided by Alibaba
Cloud. The HAVIP feature is in public preview. For more information, see Overview of HAVIPs.
|
-w | The name of the NIC for the WAN port. Default value: eth0.
You can view the NIC name of the host by running the |
-u | Uninstalls the SAG vCPE image. |
-h | Displays the help information about the script. |
-p | Upgrades the SAG vCPE image. |
-c | Checks the status of the host. |
check | Obtains the deployment status of the current host, the system information about the host, and the version of the SAG vCPE image. |
ping | Tests the network connectivity. |
traceroute | Determines the path that packets pass through when they access the destination. |
mtr | Provides the network connectivity diagnostics feature together with the ping and traceroute commands. |
Deploy the SAG vCPE image
What to do next
After you deploy the SAG vCPE image, you must complete network settings on Alibaba
Cloud and for the host network before you can enable network communication. The network
settings may vary with the host network. For more information, see the following topics: