A subnet is essentially a range of IP (v4 and v6) addresses. You can assign IP addresses to resources within your VPC such as EC2 instances--Note Make sure you already configured the VPC
-
1.
Open Your VPCs | VPC Management Console
-
2.
Click on Subnets.
-
3.
Click Create subnet.
-
4.
Select your VPC, under which you are going to create the Subnets and click Next to continue.
-
5.
Give a Name to your subnet and click Next to continue.
-
6.
Select Availability Zone and click Next to continue. # Availability Zones The Availability Zone where this subnet will reside. Select No Preference to let Amazon choose an Availability Zone for you.
-
7.
Choose the IPv4 VPC CIDR block to create a subnet in.
-
8.
Give the Subnet IP range to this subnet and click Next to continue. Exampls 10.50.1.0/24 # Subnet CIDR block Specify your subnet's IP address block in CIDR format; for example, 10.0.0.0/24. IPv4 block sizes must be between a /16 netmask and /28 netmask, and can be the same size as your VPC. An IPv6 CIDR block must be a /64 CIDR block.
-
9.
Click "Add New subnet" to Add another subnet for the same VPC.
-
10.
Give a Name to the subnet and click Next to continue.
-
11.
Click and select another Avialbility zone
-
12.
Choose the IPv4 VPC CIDR block to create a subnet in.
-
13.
Give the Subnet IP range to this subnet and click Next to continue
-
14.
Click Create subnet
-
15.
Click on "Internet gateways" # IGW An Internet Gateway (IGW) allows communication between your VPC and the internet. It supports IPv4 and IPv6 traffic.
-
16.
Click "Create internet gateway"
-
17.
Give a Name to Internet gateway and click Next on Supervity instruction widget.
-
18.
Click Create internet gateway
-
19.
Click "Action" button.
-
20.
Select "Attach to VPC".
-
21.
Click and Select your VPC. The list exclusively shows the VPCs that do not have IGW already configured.
-
22.
Click "Attach internet gateway". Now your VPC will be attached to your IGW
-
23.
Click Route tables, # Route tables A route table contains a set of rules, called routes, that are used to determine where a network traffic from your subnet or gateway is directed.
-
24.
Once we create a VPC , Route table will be created automatically. From the below Route Table(s), filter your VPC Route Table via Name tag or likewise. Click Next in the Supervity Instruction Widget.
-
25.
Select your route table and click Next on Supervity instruction widget.
-
26.
Click Subnet associations
-
27.
Click Edit subnet associations
-
28.
Click on the checkboxes beside the two subnets that you want to associate
-
29.
Click Save associations.
-
30.
Click "Routes" and define the route of traffic from subnets to IGW.
-
31.
Click "Edit routes"
-
32.
Click "Add route".
-
33.
Under the Destination column, click on the empty box. A list of destinations appear. Click Next on Supervity instruction widget.
-
34.
Click 0.0.0.0/0
-
35.
Read from the instruction Widget, click Next on it. Then, click and select "Internet Gateway" from the list. Once selected it will show possible IGW resources that are available. Select the one desired.
-
36.
Click "Save changes".
-
37.
Click "Your VPCs".
-
38.
Click the filter box and type the Name of your VPC or other identifier for the VPC you might have noted. Click Next on the Supervity Instruction Widget.
-
39.
Click on the VPC. Now your VPC , IGW , Subnets and Route Tables are configured and ready to be used.