multinode in centos7 - network card configuration

asked 2015-10-08 01:34:30 -0600

vijayabalan gravatar image

updated 2015-10-08 10:04:55 -0600

dbaxps gravatar image

I am new to openstack and trying to learn for multinode to involve myself in openstack private cloud setup.I am looking for some help on configuring network cards in controller,network and compute nodes.

Controller Node - eth0 and eth1

Network Node - eth0,eth1 and eth2

Compute Node - eth0 and eth1

kindly review my attachments and advise me accordingly.

Or if you know any documentation to install openstack from the nic card setup to till horizon ,kindly share it with me.i will carry out some POC in my lab.

***********controller node Start ************************

ovs-vsctl add-br br-int

vim /etc/sysconfig/network-scripts/ifcfg-br-int

DEVICE=br-int
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-int
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<admin ip>
NETMASK=<admin netmask>
GATEWAY=<admin gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth0

DEVICE=eth0
ONBOOT=yes
NETBOOT=yes
BOOTPROTO=none
NAME=eth0
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-int

------------------------------------------------------------------------
ovs-vsctl add-br br-ex

vim /etc/sysconfig/network-scripts/ifcfg-br-ex

DEVICE=br-ex
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-ex
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<public ip>
NETMASK=<public netmask>
GATEWAY=<public gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth1

DEVICE=eth1
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=none
NAME=eth1
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ex

*************************************controller node end ****************************************************************************

*************************************Network node start ****************************************************************************
Network Node

ovs-vsctl add-br br-int

vim /etc/sysconfig/network-scripts/ifcfg-br-int

DEVICE=br-int
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-int
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<admin ip>
NETMASK=<admin netmask>
GATEWAY=<admin gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth0

DEVICE=eth0
ONBOOT=yes
NETBOOT=yes
BOOTPROTO=none
NAME=eth0
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-int

------------------------------------------------------------------------
ovs-vsctl add-br br-ex

vim /etc/sysconfig/network-scripts/ifcfg-br-ex

DEVICE=br-ex
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-ex
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<public ip>
NETMASK=<public netmask>
GATEWAY=<public gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth1

DEVICE=eth1
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=none
NAME=eth1
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ex

------------------------------------------------------------------------


vim /etc/sysconfig/network-scripts/ifcfg_eth2

DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
NAME=eth2
DEVICETYPE=network
TYPE=OVSPort
BOOTPROTO=none
IPADDR=<public ip>
NETMASK=<public netmask>
GATEWAY=<public gateway>
DNS1=8.8.8.8

*************************************Network node end ****************************************************************************


*************************************Compute  node start****************************************************************************
ovs-vsctl add-br br-int

vim /etc/sysconfig/network-scripts/ifcfg-br-int

DEVICE=br-int
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-int
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<admin ip>
NETMASK=<admin netmask>
GATEWAY=<admin gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth0

DEVICE=eth0
ONBOOT=yes
NETBOOT=yes
BOOTPROTO=none
NAME=eth0
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-int

------------------------------------------------------------------------
ovs-vsctl add-br br-ex

vim /etc/sysconfig/network-scripts/ifcfg-br-ex

DEVICE=br-ex
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-ex
USERCTL=no
BOOTPROTO=none
HOTPLUG=no
IPADDR=<public ip>
NETMASK=<public netmask>
GATEWAY=<public gateway>
DNS1=8.8.8.8

vim /etc/sysconfig/network-scripts/ifcfg_eth1

DEVICE=eth1
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=none
NAME=eth1
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ex ...
(more)
edit retag flag offensive close merge delete

Comments

Three node deployment is much easier to perform to via RDO packstack on CentOS 7.X Sample bellow was written for VMs , but works the same way on bare metal
http://bderzhavets.blogspot.com/2015/....

dbaxps gravatar imagedbaxps ( 2015-10-08 10:53:34 -0600 )edit