当前位置:网站首页>Openstack explanation (22) -- neutron plug-in configuration
Openstack explanation (22) -- neutron plug-in configuration
2022-06-11 09:10:00 【Always a teenager】
Today I will continue to introduce Linux Operation and maintenance related knowledge , The main content of this paper is Neutron The plug-in configuration .
One 、ML2 The plug-in configuration
Above openstack Detailed explanation ( The 21st )——Neutron Component installation and configuration in , We did Neutron Configuration of . today , Let's do Neutron Plug in configuration .
First , Let's configure it Neutron Of ml2 plug-in unit , open Neutron ml2 Configuration file for /etc/neutron/plugins/ml2/ml2_conf.ini, Find the file Zhang Hong's [ml2] modular , Add the following configuration under this module :
[ml2]
type_drivers=flat,vlan,gre,vxlan,geneve
mechanism_drivers=linuxbridge,openvswitch
tenant_network_types=
extension_drivers=port_security
The above configurations respectively indicate the use of flat、vlan、gre
、vxlan and geneve this 5 Drives , Use linuxbridge and openvswich Plug in to create a network , Disable private networks (tenant_network_types The argument follows the equals sign with nothing , This means that the private network is disabled ), And boot port security extension driver .
The completed configuration file is as follows :
after , We find [ml2_type_flat] modular , Add the following under this module :
[ml2_type_flat]
flat_networks=public
The above configuration indicates that the public virtual network is configured as flat The Internet .
The completed configuration is as follows :
after , We found... In the configuration file [securitygroup] part , Add the following under this module :
[securitygroup]
enable_ipset=true
Above configuration contents , Means to enable ipset To enhance the efficiency of security group rules , The completed configuration file is as follows :
Last , We carry out orders :
grep "^[a-Z]" /etc/neutron/plugins/ml2/ml2_conf.ini
You can view the effective configurations in the current configuration file , The results are shown below :
such , our ml2 The plug-in is configured .
Two 、LinuxBridge The plug-in configuration
Next , We need to configure LinuxBridge plug-in unit . The configuration file of the plug-in is /etc/neutron/plugins/ml2/linuxbridge_agent.ini, We open the configuration file , stay [linux_bridge] Under module , Add the following :
physical_interface_mapping=public:ens32
The above configuration ,public hinder ens32 Is the actual network card name of the current device , Please correspond to your network card , The above configuration indicates that the public virtual network and the public physical network interface are corresponding .
after , We find [vxlan] modular , Add the following under this module :
enable_vxlan=false
Disable VXLAN Overlay network .
Last , We find [security_group] modular , Add the following under this module :
enable_security_group=true
firewall_driver=neutron.agent.linux.iptables_firewalld.IptablesFirewalldDriver
Indicates that the security group settings are enabled , And configure relevant drivers .
such ,linuxbridge The configuration is complete , We carry out orders :
grep "^[a-Z]" /etc/neutron/plugins/ml2/linuxbridge_agent.ini
It can display the effective part in the current configuration file , The execution result of this command is as follows :
such , our linxubridge Part of the configuration is completed .
3、 ... and 、DHCP Agent configuration
Last , Let's configure DHCP Agent configuration . open /etc/neutron/dhcp_agent.ini, stay [DEFAULT] Module , Find the following parameters , It is revised as follows :
interface_driver=neutron.agent.linux.interface.BridgeInterfaceDriver
dhcp_driver=neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata=false
The above configuration , Respectively means setting the virtual interface driver , Set up DHCP Drive and refresh routes .
The completed configuration file is as follows :
such , our Neutron The plug-in of the node is configured .
Originality is not easy. , Reprint please explain the source :https://blog.csdn.net/weixin_40228200
边栏推荐
猜你喜欢

MSF给正常程序添加后门

typescript高阶特性一 —— 合并类型(&)

报错RuntimeError: BlobReader error: The version of imported blob doesn‘t match graph_transformer

What software is required to process raw format images?

MSF evasion模块的使用

Machine learning notes - convolutional neural network memo list

矩阵求逆操作的复杂度分析(逆矩阵的复杂度分析)

Console you don't know

Matlab learning 8- linear and nonlinear sharpening filtering and nonlinear smoothing filtering of image processing

Strength and appearance Coexist -- an exclusive interview with Liu Yu, a member of Apache pulsar PMC
随机推荐
E. Zoom in and zoom out of X (operator overloading)
Type-C扩展坞自适应供电专利维权案例
Success and failure of ERP software from the perspective of enterprise evaluation
移动端页面使用rem来做适配
PCBA方案定制,开发腕式血压计方案
1493. 删掉一个元素以后全为 1 的最长子数组
远程办公最佳实践及策略
What are the types of garment ERP system in the market?
Talk about reading the source code
Redis source code analysis hash object (z\u hash)
Do you know these advantages of ERP system?
Vagrant mounting pit
Notes on MySQL core points
Textview text size auto fit and textview margin removal
20. 有效的括号
Complete ES6 questions
C language printing heart
Machine learning notes - the story of master kaggle Janio Martinez Bachmann
[C language - Advanced pointer] mining deeper knowledge of pointer
Kubelet error getting node help