前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >OpenStack Juno系列之网络节点搭建

OpenStack Juno系列之网络节点搭建

作者头像
DevinGeng
发布2019-04-09 17:07:11
9460
发布2019-04-09 17:07:11
举报
文章被收录于专栏:云+技术

OpenStack Juno系列之网络节点搭建

neutron节点搭建

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

添加转发

vi  /etc/sysctl.conf

net.ipv4.ip_forward=1

net.ipv4.conf.all.rp_filter=0

net.ipv4.conf.default.rp_filter=0

刷新下

sysctl -p

安装neutron各模块服务

apt-get install neutron-plugin-ml2 neutron-plugin-openvswitch-agent \

  neutron-l3-agent neutron-dhcp-agent

编辑配置文件

vi  /etc/neutron/neutron.conf

[DEFAULT]

verbose = True

rpc_backend = rabbit

rabbit_host = controller

rabbit_password = RABBIT_PASS

core_plugin = ml2

service_plugins = router

allow_overlapping_ips = True

auth_strategy = keystone

[keystone_authtoken]

auth_uri = http://controller:5000/v2.0

identity_uri = http://controller:35357

admin_tenant_name = service

admin_user = neutron

admin_password = NEUTRON_PASS

编辑ml2配置文件

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

[ml2]

type_drivers = flat,gre

tenant_network_types = gre

mechanism_drivers = openvswitch

[ml2_type_flat]

flat_networks = external

[ml2_type_gre]

tunnel_id_ranges = 1:1000

[securitygroup]

enable_security_group = True

enable_ipset = True

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[ovs]

local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS

tunnel_type = gre

enable_tunneling = True

bridge_mappings = external:br-ex

To configure the Layer-3 (L3) agent:

 vi /etc/neutron/l3_agent.ini

[DEFAULT]

verbose = True

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

use_namespaces = True

external_network_bridge = br-ex

To configure the DHCP agent:

vi  /etc/neutron/dhcp_agent.ini

[DEFAULT]

verbose = True

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq

use_namespaces = True

dnsmasq_config_file = /etc/neutron/dnsmasq-neutron.conf

vi /etc/neutron/dnsmasq-neutron.conf

dhcp-option-force=26,1454

# pkill dnsmasq

To configure the metadata agent:

vi /etc/neutron/metadata_agent.ini

[DEFAULT]

verbose = True

nova_metadata_ip = controller

auth_url = http://controller:5000/v2.0

auth_region = regionOne

admin_tenant_name = service

admin_user = neutron

admin_password = NEUTRON_PASS

metadata_proxy_shared_secret = METADATA_SECRET

到控制节点上编辑

vi  /etc/nova/nova.conf

[neutron]

service_metadata_proxy = True

metadata_proxy_shared_secret = METADATA_SECRET

重启服务

service nova-api restart

回到neutron节点上:

配置OVS,重启服务

service openvswitch-switch restart

ovs-vsctl add-br br-ex

ovs-vsctl add-port br-ex INTERFACE_NAME

ethtool -K INTERFACE_NAME gro off

重启服务

service neutron-plugin-openvswitch-agent restart

service neutron-l3-agent restart

service neutron-dhcp-agent restart

service neutron-metadata-agent restart

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2014/11/25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档