Help Center> Direct Connect> Getting Started> Step 2: Create a Virtual Gateway
Updated on 2024-05-20 GMT+08:00

Step 2: Create a Virtual Gateway

Scenarios

You can create a virtual gateway and associate it with the VPC that you need to access.

Procedure

  1. Log in to the management console.
  2. On the console homepage, click in the upper left corner and select the desired region and project.
  3. Hover on to display Service List and choose Networking > Direct Connect.
  4. In the navigation pane on the left, choose Direct Connect > Virtual Gateways.
  5. Click Create Virtual Gateway.
  6. Configure the parameters based on Table 1.
    Figure 1 Creating a virtual gateway
    Table 1 Parameters required for creating a virtual gateway

    Parameter

    Description

    Name

    Specifies the virtual gateway name.

    The name can contain 1 to 64 characters.

    Enterprise Project

    Provides a cloud resource management mode where cloud resources and members are centrally managed by project.

    VPC

    Specifies the VPC to be associated with the virtual gateway.

    Local Subnet

    Specifies the CIDR blocks of the subnets in the VPC to be accessed using Direct Connect.

    You can add one or more CIDR blocks. If there are multiple CIDR blocks, separate every entry with a comma (,).

    BGP ASN

    Specifies the BGP ASN of the virtual gateway.

    NOTE:

    Generally, Huawei Cloud's BGP ASN is 64512. There are two special cases:

    • In the CN North-Beijing1 region, the default BGP ASN of Huawei Cloud is 65533.
    • In the AP-Bangkok region, the BGP ASN of some Direct Connect locations is 65535 by default. For details, contact the Direct Connect manager.

    Tag

    Identifies the virtual gateway. A tag consists of a key and one or more values. You can add 20 tags to a virtual gateway.

    Tag keys and values must meet the requirements listed in Table 2.

    NOTE:

    If a predefined tag has been created on TMS, you can directly select the corresponding tag key and value.

    For details about predefined tags, see Predefined Tag Overview.

    If you have configured tag policies for Direct Connect, you need to add tags to your virtual gateways based on the tag policies. If you add a tag that does not comply with the tag policies, virtual gateways may fail to be created. Contact your administrator to learn more about tag policies.

    Description

    Provides supplementary information about the virtual gateway.

    Table 2 Tag naming requirements

    Parameter

    Requirements

    Key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain a maximum of 36 characters.
    • Can contain only letters, digits, hyphens, and underscores.

    Value

    • Can be left blank.
    • Can contain a maximum of 43 characters.
    • Can contain only letters, digits, periods, hyphens, and underscores.
  7. Click OK.

    Ensure that the virtual gateway is in the Normal state.