时间:2021-07-01 10:21:17 帮助过:2人阅读
转载请声明出处:
作者:张某人ER
原文链接:http://blog.csdn.net/xinxing__8185/article/details/51353646
进行配置
- vim /etc/sysctl.conf
- net.ipv4.conf.all.rp_filter=0
- net.ipv4.conf.default.rp_filter=0
- net.bridge.bridge-nf-call-iptables=1
- net.bridge.bridge-nf-call-ip6tables=1
执行
- sysctl -p
- yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
进行相关配置文件的修改
- vim /etc/neutron/neutron.conf
- rpc_backend=rabbit 去掉#号
- rabbit_host = controller
- rabbit_userid=openstack
- rabbit_password =openstack
- auth_strategy = keystone 去掉#号
- 在标签[keystone_authtoken]
- 修改以下内容:
- auth_uri = http://controller:5000
- auth_url = http://controller:35357
- auth_plugin = password
- project_domain_id = default
- user_domain_id = default
- project_name = service
- username = neutron
- password = neutron #替换NEUTRON_PASS
- core_plugin = ml2
- service_plugins = router
- allow_overlapping_ips = True
- [default]
- verbose = True
- vim /etc/neutron/plugins/ml2/ml2_conf.ini
- type_drivers = flat,vlan,gre,vxlan
- tenant_network_types = gre
- mechanism_drivers = openvswitch
- tunnel_id_ranges=1:1000
- enable_security_group = True
- enable_ipset = True
- firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- 添加以下内容(如果没有)
- [ovs]
- local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS
- [agent]
- tunnel_types = gre
- systemctl enable openvswitch.service
- systemctl start openvswitch.service
进行相关配置
- vim //etc/nova/nova.conf
- network_api_class = nova.network.neutronv2.api.API
- security_group_api = neutron
- linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
- firewall_driver = nova.virt.firewall.NoopFirewallDriver
- 在[neutorn]标签下
- url = http://controller:9696
- auth_strategy = keystone
- admin_auth_url = http://controller:35357/v2.0
- admin_tenant_name = service
- admin_username = neutron
- admin_password = neutron #替换NEUTRON_PASS
- auth_strategy=keystone
- ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
- cp /usr/lib/systemd/system/neutron-openvswitch-agent.service /usr/lib/systemd/system/neutron-openvswitch-agent.service.orig
- sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service
- systemctl restart openstack-nova-compute.service
- systemctl enable neutron-openvswitch-agent.service
- systemctl start neutron-openvswitch-agent.service
----------------------------------------------------------------------------------------------------------------------
在控制节点上(测试)
- source admin-openrc.sh
- neutorn agent-list
如果正常,就可以创建初始网络了。
此教程完。
注:以后的博客中会对安装过程中遇到的问题进行相关总结。
Oracle VM + centos7.1+openstack kilo 多结点安装教程---neutron的安装(3)
标签: