Buying a L2CG
Scenarios
To enable Layer 2 communications between a VPC and your data center subnet, you need to buy a L2CG.
L2CGs are currently available for open beta test in CN East-Shanghai1 and CN South-Guangzhou. You can use this function after obtaining the open beta test permissions.
Prerequisites
- You have created the VPC and subnet that the L2CG is to be attached to.
- The VPC has been attached to a Direct Connect virtual gateway. (This is not mandatory if Tunnel Connection is set to Custom.)
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click Virtual Private Cloud.
- In the navigation pane on the left, click Layer 2 Connection Gateway.
- On the displayed page, click Buy. Figure 1 Buy Layer 2 Connection Gateway
- Set the parameters as prompted. For details, see Table 1.
Table 1 Parameter descriptions Parameter
Description
Example Value
Billing Mode
L2CGs can be billed based on a pay-per-use basis.
Pay-per-use
Region
Specifies the region where the L2CG belongs.
CN North-Beijing1
Active AZ
Specifies the AZ where the active L2CG is located.
An active AZ carries traffic. Select the AZ in which the ECS on the cloud is deployed to ensure quick and uninterrupted access to the ECS.
AZ1
Standby AZ
Specifies the AZ where the standby L2CG is located.
A standby AZ is used for backup and disaster recovery. It is recommended that the standby AZ be different from the active AZ.
AZ2
Type
Specifies the type of the L2CG.
There are three types, including basic, standard, and enhanced. (Only enhanced L2CGs are available during the OBT.)
Enhanced
Tunnel Connection
Specifies the connection used to connect a L2CG to a data center. The value can be Direct Connect.
Direct Connect
Connection Gateway
Select a virtual gateway if you set Tunnel Connection to Direct Connect.
vgw-01
VPC
Specifies the VPC that the L2CG is to be attached to.
vpc-01
Tunnel Subnet
Specifies the subnet of the VPC that the L2CG is to be attached to.
The subnet communicates with an on-premises network using a Direct Connect connection.
subnet-01
Tunnel IP Address
Specifies an IP address in the tunnel subnet, which can be automatically assigned or manually specified.
Automatically assign
Name
Specifies the L2CG name.
The name is a string of no more than 64 characters that can contain letters, digits, underscores (_), and hyphens (-).
l2cg-01
Description
Provides supplementary information about the L2CG.
The description can contain a maximum of 255 characters.
-
After the preceding parameters are set, the L2CG price will be displayed. You can click Pricing Details on the page to view details.
- Click Next. On the displayed page, you can check the L2CG information.
- Click Submit.
This operation takes 3 to 6 minutes to complete.
- View the status on the Layer 2 Connection Gateway page.
If the status is Running, the L2CG is created.
Last Article: L2CG Overview
Next Article: Viewing a L2CG
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.