How to Configure Network in OpenStack Queens Part 2 - Single Node
===== START ====
Step 1: Cheek interface using “ip a” command
# ip a
Copy Interface file and edit
# cd /etc/sysconfig/network-scripts/
# cp ifcfg-ens33 ifcfg-br-ex
# vi ifcfg-br-ex
TYPE=OVSBridge
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=br-ex
DEVICE=br-ex
DEVICETYPE=ovs
ONBOOT=yes
IPADDR=192.168.65.130
NETMASK=255.255.255.0
GATEWAY=192.168.65.2
DNS1=8.8.8.8
# vi ifcfg-ens33
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE="br-ex"
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=ens33
DEVICE=ens33
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
flat_networks=*
Restart neutron-server Service
# systemctl restart neutron-server.service
- Step 3: 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 4: 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
Restart the neutron-openvswitch-agent service
# systemctl restart neutron-openvswitch-agent
** Load source file : find in /root/
# cat keystonerc_admin
Run source file
# source keystonerc_admin
- Step 6: Create Flat External Network Interface and Associate it with the configured physical_network
neutron net-create Htu-external --provider:network_type flat --provider:physical_network physnet1 --router:external=True --shared
- Step 7: Open Dashboard: Login
- Step 8: Create Subnet for External Network
Go to → Project → Network → Networks
In network Windows find “Htu-external” and Press “Add Subnet”
Subnet Name : External
Network Address : 192.168.65.0/24
IP Version : IPv4
Gateway IP : 192.168.65.2
- Add Subnet Details: like DHCP and POOL
Allocation Pools: 192.168.65.10,192.168.65.20
DNS: 8.8.8.8
- Step 9: Now we configure Internal Network for Inside Openstack Communication
Go to → Project → Network → Networks
In Network Window Press “Create Network” button
Network Name: Htu-internal
Admin State: UP
And Check on Create Subnet
Press “ Next”
Subnet :
Add Subnet According to your Needs :
Subnet Name: Internal
Network Address: 10.0.0.0/24
IP Version: IPv4
Gateway IP: 10.0.0.1
- Step 10 : Create Router
Go to → Project → Network → Router
Press “Create Router”
Router Name: Htu-router
Admin State : UP
External Network : linuxtopic-external # select using drug-down
After Press “Create Router” Button look like
Now Add Interface :
Click Router “Htu-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
How to Configure Network in OpenStack Queens Part 2
Теги
OpenStack Tutorialopenstack installationopenstack installation centosopenstack installation tutorialhow to install openstack ocataopenstack installation centos 7openstack installation on centoscentos openstack tutorialopenstack installation step by stepcentos openstack packstackinstall openstack using packstackinstall openstack ocata on centos 7openstack ocataOpenStack tutorial for beginnersopenstack installation ocata