Hello, everyone!
This post will share with you the elastic IP and how it works.
What is EIP?
EIPs are static IP addresses designed for dynamic cloud computing. With an EIP, you can mask the instance faults by rapidly remapping the address to another instance in your account. EIP is associated with the tenant's account, instead of an instance. Before you release the EIP, it remains permanently associated with your account.
The EIP service allows users to:
Apply for an EIP.
Bind an EIP to an ECS or a virtual IP address.
Unbind, delete, or extend the EIP or change the bandwidth name and bandwidth of the EIP.
What does EIP provide?
The Elastic IP service provides independent public IP addresses and Internet bandwidth. An EIP can be flexibly associated with or disassociated from an ECS, BMS, virtual IP address, load balancer, or NAT gateway. Various billing modes are provided to meet diversified service requirements.
Advantages
EIPs are used to enable cloud resources to be accessed from the Internet. EIPs can be bound to or unbound from various service resources to meet different service requirements.
You can bind an EIP to an ECS or BMS to enable extranet access for the ECS or BMS.
You can bind a virtual IP address with an EIP so that you can access the ECSs that have the same virtual IP address bound from the extranet, improving fault tolerance capabilities.
You can bind an EIP to a load balancer so that the load balancer receives access requests from the extranet and automatically distributes the access requests to specified multiple ECSs.
Application scenarios
Region Type I
Shared Bandwidth reduces bandwidth cost and responds to abrupt demand spikes.
Region Type II
A cluster responds to rapid service growth.
Binding an EIP to Allow Extranet Access
Your ECS may act as a website service node allowing access from visitors. To enable your ECS to access the extranet, bind an EIP to it.
Scenario diagram
Binding an EIP to allow Internet access
Related servers
How Does an ECS Use an EIP?
Before starting an ECS, you can assign a private IP address and an extranet IP address to each instance running on the ECS. The public IP address is mapped to the private IP address by the Network Address Translation (NAT) function. The public IP address is assigned from the extranet IP address pool of the VPC. After the EIP is released, you can no longer use the public IP address.
How Many ECSs Can One EIP Be Assigned to?
One EIP can be assigned to only one ECS. Similarly, one EIP can be assigned to only one BMS or virtual IP address.
How Can 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 and bound with an EIP to ensure its security. The security group denies access traffic from the extranet by default. To allow extranet access to ECSs in the security group, add an inbound rule to the security group.
On the page for adding security group rules, you can select TCP, UDP, ICMP or ANY as required.
If the ECS needs to be accessible over the extranet and the IP address used to access the ECS over the extranet has been configured on the ECS, or the ECS does not need to be accessible over the extranet, set Source IP Address to the IP address segment containing the IP address that is allowed to access the ECS over the extranet.
If the ECS needs to be accessible over the extranet and the IP address used to access the ECS over the extranet has not been configured on the ECS, it is 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 different extranet access policies to different security groups
Welcome to publish more exciting content about EIP in the forum, and the following content about EIP is recommended to you.
https://forum.huawei.com/enterprise/en/search.php?searchsubmit=yes&srchtxt=EIP
That's all, thanks!