OpenStack stein安装(九)network option2

发布时间:2025-04-02 点击:26
系统运维
install and configure the networking components on the controller node.
install the components
# yum install openstack-neutron openstack-neutron-ml2 \\\\ openstack-neutron-linuxbridge ebtablesconfigure the server component
edit the /etc/neutron/neutron.conf file and complete the following actions:○ in the [database] section, configure database access:[database]# ...connection = mysql pymysql://neutron:neutron123@stack.flex.net/neutron注意:注释或移除其它连接选项在[database]区域中○ in the [default] section, enable the modular layer 2 (ml2) plug-in, router service, and overlapping ip addresses:
[default]

core_plugin = ml2service_plugins = routerallow_overlapping_ips = true○ in the [default] section, configure rabbitmq message queue access:
[default]

transport_url = rabbit://openstack:openstack123@dbs.flex.net○ in the [default] and [keystone_authtoken] sections, configure identity service access:
[default]

auth_strategy = keystone[keystone_authtoken]# ...www_authenticate_uri = http://stack.flex.net:5000auth_url = http://stack.flex.net:5000memcached_servers = controller:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = neutron123注意:注释或移除在[keystone_authtoken]区域中其它选项.○ in the [default] and [nova] sections, configure networking to notify compute of network topology changes:
[default]

notify_nova_on_port_status_changes = truenotify_nova_on_port_data_changes = true[nova]# ...auth_url = http://stack.flex.net:5000auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = regiononeproject_name = serviceusername = novapassword = nova123○ in the [oslo_concurrency] section, configure the lock path:
[oslo_concurrency]

lock_path = /var/lib/neutron/tmp3. configure the modular layer 2 (ml2) plug-inthe ml2 plug-in uses the linux bridge mechanism to build layer-2 (bridging and switching) virtual networking infrastructure for instances.edit the /etc/neutron/plugins/ml2/ml2_conf.ini file and complete the following actions:○ in the [ml2] section, enable flat, vlan, and vxlan networks:
[ml2]

type_drivers = flat,vlan,vxlan○ in the [ml2] section, enable vxlan self-service networks:
[ml2]

tenant_network_types = vxlan○ in the [ml2] section, enable the linux bridge and layer-2 population mechanisms:
[ml2]

mechanism_drivers = linuxbridge,l2population注意:配置ml2插件后, 从type_drivers移除这个选项会导致数据库不一致并且linux bridge只支持vxlan overlay network.○ in the [ml2] section, enable the port security extension driver:
[ml2]

extension_drivers = port_security○ in the [ml2_type_flat] section, configure the provider virtual network as a flat network:
[ml2_type_flat]

flat_networks = provider○ in the [ml2_type_vxlan] section, configure the vxlan network identifier range for self-service networks:
[ml2_type_vxlan]

vni_ranges = 1:1000○ in the [securitygroup] section, enable ipset to increase efficiency of security group rules:
[securitygroup]

enable_ipset = true4. configure the linux bridge agentthe linux bridge agent builds layer-2 (bridging and switching) virtual networking infrastructure for instances and handles security groups.edit the /etc/neutron/plugins/ml2/linuxbridge_agent.ini file and complete the following actions:○ in the [linux_bridge] section, map the provider virtual network to the provider physical network interface:
[linux_bridge]
physical_interface_mappings = provider:external:eth2
replace provider_interface_name with the name of the underlying provider physical network interface.○ in the [vxlan] section, enable vxlan overlay networks, configure the ip address of the physical network interface that handles overlay networks, and enable layer-2 population:
[vxlan]
enable_vxlan = true
local_ip = overlay_interface_ip_address
l2_population = true

备案码没有记录-备案平台
用百度云服务器收录快吗?
我在阿里云购买的服务器
百度云服务器和腾讯云
购买一个阿里云服务器流程
.mobi域名过期多少天可以注册
云服务器在哪里续费
怎么购买腾讯云腾讯云服务器吗