Các file cấu hình neutron sử dụng OpenvSwitch cho use case provider và selfservice kết hợp.
/etc/neutron/neutron.conf
root@controller:~ # cat /etc/neutron/neutron.conf | egrep -v '^#|^$'
[DEFAULT]
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True
auth_strategy = keystone
rpc_backend = rabbit
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://neutron:[email protected] /neutron
[keystone_authtoken]
auth_uri = http://10.10.10.140:5000
auth_url = http://10.10.10.140:35357
memcached_servers = 10.10.10.140:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = Welcome123
[matchmaker_redis]
[nova]
auth_url = http://10.10.10.140:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = Welcome123
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = 10.10.10.140
rabbit_userid = openstack
rabbit_password = Welcome123
[oslo_policy]
[quotas]
[ssl]
/etc/neutron/l3_agent.ini
root@controller:~ # cat /etc/neutron/l3_agent.ini | egrep -v '^#|^$'
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
external_network_bridge =
[AGENT]
root@controller:~ #
/etc/neutron/metadata_agent.ini
root@controller:~ # cat /etc/neutron/metadata_agent.ini | egrep -v '^#|^$'
[DEFAULT]
nova_metadata_ip = 10.10.10.140
metadata_proxy_shared_secret = Welcome123
[AGENT]
/etc/neutron/dhcp_agent.ini
root@controller:~ # cat /etc/neutron/dhcp_agent.ini | egrep -v '^#|^$'
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
dnsmasq_config_file = /etc/neutron/dnsmasq-neutron.conf
[AGENT]
/etc/neutron/plugins/ml2/ml2_conf.ini
root@controller:~ # cat /etc/neutron/plugins/ml2/ml2_conf.ini | egrep -v '^#|^$'
[DEFAULT]
[ml2]
type_drivers = flat,vlan,vxlan,gre
tenant_network_types = vlan,gre,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = external
[ml2_type_geneve]
[ml2_type_gre]
tunnel_id_ranges = 300:400
[ml2_type_vlan]
network_vlan_ranges = external
[ml2_type_vxlan]
[securitygroup]
enable_ipset = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
/etc/neutron/plugins/ml2/openvswitch_agent.ini
root@controller:~ # cat /etc/neutron/plugins/ml2/openvswitch_agent.ini | egrep -v '^#|^$'
[DEFAULT]
[agent]
tunnel_types = gre
l2_population = True
[ovs]
local_ip = 10.10.10.140
bridge_mappings = external:br-ex
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
/etc/neutron/neutron.conf
root@compute1:/etc/neutron/plugins/ml2# cat /etc/neutron/neutron.conf | egrep -v ' ^#|^$'
[DEFAULT]
core_plugin = ml2
rpc_backend = rabbit
auth_strategy = keystone
service_plugins = router
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
[keystone_authtoken]
auth_uri = http://10.10.10.140:5000
auth_url = http://10.10.10.140:35357
memcached_servers = 10.10.10.140:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = Welcome123
[matchmaker_redis]
[nova]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = 10.10.10.140
rabbit_userid = openstack
rabbit_password = Welcome123
[oslo_policy]
[quotas]
[ssl]
/etc/neutron/plugins/ml2/ml2_conf.ini
root@compute1:/etc/neutron# cat /etc/neutron/plugins/ml2/ml2_conf.ini | egrep -v ' ^#|^$'
[ml2]
type_drivers = flat,vlan,vxlan,gre
tenant_network_types = vlan,gre,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = external
[ml2_type_gre]
tunnel_id_ranges = 300:400
[ml2_type_vlan]
network_vlan_ranges = external
[securitygroup]
enable_ipset = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
root@compute1:/etc/neutron
/etc/neutron/plugins/ml2/openvswitch_agent.ini
root@compute1:/etc/neutron# cat /etc/neutron/plugins/ml2/openvswitch_agent.ini | egrep -v ' ^#|^$'
[DEFAULT]
[agent]
tunnel_types = gre
l2_population = True
[ovs]
local_ip = 10.10.10.141
bridge_mappings = external:br-ex
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
root@compute1:/etc/neutron#