There are some final steps to be taken care of before launching the first instance. We should create the required virtual network infrastructure for instances to connect to, along with the external network and the tenant network. Have a look at the following diagram:
The purpose of external networks is to provide access to the Internet for the instances. It uses network address translation (NAT) underneath for Internet access to the instances.
For gaining access to the admin-only CLI commands, source the admin credentials using the following command:
source admin-openrc.sh
Use the following command to create the network:
neutron net-create ext-net --router:external True \ --provider:physical_network external --provider:network_type flat