Skip to Content
Learning OpenStack Networking - Third Edition
book

Learning OpenStack Networking - Third Edition

by James Denton
August 2018
Beginner
462 pages
12h 36m
English
Packt Publishing
Content preview from Learning OpenStack Networking - Third Edition

Specifying a network

The openstack server create command provides a --nic argument that specifies the network or port to be attached to the instance.

Users can specify a network identified by the network's ID by using the net-id key:

--nic net-id=<Network ID> 

In the preceding example, Nova interfaces with the Neutron API to create a port using the network ID provided by the user. Neutron then returns details of the port back to Nova for use by the instance. Users can request a specific unused IPv4 or IPv6 address using the v4-fixed-ip and v6-fixed-ip keys, respectively, as shown here:

--nic net-id=<Network ID>,v4-fixed-ip=<ipv4 address>--nic net-id=<Network ID>,v6-fixed-ip=<ipv6 address> 
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

OpenStack Certification, 2/e

OpenStack Certification, 2/e

Sander van Vugt
Mastering OpenStack - Second Edition

Mastering OpenStack - Second Edition

Omar Khedher, Chandan Dutta

Publisher Resources

ISBN: 9781788392495