# Create a CIDR Block

You can create both IPv4 and IPv6 [CIDR blocks](/welcome/bare-metal/overview/public-network/cidr-block.md) following the steps below.

<figure><img src="/files/bFpFyZ6RHKqN1le4eYT2" alt=""><figcaption><p>Create a CIDR Block</p></figcaption></figure>

On the upper left corner of zenConsole, go to **Products** > **Bare Metal** > **VLAN** > **CIDR Block**.

## Create an IPv4 CIDR Block

1. Select a location where you need your IPv4 CIDR block.
2. Add into a VLAN, and you can easily manage the CIDR IPs.
   * If you have no CIDR block in the selected zone, then the newly created CIDR block will be added into a system-generated VLAN automatically.
   * If you already have a VLAN in the selected zone, then you need to add the CIDR block into the existing VLAN in the same zone.
3. Choose an IPv4 range.\
   64 available IPs are supported in one zone by default. Please contact us if your required quantity exceeds the limit.
4. Assign a resource group.\
   Resource groups help you better organize your resources and manage team member permissions.
5. Label your CIDR block.\
   If you don't label the CIDR block, it will be named with the IP range by default.

## Create an IPv6 CIDR Block

1. Select a location where you need your IPv6 CIDR block.
2. Add into a VLAN, and you can easily manage the CIDR IPs.
   * If you have no CIDR block in the selected zone, then the newly created CIDR block will be added into a system-generated VLAN automatically.
   * If you already have a VLAN in the selected zone, then you need to add the CIDR block into the existing VLAN in the same zone.
3. Choose number of IPv6 CIDR blocks.\
   An IPv6 CIDR block contains 500 available IPs and you can create at most 5 IPv6 CIDR blocks in one zone by default. Please contact us if your required quantity exceeds the limit.
4. Assign a resource group.\
   Resource groups help you better organize your resources and manage team member permissions.
5. Label your CIDR block.\
   If you don't label the CIDR block, it will be named with the IP range by default.

## What's Next

After creating a CIDR block, you can assign the CIDR IPs to your instances. Here we take CIDR IPv6 as an example.

<div align="left"><figure><img src="/files/3uASrMF5Q9k4N0o9F3w7" alt="" width="563"><figcaption></figcaption></figure></div>

1. Go to **Actions** > **Add Instance** on the CIDR Block list page.
2. Select the desired instance you want to assign.
3. Select the desired IP to be assigned to the selected instance.
4. (Optional) You can assign additional IPs if you need.
5. Click **Assign** to finish assignment.

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

<mark style="color:blue;">Please note that the instances assigned with an elastic IPv6 cannot be added in to a VLAN.</mark>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/bare-metal/get-started/create-a-cidr-block.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
