VPC configuration for Network Performance Testing on AWS
Please note a new script is now available for all this processing below.
https://github.com/SCHEN2015/aws-test-init/blob/master/config_vpc.sh
VPC
Create VPC
- Click “Your VPCs” in the left panel
Click “Create VPC” button
Name tag: ipv6_vpc_perf IPv4 CIDR block*: 10.22.0.0/16 IPv6 CIDR block*: Amazon provided IPv6 CIDR block Tenancy: Default
Right click tuple “ipv6_vpc_perf” in VPC list, choose “Edit DNS Hostnames”
- Choose “Yes” and click “Save” button
Internet Gateways
- Click “Internet Gateways” in the left panel
Click “Create Internet Gateway” button
Name tag: ipv6_igw_perf
Select the one you just created and click “Attach to VPC” button
VPC: vpc-12345678 | ipv6_vpc_perf (select the VPC you just created in the drop-down list)
Subnet
- Click “Subnets” in the left panel
Click “Create Subnet” button
Name tag: ipv6_subnet_perf VPC: vpc-12345678 | ipv6_vpc_perf VPC CIDRs: (2 CIDRs with status "associated" should be shown) Availability Zone: us-west-2a IPv4 CIDR block: 10.22.1.0/24 IPv6 CIDR block: Specify a custom IPv6 CIDR xxxx:xxxx:xxxx:xx01::/64
Right click tuple “ipv6_subnet_perf” in subnet list, choose “Modify auto-assign IP settings”
Auto-assign IPs: [V] Enable auto-assign public IPv4 address [V] Enable auto-assign IPv6 address (Enable specified items)
OPTIONAL: Repeat step 2 and 3, create subnets in other Availability Zones. In this case, you may create the following subnets:
Subnet Zone IPv4 CIDR IPv6 CIDR ipv6_subnet_a_perf us-west-2a 10.22.1.0/24 xxxx:xxxx:xxxx:xx01::/64 ipv6_subnet_b_perf us-west-2b 10.22.2.0/24 xxxx:xxxx:xxxx:xx02::/64 ipv6_subnet_c_perf us-west-2c 10.22.3.0/24 xxxx:xxxx:xxxx:xx03::/64 Select tuple “ipv6_subnet_perf” in subnet list, Click “Route Table” card label
- Find “Route Table:” label and click on the “Route Table ID” (such as “rtb-12345678”)
Route Tables
If you followed the previous instruction, you would have been navigated into the “Route Tables” panel. If not, you can click “Route Tables” in the left panel, then select the one associated with your VPC in the right panel (the route table list).
- Click the blank in column “Name” and name this route table as “ipv6_rtb_perf”
- Click “Routes” card label, then click “Edit” button
Click “Add another route” button to add the Internet Gateway
Destination Target 0.0.0.0/0 igw-12345678 (select the Internet Gateway you just created from the drop-down list)
Click “Save” button
- Click “Subnet Associations” card label, then click “Edit” button
- Select the Subnet(s) you just created
- Click “Save” button
Security Groups
- Click “Security Groups” in the left panel
Click “Create Security Group” button
Name tag: ipv6_sg_perf Group name: ipv6_sg_openall Description: Testing purpose only, opening to the world, be careful about the security. VPC: vpc-12345678 | ipv6_vpc_perf (select the VPC you just created in the drop-down list)
Select the security group you just created
- Click “Inbound Rules” card label
- Click “Edit” button
Click “Add another rule” to add the following tuples (if not exist)
Type Protocol Port Range Destination ALL Traffic ALL ALL 0.0.0.0/0, ::/0 ALL TCP TCP (6) ALL 0.0.0.0/0, ::/0 ALL UDP UDP (17) ALL 0.0.0.0/0, ::/0 ALL ICMP - IPv4 ICMP (1) ALL 0.0.0.0/0 ALL ICMP - IPv6 IPv6-ICMP (58) ALL ::/0 Click “Save” button
- Click “Outbound Rules” card label
- Repeat step 5~7
Resource created
The following resource will be created:
vpc-12345678 | ipv6_vpc_perf
igw-12345678 | ipv6_igw_perf
subnet-12345671 | ipv6_subnet_a_perf
subnet-12345672 | ipv6_subnet_b_perf
subnet-12345673 | ipv6_subnet_c_perf
rtb-12345678 | ipv6_rtb_perf
sg-12345678 | ipv6_sg_perf
Notes
Please note that:
1. IPv6 is not supported on some of the instance types, such as m3 and g2.
2. The limitation of VPC is 5 by default, you can not add a VPC if reached the limitation.