Allocate and Associate Elastic IP Addresses

After launching instances, you need to associate Elastic IP addresses with the servers in public subnets.

Background information

An Elastic IP address is a public IPv4 address, which is reachable from the internet. To enable communication with the internet, you can associate an Elastic IP address with your instances.

For Yeastar P-Series Cloud PBX deployment, you need to allocate three Elastic IP addresses and associate these IP addresses with the following servers:
  • YCM Server
  • SBC Server
  • SBC Proxy Server
Note: The Elastic IP address of NAT gateway has already been assigned when creating the NAT gateway.

The following diagram shows the architecture of your VPC after you complete this step.

Procedure

Allocate and tag Elastic IP addresses

Before the EIP association, you need to allocate three Elastic IP addresses from Amazon's pool of public IPv4 addresses.

  1. Log in to Amazon EC2 Console.
  2. On the left navigation bar, go to Network & Security > Elastic IPs, click Allocate Elastic IP address.

  3. In the Public IPv4 address pool section, select Amazon's pool of IPv4 addresses.
  4. In the Tags section, add a name tag for the allocated Elastic IP address.

    1. Click Add new tag.
    2. In the Key field, enter Name.
    3. In the Value field, enter a name for the Elastic IP address to help you identify it. In this example, enter ycm-sbc.
  5. Click Allocate.

    A new Elastic IP address is allocated and displayed on the Elastic IP addresses list.

  6. Repeat Step 2 - Step 5 to assign Elastic IP addresses for YCM Server and SBC Proxy Server.

Associate an Elastic IP address with each instance

  1. Log in to Amazon EC2 Console.
  2. On the left navigation bar, go to Network & Security > Elastic IPs.
  3. In the Elastic IP addresses list, select the desired IP address, and click Actions > Associate Elastic IP addresses.

  4. On the configuration page, complete the following settings.
    • Resource type: Select Instance.
    • Instance: Select the desired instance.

    • Private IP address: Select the private IP address of the server with which to associate the Elastic IP address.
  5. Click Associate.

    The Elastic IP address is successfully associated with the instance.

  6. Repeat Step 3 - Step 5 to associate Elastic IP addresses with YCM Server and SBC Proxy Server.