Step 3: Create a Virtual Interface
Scenarios
After the connection and the virtual gateway are ready, you need to create a virtual interface so that your network can access the VPC you want to access.
Procedure
- Log in to the management console.
- On the console homepage, click in the upper left corner and select the desired region and project.
- Hover on to display Service List and choose Networking > Direct Connect.
- In the navigation pane on the left, choose Direct Connect > Virtual Interfaces.
- Click Create Virtual Interface.
Configure the parameters based on Table 1.
Table 1 Parameters for creating a virtual interface Parameter
Description
Region
Specifies the region where the connection resides. You can also change the region in the upper left corner of the console.
Name
Specifies the virtual interface name.
The name can contain 1 to 64 characters.
Connection
Specifies the connection you can use to connect your environment to Huawei Cloud.
Virtual Gateway
Specifies the virtual gateway to which the virtual interface connects.
VLAN
Specifies the ID of the VLAN for the virtual interface.
You need to configure the VLAN if you create a connection on your own.
The VLAN for a hosted connection will be allocated by the carrier or partner. You do not need to configure the VLAN.
Bandwidth
Specifies the bandwidth that can be used by the virtual interface in the unit of Mbit/s. The bandwidth cannot exceed that of the connection.
Enterprise Project
Provides a cloud resource management mode where cloud resources and members are centrally managed by project.
Local Gateway
Specifies the IP address for connecting to the cloud.
Remote Gateway
Specifies the IP address for connecting to the on-premises network.
The remote gateway must be in the same IP address range as the local gateway. Generally, a subnet with a 30-bit mask is recommended.
Remote Subnet
Specifies the subnets and masks of your network. If there are multiple subnets, use commas (,) to separate them.
Routing Mode
Specifies the routing mode. Two options are available, static routing and BGP routing.
If there are two connections or you want to have another connection in the future, select BGP routing.
BGP ASN
Specifies the autonomous system number (ASN) of the BGP peer.
This parameter is required when BGP routing is selected.
BGP MD5 Authentication Key
Specifies the password used to authenticate the BGP peer using MD5.
This parameter is mandatory when BGP routing is selected, and the parameter values on both gateways must be the same.
The key contains 8 to 255 characters and must contain at least two types of the following characters:
- Uppercase letters
- Lowercase letters
- Digits
- Special characters ~!, .:;-_"(){}[]/@#$ %^&*+\|=
Description
Provides supplementary information about the virtual interface.
When you configure the local and remote gateways, note the following:
- The local gateway is used by Huawei Cloud for connecting to your equipment room. After you configure Local Gateway on the console, the configuration will be automatically delivered to the gateway used by Huawei Cloud.
- The remote gateway is used by your equipment room for connecting to Huawei Cloud. After you configure Remote Gateway on the console, you also need to configure the gateway deployed in your equipment room.
- The local gateway must be in the same CIDR block as the remote gateway, and this CIDR block cannot conflict with the local subnet configured on the virtual gateway or the remote subnet configured on the virtual interface.
- Click Create Now.
Ensure that the virtual interface is in the Normal state.
-
Ping the IP address of a host in the VPC from your environment to check network connectivity.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.