No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.
Trademarks and Permissions
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specied in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every eort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
1 General Questions................................................................................................................... 1
1.1 What Is a Quota?.................................................................................................................................................................... 1
2 Billing and Payments..............................................................................................................3
2.1 Will I Be Charged for Using the VPC Service?............................................................................................................... 3
2.2 How Is an EIP Billed? ............................................................................................................................................................ 3
2.3 How Do I Change the Billing Mode?................................................................................................................................ 4
2.4 How Do I Change the Bandwidth Billing Option from Bandwidth to
3 VPC and Subnet....................................................................................................................... 7
3.1 What Is Virtual Private Cloud?............................................................................................................................................7
3.2 Which CIDR Blocks Are Available for the VPC Service?............................................................................................. 9
3.3 How Many VPCs Can I Create?...........................................................................................................................................9
3.4 Can Subnets Communicate with Each Other?.............................................................................................................. 9
3.5 What Subnet CIDR Blocks Are Available?.......................................................................................................................9
3.6 Can I Modify the CIDR Block of a Subnet?.....................................................................................................................9
3.7 How Many Subnets Can I Create?.................................................................................................................................. 10
3.8 How Can I Delete a Subnet That Is Being Used by Other Resources?...............................................................10
3.9 How Do I Switch to a Private DNS Server?..................................................................................................................10
4.3 How Do I Access the Internet Using an EIP Bound to an Extension NIC?........................................................ 13
4.4 What Are the
4.5 Can an EIP That Uses Dedicated Bandwidth Be Changed to Use Shared Bandwidth?................................ 14
4.6 Can I Bind an EIP to Multiple ECSs?............................................................................................................................... 14
4.7 How Do I Access an ECS from the Internet After an EIP Is Bound to the ECS?.............................................. 14
4.8 What Is the EIP Assignment Policy?............................................................................................................................... 15
4.9 Can I Bind an EIP to an ECS, to Another ECS?............................................................................................................15
4.10 Does an EIP Change Over Time?.................................................................................................................................. 15
4.11 Can I Assign a
4.12 How Do I Query the Region of My EIPs?................................................................................................................... 16
4.13 Can a Bandwidth Be Used by Multiple Accounts?.................................................................................................. 16
Dierences Between the Primary and Extension NICs of ECSs?...............................................14
4.14 How Do I Change an EIP for an Instance?................................................................................................................ 16
4.15 Can I Bind an EIP to a Cloud Resource in Another Region?................................................................................ 19
5.1 What Are Inbound Bandwidth and Outbound Bandwidth?...................................................................................20
5.2 How Do I Know If My Used Bandwidth Exceeds the Limit?.................................................................................. 21
5.3 What Is the Bandwidth Size Range?.............................................................................................................................. 23
5.4 What Bandwidth Types Are Available?.......................................................................................................................... 23
5.5 What Are the
Bandwidth Be Changed to a Shared Bandwidth or the Other Way Around?.........................................................23
5.6 How Do I Buy a Shared Bandwidth?..............................................................................................................................23
5.7 Is There a Limit to the Number of EIPs That Can Be Added to Each Shared Bandwidth?..........................24
5.8 Can I Increase My Bandwidth Billed on Yearly/Monthly Basis and Then Decrease It?.................................24
5.9 What Is the Relationship Between Bandwidth and Upload/Download Rate?.................................................24
5.10 What Are the Dierences Between Static BGP and Dynamic BGP?................................................................. 24
Dierences Between a Dedicated Bandwidth and a Shared Bandwidth? Can a Dedicated
6.1 Does a VPN Allow Communication Between Two VPCs?.......................................................................................26
6.2 Why Is Internet or Internal Domain Names in the Cloud Inaccessible Through Domain Names When
My ECS Has Multiple NICs?...................................................................................................................................................... 26
6.3 What Are the Constraints Related to VPC Peering?..................................................................................................27
6.4 Why Does Communication Fail Between VPCs That Are Connected by a VPC Peering Connection?.....28
6.5 How Many VPC Peering Connections Can I Create?................................................................................................ 32
6.6 What Are the Priorities of the Custom Route and EIP If Both Are
ECS to Access the Internet?...................................................................................................................................................... 32
6.7 Why Does Intermittent Interruption Occur When a Local Host Accesses a Website Built on an ECS?
6.10 Why Cannot the Virtual IP Address Be Pinged After It Is Bound to an ECS NIC?........................................37
6.11 Why Does My ECS Fail to Use Cloud-init?.................................................................................................................42
6.12 Why Does Internet Access Fail Even If My ECS Is Bound with an EIP?............................................................46
6.13 How Do I Handle the IB Network Failure?................................................................................................................50
6.14 Why Does My ECS Fail to Communicate at a Layer 2 or Layer 3 Network?.................................................52
6.15 How Do I Handle the BMS Network Failure?...........................................................................................................54
6.16 Why Does My ECS Fail to Obtain an IP Address?................................................................................................... 55
6.17 How Do I Handle the VPN or Direct Connect Connection Network Failure?................................................57
6.18 Why Does My Server Can Be Accessed from the Internet But Cannot Access the Internet?...................59
6.19 Can I Use a VPC Peering Connection to Connect VPCs in Dierent Regions?.............................................. 61
6.20 Will I Be Billed for Using a VPC Peering Connection?........................................................................................... 61
6.21 What Switches Can Connect to a L2CG on HUAWEI CLOUD?...........................................................................62
6.22 Why Is the Layer 2 Connection in the Not Connected State Even After Its Conguration Is Complete?
6.23 Why Is Communication Between the Cloud and On-premises Servers Unavailable Even When the
Layer 2 Connection Status Is Connected?........................................................................................................................... 62
6.24 Why Can't I Access Websites Using IPv6 Addresses After IPv4/IPv6 Dual Stack Is Congured?............ 62
7.2 Why Can't I Ping an ECS with Two NICs Congured?.............................................................................................. 68
7.3 Can a Route Table Span Multiple VPCs?...................................................................................................................... 69
7.4 How Many Routes Can a Route Table Contain?........................................................................................................ 69
7.5 Are There Any Restrictions on Using a Route Table?............................................................................................... 69
7.6 Will a Route Table Be Billed?............................................................................................................................................ 70
7.7 Do the Same Routing Priorities Apply to Direct Connect Connections and Custom Routes in the Same
8.2 What Are the Requirements for Deleting a Security Group?................................................................................ 71
8.3 Why Is Outbound Access Through TCP Port 25 Restricted?.................................................................................. 72
8.4 Can I Change the Security Group of an ECS?..............................................................................................................73
8.5 How Many Security Groups Can I Have?......................................................................................................................73
8.6 Will a Security Group Be Billed?...................................................................................................................................... 73
8.7 How Do I
8.8 How Many Network ACLs Can I Create?...................................................................................................................... 73
8.9 Does a Security Group Rule or a Network ACL Rule Immediately Take Eect for Its Original Trac
After It Is Modied?.................................................................................................................................................................... 74
8.10 Why Are Some Ports in the Public Cloud System Inaccessible?.........................................................................74
8.11 Why Is Access from a Specic IP Address Still Allowed After a Network ACL Rule That Denies the
Access from the IP Address Has Been Added?...................................................................................................................75
8.12 What Do My Security Group Rules Not Take Eect?............................................................................................. 75
Congure a Security Group for Multi-Channel Protocols?.................................................................73
A quota limits the quantity of a resource available to users, thereby preventing
spikes in the usage of the resource. For example, a VPC quota limits the number
of VPCs that can be created.
You can also request for an increase in quota if an existing quota cannot meet
your service requirements.
How Do I View My Quotas?
1.Log in to the management console.
2.Click
3.In the upper right corner of the page, choose Resources > My Quotas.
The Service Quota page is displayed.
Figure 1-1 My Quotas
in the upper left corner and select the desired region and project.
4.View the used and total quota of each type of resources on the displayed
page.
● "Not included" indicates that the fee will not be included in the bill. "Included" indicates
that the fee will be included in the bill.
● For details about the EIP pricing, see Product Pricing Details.
2.3 How Do I Change the Billing Mode?
Changing the Billing Mode from Pay-per-Use to Yearly/Monthly
You can change the billing mode of pay-per-use EIPs and shared bandwidth billed
by bandwidth to yearly/monthly. After the change is successful, the new billing
mode will take eect immediately.
You can change the billing mode on the EIP console. Do as follows to change the
billing mode of an EIP from pay-per-use to yearly/monthly.
The billing mode of an EIP that is billed by trac on a pay-per-use basis cannot be directly
changed to yearly/monthly. Change the EIP to be billed by bandwidth and then change its
billing mode to yearly/monthly.
1.Log in to the management console.
2.Under Network, click Elastic IP.
3.On the displayed page, search for the pay-per-use EIP whose billing mode is
to be changed.
4.Locate the row that contains the target EIP and click Change Billing Mode in
the Operation column.
Figure 2-1 Changing the billing mode on the EIP console
You can also select multiple EIPs and click Change Billing Mode above the EIP list
to change the billing mode of all selected EIPs at the same time.
Changing the Billing Mode from Yearly/Monthly to Pay-per-Use
The billing mode of yearly/monthly EIPs and shared bandwidths can be changed
to pay-per-use. The new billing mode takes
the EIPs or bandwidths expires.
The billing mode of an EIP can be changed from yearly/monthly to pay-per-use in
the billing center. Do as follows to change the billing mode of an EIP from yearly/
monthly to pay-per-use:
1.Log in to the management console.
2.Choose Billing > Renewal.
Figure 2-3 Renewal
eect only after the validity period of
3.In the search box on the right, search for the EIP whose billing mode you
want to change.
4.Locate the row that contains the target EIP and click Change to Pay-per-UseAfter Expiration in the Operation column.
The Virtual Private Cloud (VPC) service enables you to provision logically isolated,
congurable, and manageable virtual networks for cloud servers, cloud containers,
and cloud databases, improving cloud service security and simplifying network
deployment.
Within your own VPC, you can create security groups and VPNs,
address ranges, specify bandwidth sizes, manage the networks in the VPC, and
make changes to these networks as needed, quickly and securely. You can also
dene rules for communication between ECSs in the same security group or in
dierent security groups.
Product Architecture
The product architecture consists of the VPC components, security features, and
VPC connectivity options.
Each VPC consists of a private CIDR block, route tables, and at least one subnet.
●Private CIDR block: When creating a VPC, you need to specify the private CIDR
block used by the VPC. The VPC service supports the following CIDR blocks:
10.0.0.0 – 10.255.255.255, 172.16.0.0 – 172.31.255.255, and 192.168.0.0 –
192.168.255.255
●Subnet: Cloud resources, such as ECSs and databases, must be deployed in
subnets. After you create a VPC, divide the VPC into one or more subnets.
Each subnet must be within the VPC. For more information, see Subnet.
●Route table: When you create a VPC, the system automatically generates a
default route table. The route table ensures that all subnets in the VPC can
communicate with each other. If the routes in the default route table cannot
meet application requirements (for example, an ECS without an elastic IP
address (EIP) bound needs to access the Internet), you can create a custom
route table. For more information, see Example Custom Route in a VPC and
Example Custom Route Outside a VPC.
Security Features
Security groups and network ACLs ensure the security of cloud resources deployed
in a VPC. A security group acts as a virtual
rewall to provide access rules for
instances that have the same security requirements and are mutually trusted in a
VPC. For more information, see Security Group Overview. A network ACL can be
associated with subnets that have the same access control requirements. You can
add inbound and outbound rules to precisely control inbound and outbound
trac
at the subnet level. For more information, see Network ACL Overview.
VPC Connectivity
HUAWEI CLOUD provides multiple VPC connectivity options to meet diverse
requirements. For details, see Application Scenarios.
●VPC Peering allows two VPCs in the same region to communicate with each
other using private IP addresses.
●Elastic IP or NAT Gateway allows ECSs in a VPC to communicate with the
Internet.
●Virtual Private Network (VPN), Cloud Connect, or Direct Connect can connect
a VPC to your data center.
3.2 Which CIDR Blocks Are Available for the VPC
Service?
The VPC service supports the following CIDR blocks:
●10.0.0.0/8-24
●172.16.0.0/12-24
●192.168.0.0/16-24
3.3 How Many VPCs Can I Create?
By default, you can create a maximum of
of VPCs cannot meet your service requirements, submit a service ticket to
request a quota increase.
ve VPCs in your account. If the number
3.4 Can Subnets Communicate with Each Other?
Subnets in the same VPC can communicate with each other while subnets in
dierent VPCs cannot communicate with each other by default. However, you can
create VPC peering connections to enable subnets in
communicate with each other.
If a subnet is associated with a network ACL, congure network ACL rules to allow
communication between subnets.
dierent VPCs to
3.5 What Subnet CIDR Blocks Are Available?
A subnet CIDR block must be included in its VPC CIDR block. Supported VPC CIDR
blocks are 10.0.0.0/8–24, 172.16.0.0/12–24, and 192.168.0.0/16–24. The allowed
block size of a subnet is between the netmask of its VPC CIDR block and the /28
netmask.
3.6 Can I Modify the CIDR Block of a Subnet?
You can modify the CIDR block of a subnet only when you are creating the subnet.
After the subnet is created, you cannot modify its CIDR block.
By default, you can create a maximum of 100 subnets in your cloud account. If the
number of subnets cannot meet your service requirements, submit a service
ticket to request a quota increase.
3.8 How Can I Delete a Subnet That Is Being Used by
Other Resources?
The VPC service allows you to create private, isolated virtual networks. In a VPC,
you can manage private IP address ranges, subnets, and gateways. ECSs, BMSs,
databases, and some other applications can use subnets created in VPCs.
A subnet cannot be deleted if it is being used by other resources. You must delete
all resources in the subnet before you can delete the subnet.
You can view all resources of your account on the console homepage and check
the resources that are in the subnet you want to delete.
The resources may include:
●ECS
●CCI instance
●Load balancer
●VPN
●Private IP address
●Custom route
●NAT gateway
●VPC endpoint and VPC endpoint service
If you cannot delete a subnet even after deleting all the resources it contains,
submit a service ticket.
3.9 How Do I Switch to a Private DNS Server?
ECSs use private DNS servers for domain name resolution in VPCs. ECSs in a VPC
can access the Internet using public domain names and other cloud services like
OBS and SMN through private DNS servers, with no need to connect to the
Internet.
For VPCs created earlier before private domain names are available, a public DNS
server (114.114.114.114) is
private domain names, you can change the public DNS server to the private DNS
servers
private DNS server address, see What Are the Private DNS Server Addresses
Provided by the DNS Service?
Perform the operations provided in this section to change the public DNS servers
to private DNS servers.
congured for the VPC subnets. For instructions about how to obtain a
congured. To allow ECSs in these VPCs to access
NO TICE
Virtual Private Cloud
FAQs3 VPC and Subnet
Checking the DNS Server Addresses of an ECS
1.Log in to the management console.
2.In the Computing category, click Elastic Cloud Server.
The Elastic Cloud Server page is displayed.
3.In the ECS list, click the ECS name.
4.On the ECS details page, click the VPC name.
The Virtual Private Cloud page is displayed.
5.Locate the target VPC and click the number in the Subnets column.
The Subnets page is displayed.
6.Click the name of the target subnet.
In the Gateway and DNS Information area, view the DNS server addresses
used by the ECS.
Changing the DNS Servers for a VPC Subnet
If the ECS uses default public DNS servers, change them to private DNS servers
provided by the DNS service.
1.In the Gateway and DNS Information area, click
Address.
2.Change the DNS server addresses to private DNS server addresses.
For example, in the CN North-Beijing1 region, change the DNS server
addresses of a VPC subnet to 100.125.1.250 and 100.125.21.250.
Updating the DNS Server Addresses for the ECS
New DNS server addresses will not take
The DNS server addresses needs to be updated rst. There are two ways to do
this:
●Restart the OS. The ECS will then obtain the new DNS server addresses from
the DHCP server.
Restarting the OS will interrupt services on the ECS. Perform this operation
during o-peak hours.
Alternatively, wait for the DHCP lease to expire, which takes 24 hours by
default. After the lease time expires, the DHCP server allocates another IP
address and updates the DNS server addresses to the ECS.
eect immediately on the ECS.
next to DNS Server
●Manually change the DNS congurations on the ECS.
If DHCP is disabled on the ECS, manually update DNS congurations.
For example, if the ECS is running Linux, change the DNS congurations by
editing the /etc/resolv.conf
If you want to retrieve an EIP that you have released or assign a specic EIP, you
can use APIs. When assigning an EIP, set the value of ip_address to the IP address
that you want to assign. For details, see Elastic IP API Reference.
● If the EIP has been assigned to another user, you will fail to assign your required EIP.
● You cannot use the management console to assign a specic EIP.
4.2 What Are the Dierences Between EIP, Private IP
Address, Floating IP Address, and Virtual IP Address?
An EIP is an IP address that can be accessed over the Internet. Each EIP can be
used by only one ECS at a time.
A private IP address is used on the private network of the public cloud for private
communications. It cannot be reached from the Internet.
oating IP address is similar to an EIP. They are both public IP addresses that are
A
used to connect to the Internet, but a oating IP address API cannot be used to
congure bandwidth parameters. For details, see Floating IP Address.
A virtual IP address can be shared among multiple ECSs. A virtual IP address is
used for active/standby switchover of ECSs for higher availability. If the active ECS
becomes faulty and cannot provide services, the virtual IP address is dynamically
re-assigned to the standby ECS so services can continue uninterrupted. For details,
see Virtual IP Address Overview.
4.4 What Are the Dierences Between the Primary and
Extension NICs of ECSs?
The dierences are as follows:
●Generally, the OS default routes preferentially use the primary NICs. If the OS
default routes use the extension NICs, network communication will be
interrupted. Then, you can check the route
network communication error.
●Primary NICs can communicate with the public service zone (zone where PaaS
and DNS services are deployed). Extension NICs cannot communicate this
zone.
conguration to rectify the
4.5 Can an EIP That Uses Dedicated Bandwidth Be
Changed to Use Shared Bandwidth?
No. An EIP that uses a dedicated bandwidth cannot be changed to use a shared
bandwidth.
In addition, an EIP that uses a shared bandwidth cannot be changed to use a
dedicated bandwidth.
4.6 Can I Bind an EIP to Multiple ECSs?
Each EIP can be bound to only one ECS at a time.
Multiple ECSs cannot share the same EIP. An ECS and its bound EIP must be in the
same region. If you want multiple ECSs in the same VPC to share an EIP, you have
to use a NAT gateway. For more information, see NAT Gateway User Guide.
4.7 How Do I Access an ECS from the Internet After an
EIP Is Bound to the ECS?
Each ECS is automatically added to a security group after being created to ensure
its security. The security group denies access
(except TCP trac from port 22 through SSH to the Linux OS and TCP trac from
port 3389 through RDP to the Windows OS). To allow external access to ECSs in
the security group, add an inbound rule to the security group.
You can set Protocol to TCP, UDP, ICMP, or All as required on the page for
creating a security group rule.
●If the ECS needs to be accessible over the Internet and the IP address used to
access the ECS over the Internet has been
does not need to be accessible over the Internet, set Source to the IP address
range containing the IP address that is allowed to access the ECS over the
Internet.
●If the ECS needs to be accessible over the Internet and the IP address used to
access the ECS over the Internet has not been
recommended that you retain the default setting 0.0.0.0/0 for Source, and
then set Port Range to improve network security.
●Allocate ECSs that have dierent Internet access policies to dierent security
groups.
The default source IP address 0.0.0.0/0 indicates that all IP addresses can access ECSs
in the security group.
congured on the ECS, or the ECS
congured on the ECS, it is
4.8 What Is the EIP Assignment Policy?
By default, EIPs are assigned randomly.
In case that an EIP is released by mistake, the system will assign you the EIP that
you have released in the last 24 hours preferentially.
If you want an EIP that you released 24 hours ago, see How Do I Assign or
Retrieve a Specic EIP?
If you do not want an EIP that you have released, it is recommended that you buy
another EIP
rst and then release the one that you do not want.
4.9 Can I Bind an EIP to an ECS, to Another ECS?
Yes.
Unbind the EIP from the current ECS. For details, see Unbinding or Releasing an
EIP.
Then, bind the EIP to another ECS. For details, see Binding an EIP to Cloud
Resources.
Another related operation is to change the EIP associated with an ECS.
For details, see Changing an EIP.
4.10 Does an EIP Change Over Time?
EIPs will not be changed after they are assigned.
Stopping and starting an ECS does not aect its EIP.
(ensure that the deselected EIP belongs to the IP address range on Telefonica
Open Cloud).
Figure 4-3 Selecting the newly assigned EIP
3.Modify a DNAT rule.
For details about how to modify a DNAT rule, see Modifying a DNAT Rule.
In the EIP area, select the newly assigned EIP (ensure that the original EIP
belongs to the IP address range on Telefonica Open Cloud).
Figure 4-4 Selecting the newly assigned EIP
4.Release the EIP that has been replaced. For details, see 4.
4.15 Can I Bind an EIP to a Cloud Resource in Another
Region?
No. EIPs and their associated cloud resources must be in the same region. For
example, an EIP in the CN North-Beijing1 region cannot be bound to a resource
in the CN North-Beijing4 region.
5.1 What Are Inbound Bandwidth and Outbound
Bandwidth?
Inbound bandwidth: refers to the bandwidth consumed when data is transferred
from the Internet to HUAWEI CLOUD. For example, resources are downloaded
from the Internet to ECSs in the cloud.
Outbound bandwidth: refers to the bandwidth consumed when data is transferred
from HUAWEI CLOUD to the Internet. For example, the ECSs in the cloud provide
services accessible from the Internet and external users download resources from
the ECSs.
Figure 5-1 Inbound bandwidth and outbound bandwidth
HUAWEI CLOUD only bills for the outbound bandwidth.
Inbound and outbound bandwidths have been adjusted as follows since July 31, 2020
00:00:00 GMT+08:00:
●If your purchased or
inbound bandwidth will be 10 Mbit/s, and the outbound bandwidth will be the same
as the purchased or modied bandwidth.
●If your purchased or modied bandwidth is greater than 10 Mbit/s, both the inbound
and the outbound bandwidth will be the same as the purchased or modied
bandwidth.