650) this.width=650; "style=" Float:none; "title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475154934603084200.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475155242711088971.jpg "/>
In the previous section we learned the principle of Neutron Vlan Network, and today we discuss how to enable it in the ML2 configuration.
The VLAN network related parameters are set first in/etc/neutron/plugins/ml2/ml2_conf.ini.
650) this.width=650; "style=" White-space:normal;float:none; "title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475154933922035684.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475155246396069189.jpg "/>
Tenant_network_types = VLAN
Specifies that a normal user creates a network type of VLAN.
Then specify the range of VLANs:
650) this.width=650; "style=" White-space:normal;float:none; "title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475154933932059230.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475155246496083388.jpg "/>
The above configuration defines the label as “default” The range of VLAN Network,vlan IDs is 3001-4000. This range is for ordinary users to create a network within their own tenants. Because a normal user does not specify a VLAN when creating a network Id,neutron will automatically take the value from this range in order.
For admin There is no VLAN ID limit, admin can create VLAN network with ID range 1-4094.
Next, you need to indicate the corresponding relationship between the VLAN network and the physical NIC:
650) this.width=650; "style=" White-space:normal;float:none; "title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475154934052022262.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160929-1475155246627042817.jpg "/>
As shown above: lable “default”,[linux_bridge defined in [Ml2_type_vlan] indicates that the physical NIC corresponding to default is eth1.
The label here is the same as the label in the previous flat network, just an identity, which can be any string.
The configuration is complete and the Neutron service is restarted after it takes effect.
The next section creates the first VLAN 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-20160929-1475155246699011444.jpg "alt=" Blob.png "/>
Configuring VLANs in ML2 network-5 minutes a day play with OpenStack (93)