Forrest logo
back to the nova tool

nova:tldr:e9486

nova: Attach a network interface to a specific VM.
$ nova interface-attach --net-id ${net_id} ${server}
try on your machine

This command is used in the OpenStack Nova command-line interface (CLI) to attach a network interface to a server.

Here is an explanation of the command and its parameters:

  • nova interface-attach: This is the actual command to attach a network interface.
  • --net-id ${net_id}: This parameter specifies the ID of the network that you want to attach to the server. net_id is a variable that should be replaced with the actual network ID.
  • ${server}: This parameter specifies the server to which you want to attach the network interface. It should be replaced with the actual server name or ID.

So, when you run this command, it attaches the specified network (net_id) to the specified server (server).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nova tool