Create External Network

Before we can create external network, we need to know what’s the external network name is, here is the way how to find it.

How to find external network name

Login into neutron_server container

root@openstack-controller01:~# docker exec -it neutron_server bash

Go to /etc/neutron/plugins/ml2/ and check ml2_conf.ini file

(neutron-server)[neutron@openstack-controller01 /]$ cd /etc/neutron/plugins/ml2/
(neutron-server)[neutron@openstack-controller01 ml2]$ cat ml2_conf.ini
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
network_vlan_ranges =
flat_networks = physnet1
vni_ranges = 1:1000

There is a flat_nbetworks = physnet1, that’s the external network we need while creating the external network in openstack

Create External Public network


source admin-openrc.shopenstack network create --external --provider-network-type vlan --provider-physical-network  physnet1 --provider-segment 5 --project admin --share public-networkopenstack subnet create --network public-network --project admin --allocation-pool start=,end= --gateway --dns-nameserver= --subnet-range public-network-subnet


Create private network in project

Now we have two networks

Create Router

Add interface into Router



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store