openstack newton linuxbridge 改成 ovs

 

最近搭建了一个all in one 的 openstack newton 版,安装官方文档做用的是linuxbridge。已经老版玩的时候都是用的ovs,趁比较闲的时候也将N版改造一下

官方文档

http://docs.openstack.org/liberty/networking-guide/scenario-provider-ovs.html

下面只列出比较重要的文件,官方有文档,这次参考L版的文档来操作的

 安装包yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch

 

 

 

控制节点

/etc/neutron/neutron.conf

[DEFAULT]
verbose = True
core_plugin = ml2


 /etc/neutron/plugins/ml2/ml2_conf.ini

[DEFAULT]
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[ml2_type_geneve]
[ml2_type_gre]
[ml2_type_vlan]
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = True

 

 

/etc/neutron/plugins/ml2/openvswitch_agent.ini

[DEFAULT]
[ovs]
local_ip=192.168.0.228
bridge_mappings=provider:br-ex
[agent]
tunnel_types=gre,vxlan
l2_population=True
prevent_arp_spoofing=True
[securitygroup]
firewall_driver=iptables_hybrid
enable_security_group=True

 

 

/etc/neutron/dhcp_agent.ini

[DEFAULT]
dnsmasq_config_file = /etc/neutron/dnsmasq-neutron.conf
interface_driver=neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
[AGENT]

 

创建桥,这个跟之前的J版本什么都一样

ovs-vsctl add-br br-ex

ovs-vsctl add-port br-ex 网卡

重启服务器

  • neutron Server
  • Open vSwitch agent
  • DHCP agent

 

计算节点

 /etc/neutron/plugins/ml2/openvswitch_agent.ini

[DEFAULT]
[ovs]
bridge_mappings=provider:br-ex
[agent]
prevent_arp_spoofing=True
[securitygroup]
firewall_driver=iptables_hybrid
enable_security_group=True

 

开启ovs

重复增加端口步骤

ovs-vsctl add-br br-ex

ovs-vsctl add-port br-ex  网卡

启动Open vSwitch agent

 

检查一下 

然后按照N版官方文档创建网络即可

 

 

写的要是有错误大家要反应 ~~~~~~

转载于:https://www.cnblogs.com/menkeyi/p/6066003.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值