650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471992817686041904.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993264441082308.jpg "style=" border:0px;float:none; "/>
At the beginning of this section we will learn how Linux Bridge implements the various functions of Neutron.
First you need to configure the Linux-bridge mechanism driver.
Neutorn ML2 Plugin The mechanism driver used by default is open vswitch instead of Linux Bridge. Is there any need to study Linux bridge?
My answer is: very necessary!
The reasons are as follows:
Linux bridge technology is very mature and efficient, so many OpenStack solutions in the industry use Linux bridge, such as Rackspace's private cloud.
The Neutron virtual network implemented by Open Vswitch is more complex and difficult to understand, while the Linux bridge scheme is more intuitive. It is easier to understand the Linux bridge scheme before you learn the open Vswitch scheme. The Neutron network can be understood in more depth through the comparison of the two scenarios.
Before going further, let's review the fundamentals of Linux Bridge's virtual switching section.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471992817153008821.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993264872087648.jpg "style=" border:0px;white-space:normal;float:none; "/>
, Br0 is the role of Linux bridge,br0 as a virtual switch, which is responsible for connecting the physical NIC Eth0 and the virtual network card tap device Vnet0/vent1 to the same two-tier network, enabling virtual machine VM1 and VM2, and communication between the virtual machine and the extranet.
For more detailed information on Linux Bridge, please refer to the section "Pre-knowledge-network virtualization".
Configuring Linux-bridge mechanism Driver
To use Linux Bridge in Neutron, you first need to configure Linux-bridge mechanism driver. Neutron uses ML2 as the core plugin by default and is configured in/etc/neutron/neutron.conf.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471992817159088979.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993264975006909.jpg "style=" border:0px;white-space:normal;float:none; "/>
Both the control node and the compute node need to configure the Core_plugin option in their respective neutron.conf.
Then you need to let ML2 use Linux-bridge mechanism driver. The ML2 configuration file is located in/etc/neutron/plugins/ml2/ml2_conf.ini.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471992817361067133.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993265073099461.jpg "style=" border:0px;float:none; "/>
The Mechanism_drivers option indicates the mechanism driver that the current node can use, where it is possible to specify multiple DRIVER,ML2 that are responsible for loading. The above configuration indicates that we only use Linux-bridge driver.
Both the control node and the compute node need to configure the Mechanism_drivers option in their respective ml2_conf.ini.
After the Neutron service starts normally, all nodes will run Neutron-linuxbridge-agent
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471992817408015123.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993265149058572.jpg "style=" border:0px;white-space:normal;float:none; "/>
Linux-bridge mechanism driver is configured, the next section examines the current network status.
With the practice of various Neutron functions, we will see that this network state will evolve and develop continuously.
650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160824-1471993265247090138.jpg "style=" Border:0px;margin:0px;padding:0px;vertical-align: Middle;color:rgb (63,63,63); Font-size:15px;line-height:21.75px;text-align:justify;white-space:normal;height: Auto;background-color:rgb (246,246,246); "/>
Configure Linux-bridge mechanism driver-5 minutes a day to play OpenStack (77)