Skip to content

ezgh compute network-interfaces private-addresses assign

Give a private network interface a secondary address.

Updated View as Markdown
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.

Examples

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.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close