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
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_vlan]
network_vlan_ranges =
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vxlan]
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

By CLI

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=10.207.88.151,end=10.207.89.254 --gateway 10.207.88.1 --dns-nameserver=10.255.255.6 --subnet-range 10.207.88.0/23 public-network-subnet

By GUI

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