Creating a VPC
To create a VPC, you need to specify the region, a name, and a private IPv4 range (CIDR), and then create at least one subnet so you can place servers in it. For example, you can create a VPC named production-core with the range 10.0.0.0/16 in the Iran Central 1 region.
Choosing an IP Range
The network's CIDR determines which IPs exist inside your VPC, so choose it carefully. The range you choose must meet these conditions:
- It must be within one of the private ranges
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16. - Its prefix length must be between
/16and/28. - It must be a valid network address, for example
10.0.0.0/24. - It must not overlap with other VPCs or your organization's internal network. Overlapping ranges can't be routed together.
10.255.0.0/16is reserved by the system and can't be selected.
Note that the CIDR is fixed after the VPC is created and can't be edited. After creation, you can only change the VPC's name; to change the CIDR range, you need to create a new VPC and move your resources to it.
Creating a VPC
- In the Arvancloud panel, go to the VPC section and select Virtual Private Cloud (VPC) from the menu.
- Click the New VPC button.
- Region: select the region you want to create the VPC in.
- VPC name: choose an English name for your VPC, for example
production-coreorstaging-ir. - IPv4 CIDR: choose a private range for your VPC, for example
10.0.0.0/16. Note that the range you choose must not overlap with private ranges you have already created. - Internet access (Network Gateway): if the VPC's resources need the internet or must be reachable from outside, check this option. Otherwise, leave it unchecked.
To use an Elastic IP or NAT Gateway, internet access must be enabled on the VPC.
- Subnet: in the next section, you need to create a subnet that fits your VPC's range. Note that you can also create subnets for your VPC later. Read about the fields in this section in the Subnet guide.
- Review the settings summary and click the Create VPC button.
When the creation process is complete, your VPC is ready, and you can configure subnets, Elastic IPs, and other resources in it.
Viewing and Managing VPCs
To see the VPCs you have created, click Virtual Private Cloud (VPC) in the menu. When you select a region at the top of the page, the name, CIDR, number of subnets, and status of each VPC are shown.
By clicking a VPC, you can see and manage the following:
- The list of subnets, and the option to add a new subnet
- The Network Topology, which shows the VPC's connections to subnets, the Network Gateway, and the NAT Gateway
- Renaming or deleting the VPC
Renaming a VPC
In the VPC list or on the VPC details page, select Edit from the actions menu.
Note that only renaming is possible; other settings can't be changed.
Deleting a VPC
You can delete a VPC only when no resources are attached to it. To do so, first release the attached Elastic IPs and delete the attached NAT Gateway. Then detach the servers of each subnet and delete the VPC's subnets. If internet access (Network Gateway) is enabled, delete it too, and finally delete the VPC.
Note that deleting a VPC doesn't release the Elastic IPs. These IPs remain unattached and are still charged.