1.安装Neutron
yum install openstack-neutron-linuxbridge ebtables ipset -y
2.编辑/etc/neutron/neutron.conf文件进行Neutron的相关配置
[database]
connection=mysql+pymysql://neutron:du1314520@192.168.253.130/neutron
[DEFAULT]
transport_url=rabbit://openstack:du1314520@192.168.253.130
auth_strategy=keystone
[keystone_authtoken]
auth_uri=http://192.168.253.130:5000
auth_url=http://192.168.253.130:5000
memcached_servers=192.168.253.130:11211
auth_type=password
project_domain_name=default
user_domain_name=default
project_name=service
username=neutron
password=123456
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
3.编辑配置自服务网络,Configure the Linux bridge agent 编辑文件
/etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings=provider:ens33
[vxlan]
enable_vxlan=true
local_ip=192.168.253.130
l2_population=true
[securitygroup]
enable_security_group=true
firewall_driver=neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
4.在nova.conf文件配置neutron节点
[neutron]
url = http://192.168.253.130:9696
auth_url = http://192.168.253.130:35357
auth_type = password
project_domain_name=default
user_domain_name=default
region_name=RegionOne
project_name=service
username=neutron
password=123456
5.配置相关API
[root@openstackpro02 ~]# systemctl restart openstack-nova-compute.service
[root@openstackpro02 ~]# systemctl enable neutron-linuxbridge-agent.service
[root@openstackpro03 ~]# systemctl start neutron-linuxbridge-agent.service