650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617422054388.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772721238029539.jpg "style=" border:0px;float:none; "/>
The flat network is a web without tag, requiring the host's physical NIC to connect directly to the Linux bridge, which means:
each flat network will have a single physical network card.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617365090245.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722046096179.jpg "style=" border:0px;white-space:normal;float:none; "/>
The Eth1 bridge is connected to Brqxxx and provides flat network for instance. If you need to create multiple flat network, you have to prepare multiple physical network cards, as shown in.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617400097277.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722252093579.jpg "style=" border:0px;white-space:normal;float:none; "/>
Next, we discuss how to configure the flat network.
enable flat network in the ML2 configuration
Set flat network related parameters in/etc/neutron/plugins/ml2/ml2_conf.ini.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617462012345.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722550096455.jpg "style=" border:0px;float:none; "/>
Tenant_network_types = Flat
Specifies that a normal user creates a network type of flat. It is important to note that because the flat network corresponds to the physical NIC one by one, the tenant network generally does not use flat, which is just an example.
Then we need to indicate the correspondence between the flat network and the physical NIC.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617522026432.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722625035668.jpg "style=" border:0px;white-space:normal;float:none; "/>
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772617535038901.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722718092762.jpg "style=" border:0px;white-space:normal;float:none; "/>
As shown above: 1. A flat network is defined by Flat_networks in [Ml2_type_flat], and the label is "Default". 2. In [Linux_bridge], the physical_interface_mappings indicates that the physical NIC corresponding to default is eth1.
understand the relationship between label and EthX
The label is the identity of the flat network and you need to specify a label when creating flat (shown later). The name of the label can be any string, as long as you make sure that the label in each node Ml2_conf.ini is the same name.
The corresponding relationship between the label and the physical NIC in each node may be different. This is because each node can use a different physical NIC to connect the instance to the flat network.
For example, for flat network with label "Default", node A may use Eth1, which is configured as:
Physical_interface_mappings = Default:eth1
Node B may use Eth2, which is configured as:
Physical_interface_mappings = Default:eth2
supports multiple flat
If you are creating multiple flat networks, you need to define multiple labels, separate them with commas, and, of course, use multiple physical network cards, as shown here:
[Ml2_type_flat]
Flat_networks = Flat1,flat2
[Linux_bridge]
Physical_interface_mappings = Flat1:eth1,flat2:eth2
Ready, the next section will create a flat network.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160822-1471817895244049415.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160913-1473772722832037059.jpg "alt=" Blob.png "style=" border:0px; "/>
Flat network principle and configuration-5 minutes a day to play OpenStack (86)