1.安装Neutron
    yum install openstack-neutron-linuxbridge ebtables ipset -y

    2.编辑/etc/neutron/neutron.conf文件进行Neutron的相关配置

    1. [database]
    2. connection=mysql+pymysql://neutron:du1314520@192.168.253.130/neutron
    3. [DEFAULT]
    4. transport_url=rabbit://openstack:du1314520@192.168.253.130
    5. auth_strategy=keystone
    6. [keystone_authtoken]
    7. auth_uri=http://192.168.253.130:5000
    8. auth_url=http://192.168.253.130:5000
    9. memcached_servers=192.168.253.130:11211
    10. auth_type=password
    11. project_domain_name=default
    12. user_domain_name=default
    13. project_name=service
    14. username=neutron
    15. password=123456
    16. [oslo_concurrency]
    17. lock_path = /var/lib/neutron/tmp

    3.编辑配置自服务网络,Configure the Linux bridge agent 编辑文件
    /etc/neutron/plugins/ml2/linuxbridge_agent.ini

    1. [linux_bridge]
    2. physical_interface_mappings=provider:ens33
    3. [vxlan]
    4. enable_vxlan=true
    5. local_ip=192.168.253.130
    6. l2_population=true
    7. [securitygroup]
    8. enable_security_group=true
    9. firewall_driver=neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

    4.在nova.conf文件配置neutron节点

    1. [neutron]
    2. url = http://192.168.253.130:9696
    3. auth_url = http://192.168.253.130:35357
    4. auth_type = password
    5. project_domain_name=default
    6. user_domain_name=default
    7. region_name=RegionOne
    8. project_name=service
    9. username=neutron
    10. password=123456

    5.配置相关API

    1. [root@openstackpro02 ~]# systemctl restart openstack-nova-compute.service
    2. [root@openstackpro02 ~]# systemctl enable neutron-linuxbridge-agent.service
    3. [root@openstackpro03 ~]# systemctl start neutron-linuxbridge-agent.service