Book Image

Troubleshooting Ubuntu Server

By : Skanda Bhargav
Book Image

Troubleshooting Ubuntu Server

By: Skanda Bhargav

Overview of this book

Table of Contents (16 chapters)
Troubleshooting Ubuntu Server
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Creating initial networks


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:

External networks

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.

Creating an external network

The steps are as follows:

  1. For gaining access to the admin-only CLI commands, source the admin credentials using the following command:

    source admin-openrc.sh
    
  2. Use the following command to create the network:

    neutron net-create ext-net --router:external True \
    --provider:physical_network external --provider:network_type flat
    
Creating the subnet for the external network

Run the following command to create the subnet:

neutron subnet-create ext-net --name ext-subnet \
--allocation-pool start...