Updated on 2024-05-07 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. On the homepage, choose Networking > Virtual Private Network.
  4. In the navigation pane on the left, choose Virtual Private Network > Enterprise – VPN Gateways.
  5. Click P2C VPN Gateways, and then click Buy P2C VPN Gateway in the upper right corner.
  6. Set parameters as prompted and click Buy Now.

    Table 1 VPN gateway parameters

    Parameter

    Description

    Example Value

    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

    Billed By

    The options include Bandwidth and Traffic.

    Bandwidth

    Bandwidth (Mbit/s)

    Set the EIP bandwidth.

    20

    Bandwidth Name

    Specify the name of the EIP bandwidth.

    p2c-vpngw-bandwidth1

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.