Skip to main content

Create a subnet in a VPC

You can create one or more subnets in a VPC (Virtual Private Cloud) in order to launch resources within it. Subnets are placed in subregions of the region of your VPC.

Once your subnet is created, it is recommended that you create a dedicated security group and a dedicated route table.

Permissions

info

This action requires the following IAM (Identity and Access Management) permissions:

  • compute.subnet.create
From the left-hand side menu, click Network → VPC.
info

Prerequisite: Create a VPC.

Optional: To disable the feature allowing the VM (Virtual Machines) of the same subnet to communicate with each other without requiring security group rules, add a tag to your VPC with "osc.fcu.enable_lan_security_groups" as the key. This tag must be added to your VPC before creating subnets within it. The value of this tag is not taken into account, so you can specify any value for this tag.

  1. Log in to the Numspot console.

  2. From the left-hand side menu, click NetworkVPCVPC.

  3. The list of VPC appears. Click the ID of the relevant VPC.

  4. The "VPC details" page appears.

  5. Click the Create a subnet button.

  6. The "Subnet creation" page appears.

  7. In the "Name" field, enter a name for the subnet.

info

This action adds a Name tag of 255 characters maximum. You can use all characters, including accented letters.

  1. In the "IP range" field, enter the IP (Internet Protocol) address range for your subnet, in CIDR (Classless Inter-Domain Routing) notation. The IP address range must be included in the CIDR of the associated VPC.
warning

The CIDR block of the subnet must be part of the CIDR block of the VPC. If you create several subnets in a VPC, their CIDR blocks must not overlap.

  1. In the "Availability Zone" section, select the availability zone in which you want to create the subnet.

  2. Then click the Create button.

  3. A confirmation message appears at the bottom indicating that the subnet has been successfully created, and you are redirected to the details page of the associated VPC.

Cette page vous a-t-elle été utile ?