Common OpenStack networking tasks
This section outlines common OpenStack networking tasks for quick reference only. For more details on using Neutron and how Neutron works – including details of when and where to use features such as Floating IPs and Routers, refer to Chapter 4, Neutron – OpenStack Networking.
Getting ready
Ensure that you have the OpenStack clients installed, as described in the first recipes in this chapter.
How to do it…
Carry out the following steps to create and modify networks in OpenStack:
Creating a network
There are usually two steps to create a network: creating the equivalent of an L2 network, followed by assigning a subnet (and details to it).
First, create the network:
openstack network create NETWORK_NAME
Now create the subnet on this network:
openstack subnet create SUBNET_NAME --network NETWORK_NAME--subnet-range CIDR
Creating a provider network (for use with Floating IPs)
To create a floating IP provider network, carry out the following commands. This command...