Atom feed of this document
  
 

 Basic Compute and Networking operations

This table shows example neutron and nova commands that enable you to complete basic VM networking operations:

Table 7.21. Basic Compute and Networking operations
Action Command
Checks available networks.
$ neutron net-list
Boots a VM with a single NIC on a selected Networking network.
$ nova boot --image img --flavor flavor --nic net-id=net-id vm-name

Searches for ports with a device_id that matches the Compute instance UUID. See Create and delete VMs.

$ neutron port-list --device_id=vm-id
Searches for ports, but shows only the mac_address of the port.
$ neutron port-list --field mac_address --device_id=vm-id
Temporarily disables a port from sending traffic.
$ neutron port-update port-id --admin_state_up=False
[Note]Note

The device_id can also be a logical router ID.

[Note] Create and delete VMs
  • When you boot a Compute VM, a port on the network that corresponds to the VM NIC is automatically created and associated with the default security group. You can configure security group rules to enable users to access the VM.

  • When you delete a Compute VM, the underlying Networking port is automatically deleted.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...