---
title: "ezgh compute network-interfaces private-prefixes assign"
description: "Delegate a prefix to a private network interface."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh compute network-interfaces private-prefixes assign

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh compute network-interfaces private-prefixes assign <interface> [--prefix p | --family ipv4|ipv6] [--wait] [flags]
```

Delegate a prefix of a private network interface's (ID, UUID or name) subnet to it: an IPv4 /28 or an IPv6 /80, `--prefix`, or one picked of `--family` (ipv4 by default). It prints the operation; the prefix is the interface's only once the operation has succeeded, which `--wait` waits for. A prefix can't move between interfaces: unassign it and assign it again.

Part of [`ezgh compute network-interfaces private-prefixes`](/cli/reference/compute-network-interfaces-private-prefixes).

## Examples

```sh
ezgh compute network-interfaces private-prefixes assign node-a --prefix 10.0.1.16/28 --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--family` | string | `ipv4` | the picked prefix's family: ipv4 (/28) or ipv6 (/80) |
| `--prefix` | string |  | the prefix to delegate, in CIDR form (default: one picked) |
| `--wait` | boolean |  | wait until the operation has succeeded, and print it then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/compute-network-interfaces-private-prefixes-assign/index.mdx
