> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/productos/servers/how-to/how-to-create-a-vpc-and-associate-a-tier.md).

# How to Create a VPC and Associate a TIER in Plenit

A VPC lets you organize the network of your Server environment into separate subnets, the TIERs.

In this tutorial you create a VPC and associate its first TIER to it, the basis for segmenting by layers (application, database) or for later setting up a VPN between networks.

> #### 👍 What you get
>
> A VPC network created and with an associated TIER, ready to attach your servers to it and define access from outside.

### What a VPC is and what a TIER is

A VPC is defined with a **Super CIDR**, the main network that contains all subnets. Each subnet is a **TIER**, which corresponds to a VLAN. All the TIERs in a VPC communicate with each other and with the Internet through a virtual router.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2F1vgvQhT2EPN469ai9TtM%2Fdiagram-vpc-tiers.png?alt=media&amp;token=059e52a7-fc0c-4575-b1e2-4769dab4022b" alt="Diagrama de una VPC con Super CIDR 10.1.0.0/16 y tres TIERs conectados a Internet a través de un router virtual; un servidor cuelga del TIER1"><figcaption><p>A VPC groups several TIERs under a Super CIDR, connected by a virtual router</p></figcaption></figure>

| Concept        | What it is                                                                           |
| -------------- | ------------------------------------------------------------------------------------ |
| Super CIDR     | The global range of the VPC, within which the TIERs live (for example `10.1.0.0/16`) |
| TIER           | A subnet within the VPC (for example `10.1.0.0/24`)                                  |
| Virtual router | What connects the TIERs to each other and to the Internet                            |

> #### 📘 Why segment into TIERs
>
> Separating the application layer from the database layer into different TIERs lets you control who talks to whom, instead of having everything in a flat network.
>
> A VPC supports up to three TIERs on the same virtual router.

### Before you start

* Have an active Servers subscription.
* If you don't already have one, deploy a server first: [Deploy your server.](https://docs.plenit.com/docs-en/productos/servers/quickstart.md)

### Step 1. Access the Servers subscription

Enter the Servers subscription from its card in the service.

![Access to the Servers subscription](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-31faf831064f3bc2ebda9d6af6fa118ce8a7cdad%2FCards.png?alt=media)

### Step 2. Open Networks/IP and create the VPC network

In the fields below your server's name, open **Networks/IP**, select **VPC Networks** and click **Create VPC network**.

![VPC Networks section with the Create VPC network button](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-5705ef3e6d5f68b02eaaf22b72c9e81b40de9138%2FA%C3%B1adir_VPC.png?alt=media)

### Step 3. Name and Locate the VPC

Enter a name to identify it easily, for example `VPC1`. Then add the location where you want to deploy this network.

If you leave it blank, we generate it automatically. Click **Continue**.

![VPC naming with the auto-generated Super CIDR](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-4d588516460c85fef8471b399e6f919c34604221%2FCrear_VPC.png?alt=media)

> #### 📘 The Super CIDR, automatically generated but yours
>
> We generate the Super CIDR automatically, but you can change it. If you do, note the range: the TIERs you create later must fit within it.

### Step 4. Add and name a TIER

Once the VPC is created, you'll see the notice that it doesn't yet contain any TIER. Click the **three dots** of the VPC and choose **Add Tier**. Enter a name, for example `TIER1`. If you leave it blank, we'll fill it in for you.

The platform assigns by default a range `10.1.0.0/24`, which is contained within the Super CIDR `10.1.0.0/16`. When finished, the VPC and its TIER appear in **Networks/IP → VPC Networks**.

![Add a TIER to the VPC from the three-dots menu](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-b50d74b25983d42a2673f92a5b60376fa0ceb8bd%2FA%C3%B1adir_tier.png?alt=media)

> #### 👍 Use clear names from the start
>
> Naming VPC and TIERs well (by function or by layer) saves you time when the network grows and you need to know at a glance what each thing is.

### Check the network from a server

When you connect a server to the TIER, confirm from inside that it has received the correct IP and gateway.

On Linux:

```shell
ip addr show      # the IP and mask assigned to the server
ip route          # the gateway (the virtual router)
```

On Windows, from PowerShell or CMD:

```powershell
ipconfig /all
```

To check connectivity with another server on the network, do `ping` to its IP. On Windows, the firewall blocks incoming ICMP by default, so allow it on the destination server with an inbound rule:

```powershell
New-NetFirewallRule -DisplayName "ICMPv4-In" -Protocol ICMPv4 -IcmpType 8 -Direction Inbound -Action Allow
```

### Plan the ranges before growing

The biggest oversight when setting up several VPCs is overlapping ranges, which breaks routing as soon as you connect them. Reserve a different Super CIDR per VPC from the start.

| Item         | VPC1          | VPC2          |
| ------------ | ------------- | ------------- |
| Super CIDR   | `10.1.0.0/16` | `10.2.0.0/16` |
| Example TIER | `10.1.0.0/24` | `10.2.0.0/24` |

### Next steps

* To connect two VPCs, create a second one (for example `VPC2` with `10.2.0.0/16`, without overlapping) and bring up the tunnel: [How to create a site-to-site VPN tunnel.](https://docs.plenit.com/docs-en/productos/servers/how-to/how-to-create-a-site-to-site-vpn-tunnel.md)
* The VPC is the only network type with site-to-site IPSec VPN, and you can connect it with VPCs from other cloud providers or with compatible equipment (Cisco ISR with IOS 12.4 or higher, Juniper J-Series routers with JunOS 9.5 or higher).
* To review the network types: [Server Networks.](https://docs.plenit.com/docs-en/productos/servers/concepts/networks.md)

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.plenit.com/docs-en/productos/servers/how-to/how-to-create-a-vpc-and-associate-a-tier.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
