> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/elastic-compute/get-started/manage-networking/create-a-network-interface.md).

# Create a Network Interface

Network interface (vNIC) connects your instance to a network, enabling it to communicate with other instances. Every instance has a default primary vNIC, and you can also attach additional elastic vNICs.<br>

## Procedures

1. Go to **Network Interface** > **Create Elastic Network Interface**.
2. Select a location where you want to create your vNIC.\
   Please note that you can only attach vNICs to the instances in the same region.
3. Attach your vNIC to a global VPC and a subnet.
4. Associate a security group.
5. Select an IP stack type your vNIC supports.\
   To select a specific IP stack type, the prerequisite is that the associated subnet must already support that type of IP stack.
6. Set up IPv4 or IPv6 addresses according to your networking plan.
7. Label your vNIC.

## More Actions

Go to **Network Interface** > **Actions** to do the following actions.

* Attach\
  You can attach the elastic vNIC to an instance in the same region.

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

<mark style="color:blue;">Ensure your instance is powered on and with QGA enabled.</mark>
{% endhint %}

* Detach\
  The elastic vNIC can be detached.

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

* <mark style="color:blue;">Primary vNIC cannot be detached.</mark>

* <mark style="color:blue;">Ensure your instance is powered on and with QGA enabled.</mark>
  {% endhint %}

* Assign Private IPv4\
  You can assign additional private IPv4 addresses to your vNIC. Remember to [configure the private IPv4 addresses](/welcome/elastic-compute/get-started/manage-instances/activate-an-additional-private-ipv4-address.md) on the instance for the changes to take effect.

* Change vNIC Stack Type\
  If you have an IPv4 vNIC, you can change the stack type to IPv4 & IPv6. You need to restart your instance for the changes to take effect if the vNIC is attached to an instance.

* Delete\
  Primary vNIC can only be deleted along with the attached instance.

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

<mark style="color:blue;">No matter attaching, detaching or deleting the vNIC, remember to complete relevant IP and route configurations after new vNIC attachment.</mark>
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.console.zenlayer.com/welcome/elastic-compute/get-started/manage-networking/create-a-network-interface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
