Enable local network in ML2-5 minutes a day to play OpenStack (79)

Source: Internet
Author: User

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160827-1472301975367021066.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160827-1472302025322063019.jpg "style=" border:0px;float:none; "/>

Before completing a series of preparations, this section begins with the creation of a variety of neutorn networks, first of all we discuss the local network.

The local network is characterized by no connection to any of the host's physical network cards, and no VLAN ID associated with it.

For each local NETWROK,ML2 Linux-bridge will create a bridge,instance tap device that will connect to bridge. The instance in the same local network will be connected to the same bridge so that the instance can communicate.

Because bridge is not connected to the physical NIC, instance cannot communicate with the network outside the host. Also, because each local network has its own bridge,bridge, there is no connectivity between the two local networks, even if they are on the same host.

is an example of the local network:

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160827-1472302040881078569.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160827-1472302040881078569.png "alt=" Image525.png "style=" border:0px; "/>

      Two local networks were created, corresponding to two bridges brqxxxx and brqyyyy respectively.

    • vm0 And VM1 are connected to brqxxxx through Tap0 and Tap1.

    • vm2 Connect to Brqyyyy via Tap0 and TAP2.

    • vm0 With VM1 in the same local network, they can communicate with each other.

    • vm2 In another local network, VM2 cannot communicate with VM0 and VM1 because Brqxxxx and brqyyyy are not connected.

Next we will implement the local network step-by-step.

enable local network in the ML2 configuration

Make sure that ML2 has loaded the local type driver before you create the local network. 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-20160827-1472301962019009436.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160827-1472302026023002224.jpg "style=" border:0px;white-space:normal;float:none; "/>

Type_drivers tells ML2 to load all 5 types of network type driver.

Type_drivers = Local,flat,vlan,gre,vxlan

This allows us to create all types of networks (although only the local network is created in this section).

Both the normal user and the admin can create the network through the CLI or the Web GUI, but only Amdin can specify the type of the network, so you need to use Tenant_network_types to tell ML2 when the ordinary user in their own tenant (Project) Create When you build a network, which type of network is created by default, where type is local.

Tenant_network_types = Local

Tenant_network_types can specify multiple types, such as:

Tenant_network_types = VLAN, local

The function is to create a VLAN network and create a local network when no VLANs are created (such as when the VLAN ID is exhausted).

When the configuration file has changed, the Neutron related service needs to be restarted to make it effective.


The next section creates the first local 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-20160827-1472302026117049143.jpg "alt=" Blob.png "style=" border:0px; "/>

Enable local network in ML2-5 minutes a day to play OpenStack (79)

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.