Configuring VLANs in ML2 network-5 minutes a day play with OpenStack (93)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.