---
title: "ezgh compute network-interfaces private-addresses assign"
description: "Give a private network interface a secondary address."
---

> 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-addresses 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-addresses assign <interface> [--address a | --family ipv4|ipv6] [--wait] [flags]
```

Give a private network interface (ID, UUID or name) a secondary address of its own subnet: `--address`, or the next free one of `--family` (ipv4 by default). It prints the operation; the address is the interface's only once the operation has succeeded, which `--wait` waits for. The guest configures it from its metadata: the boot seed never has secondary addresses.

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

## Examples

```sh
ezgh compute network-interfaces private-addresses assign db-a --address 10.0.1.50 --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--address` | string |  | the address to assign (default: the next free one) |
| `--family` | string | `ipv4` | the next free address's family: ipv4 or ipv6 |
| `--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-addresses-assign/index.mdx
