---
title: Attach
url: https://docs.vultr.com/reference/vultr-cli/vpc-2/nodes/attach
description: Attaches compute instances to a VPC 2.0 network to enable secure private communication between resources.
publish_date: 2025-09-14T03:09:41.145689Z
last_updated: 2025-11-07T17:53:09.954524Z
---

The `vultr-cli vpc2 nodes attach` command attaches compute instances to a VPC 2.0 network, enabling them to communicate securely within the private network environment.

## Usage

```console
$ vultr-cli vpc2 nodes attach <VPC2 ID> [flags]
```

## Examples

```console
# Full example
$ vultr-cli vpc2 nodes attach 84fee086-6691-417a-b2db-e2a71061fa17 \
--nodes="35dbcffe-58bf-46fe-bd68-964d95488dd8,1f5d784a-1011-430c-a2e2-39ba045abe3c"
```

## Flags
| Shorthand | Long Version | Description |
|-----------|--------------|-------------|
| -n | --nodes | the instance IDs you wish to attach to the VPC2 network |