Open-stack Queens network configuration tutorial 2018

Open-stack Queens network configuration tutorial 2018





Q: How to Configure Network in OpenStack

Step 1:

Cheek interface using “ip a” command
ip a
Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

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


Openstack Newtork Configuration Mitaka5 CentOS7 Part1 openstack,  mitaka5, keystone, instance, nova, neutron, network configuration, lokesh carpenter, lokesh, linuxtopic, linux topic, vm,

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 network
Check Status :
ip a


Step 2:

Configure Neutron Controller: open File and add Below line
vi /etc/neutron/plugin.ini
type_drivers = vxlan,flat

Openstack Newtork Configuration Mitaka5 CentOS7 Part1 openstack,  mitaka5, keystone, instance, nova, neutron, network configuration, lokesh carpenter, lokesh, linuxtopic, linux topic, vm,

flat_networks = *

Openstack Newtork Configuration Mitaka5 CentOS7 Part1 openstack,  mitaka5, keystone, instance, nova, neutron, network configuration, lokesh carpenter, lokesh, linuxtopic, linux topic, vm,

Restart neutron-server Service
systemctl restart neutron-server.service
Step 3:

Map the Bridge to the physical network : Find bridge_mappings and add “physnet1:br-ex“
vi /etc/neutron/plugins/ml2/openvswitch_agent.ini
bridge_mappings = physnet1:br-ex

Openstack Newtork Configuration Mitaka5 CentOS7 Part1 openstack,  mitaka5, keystone, instance, nova, neutron, network configuration, lokesh carpenter, lokesh, linuxtopic, linux topic, vm,

Restart the neutron-openvswitch-agent service
systemctl restart neutron-openvswitch-agent
Step 4:

Enables the use of External provider networks and leave blank
vi /etc/neutron/l3_agent.ini
external_network_bridge =



Restart neutron-l3-agent
systemctl restart neutron-l3-agent.service
Step 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



Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

Run source file
source keystonerc_admin
Step 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

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

Step 7:

Open Dashboard: Login

http://172.17.20.100/

User = AdminPwd = 1661bfc512194d92 # see keystonerc_admin
cat /root/keystonerc_admin



Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy
   

Project Window:

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

Step 2:

Create Subnet for External Network

Go to → Project → Network → Networks
In network Windows  find “linuxtopic-external”  and Press “Add Subnet”


Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

Add Subnet According to your Needs  :

Subnet Name :

Network Address :

IP Version :

Gateway IP :



Add Subnet Details: like DHCP and POOL


After Successfully Adding :

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy
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 :

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

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”

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy


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

Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

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
Openstack Queens neutron configuration in single node openstack, create external and internal network in openstack queens, openstack queens, openstack cloud, neutron, nova, network configuration using dashboard, router configuration in openstack, openstack default policy

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
Previous
Next Post »