Attaching instances to networks
Using the Nova command-line client, instances can be attached to networks in a couple of ways. When first booted, instances can be attached to one or more networks using the nova boot
command. Running instances can be attached to additional networks using the nova interface-attach
command. Both methods are explained in the upcoming sections.
Attaching instances to networks using nova boot
The following nova boot
options provide a single network interface to an instance.
Users can specify a network identified by the network's UUID, as follows:
--nic net-id=<UUID of Neutron network>
In the preceding example, Nova interfaces with the Neutron API to create a port using the network ID provided by the user, and Neutron returns details of the port back to Nova for use by the instance.
As an alternative, users can specify a port identified by the port's UUID, as follows:
--nic port-id=<UUID of Neutron network>
In the preceding example, Neutron associates the instance...