---
title: "ezgh compute network-interfaces private-addresses reassign"
description: "Move a secondary address to another 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-addresses reassign

{/* 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 reassign <interface> <address> --to <interface> [--wait] [flags]
```

Move a secondary private address from a network interface to another (`--to`: ID, UUID or name) in the same subnet, for failover, while both instances run if need be. The old owner's permission is withdrawn everywhere before the new one gets the address; established connections don't move with it. It prints the operation; `--wait` waits until it has succeeded, which means the hosts have it, not that the guest's application is ready. A primary address can't be moved.

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

## Examples

```sh
ezgh compute network-interfaces private-addresses reassign db-a 10.0.1.50 --to db-b --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--to` | string |  | the network interface to move it to (ID, UUID or name) |
| `--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-reassign/index.mdx
