Updated on 2024-07-25 GMT+08:00

Step 1: Creating a VPN Gateway

Prerequisites

  • A VPC has been created. For details about how to create a VPC, see Creating a VPC and Subnet.
  • Security group rules have been configured for the VPC, and ECSs can communicate with other devices on the cloud. For details about how to configure security group rules, see Security Group Rules.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner of the page, and choose Networking > Virtual Private Network.
  4. In the navigation pane on the left, choose Virtual Private Network > Enterprise – VPN Gateways.
  5. Click the P2C VPN Gateways tab, and then click Buy P2C VPN Gateway.
  6. Set parameters as prompted and click Buy Now.

    Table 1 VPN gateway parameters

    Parameter

    Description

    Example Value

    Billing Mode

    Only Yearly/Monthly is supported.

    Yearly/Monthly

    Region

    Select the region nearest to you.

    CN-Hong Kong

    Name

    Enter the name of a VPN gateway.

    p2c-vpngw-001

    VPC

    Select the VPC that the client needs to access.

    vpc-001(192.168.0.0/16)

    Interconnection Subnet

    Subnet used for communication between the VPN gateway and VPC. Ensure that the selected interconnection subnet has three or more assignable IP addresses.

    192.168.2.0/24

    Specification

    Select a VPN gateway specification.

    Professional 1

    AZ

    • If two or more AZs are available, select two AZs.
    • If only one AZ is available, select this AZ.

    AZ1, AZ2

    Connections

    A VPN connection between a server and a client is counted as one connection.

    20

    EIP

    Select the EIP to be bound to the VPN gateway.

    You can buy a new EIP or use an existing EIP.

    Create now

    EIP Type

    Select the type of the EIP to be bound to the VPN gateway.

    Dynamic BGP

    Bandwidth (Mbit/s)

    Set the EIP bandwidth.

    20

    Bandwidth Name

    Specify the name of the EIP bandwidth.

    p2c-vpngw-bandwidth1

    Advanced Settings > Tags

    • A tag identifies a VPN resource. It consists of a key and a value. A maximum of 20 tags can be added.
    • You can select predefined tags or customize tags.
    • To view predefined tags, click View predefined tags.
    • Tag key: vpn_key1
    • Tag value: vpn-01

Verification

Check the VPN gateway on the P2C VPN Gateways page. The initial state of the VPN gateway is Creating. When the VPN gateway state changes to Normal, the VPN gateway is successfully created.