码迷,mamicode.com
首页 > 系统相关 > 详细

openstack 使用 linuxbridge + vxlan

时间:2017-11-14 22:35:47      阅读:427      评论:0      收藏:0      [点我收藏+]

标签:启用   open   inux   network   logs   www   router   blog   outer   

#openstack 使用 linuxbridge + vxlan

#openstack pike 集群高可用  安装部署 汇总 http://www.cnblogs.com/elvi/p/7613861.html

 

############################################################
# openstack 使用 linuxbridge + vxlan
#vxlan-linuxbridge.txt.sh

#前面已部署的只使用外部网络,在其基础上,修改为xvlan + linuxbridge
#######################

#控制节点 修改

MyIP=10.2.1.17 #local_ip使用

#开启route 
openstack-config --set /etc/neutron/neutron.conf DEFAULT service_plugins router

openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan
openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,vxlan
openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers linuxbridge,l2population
openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vni_ranges 3001:4000

openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan l2_population true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan local_ip $MyIP

openstack-config --set /etc/neutron/l3_agent.ini DEFAULT interface_driver linuxbridge

#启用L3
systemctl enable neutron-l3-agent.service
systemctl restart neutron-l3-agent.service
#服务重启
systemctl restart neutron-server
systemctl restart neutron-linuxbridge-agent

#######################
#计算节点

MyIP=10.2.1.17 #local_ip使用

openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan l2_population true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan local_ip $MyIP

#重启服务
systemctl restart neutron-linuxbridge-agent
############################################################

 

openstack 使用 linuxbridge + vxlan

标签:启用   open   inux   network   logs   www   router   blog   outer   

原文地址:http://www.cnblogs.com/elvi/p/7834787.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!