# Create a Network

## Prerequisites

You can create 2 networks in one city at most. After creating a network, you can create an instance and attach it to the network.

## Procedures

1. Log in to [**zenConsole**](https://console.zenlayer.com/).
2. Go to **Compute** > **Virtual Machine** > **Network** and click **Create Network**.
3. Identify your network.\
   \ <img src="/files/BWTIZWYCb7GnrFL9mThK" alt="" data-size="line"><mark style="color:blue;">**Note**</mark>\ <mark style="color:blue;">The name must be 2 to 128 characters in length, containing only letters, numbers, hyphens (-) and periods (.). It must start with a letter, but not http\:// or https\://.</mark>
4. Select the location you need your network.
5. Configure the IP address of your network. 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are supported.
6. Add a subnet in your network. See [**Create a Subnet**](/welcome/virtual-machine/get-started/network-and-security/create-a-subnet.md) for more details.\
   \ <img src="/files/BWTIZWYCb7GnrFL9mThK" alt="" data-size="line"><mark style="color:blue;">**Note**</mark>

   <mark style="color:blue;">You can refer to</mark> [<mark style="color:purple;">**Network Planning**</mark>](/welcome/virtual-machine/overview/vpc-and-subnet-planning.md) <mark style="color:blue;">to reasonably configure your network and subnet.</mark>
7. Click **Create** to create a network.
8. *<mark style="color:green;">(Optional)</mark>* Go to **Action** > **Delete** to delete the network if no subnets or instances added to it.


---

# 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/virtual-machine/get-started/network-and-security/create-a-network.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.
