# Attach Interface

On virtual machines in the Service Portal AI portal, you can attach or detach VPC interfaces and ports used by the virtual machine by specifying the IP address that the instance will use.

To attach a VPC interface, make sure that you have already created a VPC. For VPC creation steps, refer to the **VPC Network** section. Below are the steps to attach a VPC-based interface to a virtual machine:

* On the Service Portal AI page, select the **Instance** menu in **Deka Flexi**.

<figure><img src="/files/OvCppHvYgmh0M9gDobHg" alt=""><figcaption></figcaption></figure>

* Click **More** then click **Attach Interface** button in the **Action** column.

<figure><img src="/files/WgpF44JMLHlqAs4OznUQ" alt=""><figcaption></figcaption></figure>

* You can choose to attach the interface **by Port** or **by VPC**.

<figure><img src="/files/PCStNCgR2Yc6gaUREdNL" alt=""><figcaption></figcaption></figure>

* **By VPC**\
  If you choose **By VPC**, you must select the VPC and enter the IP address that the instance will use.

<figure><img src="/files/ZYk8bNvT4y1gIvyT0uwy" alt=""><figcaption></figcaption></figure>

* **By Port**\
  If you choose **By Port** but no port is available, you can create a port in the VPC. Refer to the **Add Port** sub-chapter for more details.

<figure><img src="/files/LdGHP8ahhr4XHa6KU7bX" alt=""><figcaption></figcaption></figure>

* After filling in all the required fields, click the **Attach** button. A notification will appear: **"Attach interface has  successfully"**

<figure><img src="/files/UgCRPswAAbtDh3t4zRo9" alt=""><figcaption></figcaption></figure>


---

# 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:

```
GET https://docs.cloudeka.ai/guidance-for-individual/deka-flexi/deka-flexi-instance/details-instance/attach-interface.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.
