Create Subnets for Servers
A subnet is a range of IP addresses in your VPC. You need to create subnets in your VPC, so that you can launch AWS resources, such as server instances and gateways, in the related subnets.
Background information
When you create a subnet, you must specify a range of IPv4 addresses for the VPC in
the form of CIDR block (for example, 10.0.0.0/24
). Any AWS
instances launched within the subnet will communicate over IPv4 only.
In this example, you need to create at least five subnets in the VPC. For different purpose, the five subnets are defined as below.
Subnet | IPv4 CIDR Block | Availability Zone | Description |
---|---|---|---|
Public Subnet
1
|
10.0.0.0/24 | Availability Zone A |
In this subnet, you will later launch instances for the following servers:
|
Public Subnet
2
|
10.0.1.0/24 | Availability Zone A | In this subnet, you will later create a NAT gateway. |
Private Subnet
1
|
10.0.2.0/24 | Availability Zone A |
In this subnet, you will later launch instances for the primary PBXHub Server. |
Public Subnet
3
|
10.0.3.0/24 | Availability Zone B |
In this subnet, you will later launch instances for the following servers:
|
Private Subnet
2
|
10.0.4.0/24 | Availability Zone B | In this subnet, you will later launch instances for the secondary PBXHub Server. |
The following figure shows the architecture in your VPC after you complete this step.
Procedure
- Log in to Amazon VPC Console.
- On the left navigation bar, click Subnets, then click Create subnet.
- In the VPC ID drop-down list, select the VPC
you've created for the Cloud PBX. In this example, select
ycm-cloudpbx
.The associated IPv4 CIDRs is displayed under the VPC ID.
- In the Subnet settings section, complete the
following settings:
- Set up the subnet.
- Subnet name: Enter a name to help you identify the subnet. In this example, enter ycm-public-subnet1.
- Availability Zone: In the drop-down
list, select the desired Availability Zone in which the
subnet will be created.Note: You should create the subnets for specific servers in different Availability Zones.
For example, if you would like deploy High Availability architecture for SBC servers, and the subnet for SBC Server 1 is created in Availability Zone A, then the subnet for SBC Server 2 should be created in another Availability Zone.
- IPv4 CIDR block: Specify an IPv4 CIDR block for the subnet. In this example, enter 10.0.0.0/24.
- Click Add new subnet and follow the Step 4 to set up other subnets.
- Set up the subnet.
- Click Create subnet.
The new created subnets are listed in the Subnets list.