Open-stack Queens network configuration tutorial 2018
Q: How to Configure Network in OpenStack
Step 1:
Cheek interface using “ip a” command
ip a
Copy Interface file and edit
cd /etc/sysconfig/network-scripts/
cp ifcfg-enp0s3 ifcfg-br-ex
vi /etc/sysconfig/network-scripts/ifcfg-br-ex
TYPE=OVSBridge
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=br-ex
UUID=d2f77013-76f1-4829-8137-d98f44a19632
DEVICE=br-ex
DEVICETYPE=ovs
ONBOOT=yes
IPADDR=172.17.20.100
NETMASK=255.255.0.0
GATEWAY=172.17.0.1
DNS1=8.8.8.8
vi /etc/sysconfig/network-scripts/ifcfg-enp3s0
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE="br-ex"
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=enp3s0
UUID=d2f77013-76f1-4829-8137-d98f44a19632
DEVICE=enp3s0
ONBOOT=yes
Restart Network Service
systemctl restart networkCheck Status :
ip a
Step 2:
Configure Neutron Controller: open File and add Below line
vi /etc/neutron/plugin.initype_drivers = vxlan,flat
flat_networks = *
Restart neutron-server Service
systemctl restart neutron-server.serviceStep 3:
Map the Bridge to the physical network : Find bridge_mappings and add “physnet1:br-ex“
vi /etc/neutron/plugins/ml2/openvswitch_agent.inibridge_mappings = physnet1:br-ex
Restart the neutron-openvswitch-agent service
systemctl restart neutron-openvswitch-agentStep 4:
Enables the use of External provider networks and leave blank
vi /etc/neutron/l3_agent.iniexternal_network_bridge =
Restart neutron-l3-agent
systemctl restart neutron-l3-agent.serviceStep 5:
Video Tutorial - English
Video Tutorial - Hindi
Load source file : find in /root/ or create new one with following content
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=1661bfc512194d92
export OS_AUTH_URL=http://172.17.20.100:5000/v2.0
export PS1='[\u@\h \W(keystone_admin)]\$ '
export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
Run source file
source keystonerc_adminStep 6:
Create Flat External Network Interface and Associate it with the configured physical_network
neutron net-create linuxtopic-external --provider:network_type flat --provider:physical_network physnet1 --router:external=True --shared
Step 7:
Open Dashboard: Login
User = AdminPwd = 1661bfc512194d92 # see keystonerc_admin
cat /root/keystonerc_admin
Project Window:
Step 2:
Create Subnet for External Network
Go to → Project → Network → Networks
In network Windows find “linuxtopic-external” and Press “Add Subnet”
Add Subnet According to your Needs :
Subnet Name :
Network Address :
IP Version :
Gateway IP :
Add Subnet Details: like DHCP and POOL
After Successfully Adding :
External Network Configured, Now we configure Internal Network for Inside Openstack Communication
Step 3:
Internal Network
Go to → Project → Network → Networks
In Network Window Press “Create Network” button
Network Name: linuxtopic-internal
Admin State: UP
And Check on Create Subnet
Press “ Next”
Subnet :
Add Subnet According to your Needs :
Subnet Name: linuxtopic-internal
Network Address: 192.168.20.0/24
IP Version: IPv4
Gateway IP: 192.168.20.1
Subnet Details :
Step 4 :
Create Router :
Go to → Project → Network → Router
Press “Create Router”
Router Name:linuxtopic-router
Admin State : UP
External Network : linuxtopic-external # select using drug-down
After Press “Create Router” Button look like
Now Add Interface :
Click Router “linuxtopic-router” press Interface tab and again press “Add Interface” button
Subnet: Select from Drug down button
IP Address: Optional you can leave blank
Press “Submit”, Output Like
Ping your External Gateway :
Network Topology :
Go to → Project → Network →Network Topology
End of Network Configuration part 2
End of Part-2 ####
Openstack Mitaka 5 :
Part 1: OpenStack Mitaka 5 installation in CentOS 7
Part 2: Network Configuration in OpenStack
Part 3: Network & Router configuration using Dashboard
Part 4: Create Project, Image, Volume & Instance
Part 5: Instance Snapshot & Boot from Volume
Part 6: Autostart OpenStack Instance Setting
Part 7: Extend Volume Size
Leave a Comment