# 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="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FdcGqi4D5tIlDVeXsUZN1%2Fimage.png?alt=media&#x26;token=b81daaea-1422-4885-b22e-0a9abcfc8f9f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FMhVrD7jKQq1WXwfDcIL5%2Fimage.png?alt=media&#x26;token=c1b7881f-f8f0-4fa6-b34c-5db013160457" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FRSoBpAjvpBBKdOJHzjNQ%2Fimage.png?alt=media&#x26;token=b4c8d9fe-bc92-4c0b-8c6c-f2052d916161" 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="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FbNPXUU1LRdG2T1GfCHXn%2Fimage.png?alt=media&#x26;token=b027897c-c77e-4de2-a9c4-d1be06195890" 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="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FnB1KniwkWEmb2SLgVdSC%2Fimage%20(2).png?alt=media&#x26;token=bf5ac24b-1681-4f9b-bedd-515ba06b15fd" 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="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FSqTULcdUA0mZU4tkx75W%2Fimage.png?alt=media&#x26;token=1e0634c2-fd20-491a-ae2d-2404ef08f384" alt=""><figcaption></figcaption></figure>
