In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to enable local network in ML2, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The editor will create a variety of Neutorn networks, and we will first discuss local network.
The characteristic of local network is that it is not connected to any physical network card of the host, nor is it associated with any VLAN ID.
A bridge,instance is created for each local netwrok,ML2 linux-bridge and the tap device is connected to the bridge. Instance located in the same local network will connect to the same bridge so that the instance can communicate with each other.
Because bridge is not connected to the physical network card, instance cannot communicate with a network other than the host. At the same time, because each local network has its own bridge,bridge, there is no connection between the two local network, even if they are on the same host.
An example of local network:
Two local network are created, corresponding to two bridges, brqXXXX and brqYYYY.
VM0 and VM1 connect to brqXXXX through tap0 and tap1.
VM2 connects to brqYYYY through tap2.
VM0 and VM1 are in the same local network and can communicate with each other.
VM2 is located in another local network, and because brqXXXX and brqYYYY are not connected, VM2 cannot communicate with VM0 and VM1.
Next we will implement local network step by step.
Enable local network in ML2 configuration
Before creating a local network, make sure that ML2 has loaded local type driver. The configuration file for ML2 is located in / etc/neutron/plugins/ml2/ml2_conf.ini.
Type_drivers tells ML2 to load type driver for all five networks.
Type_drivers = local,flat,vlan,gre,vxlan
In this way we can create all types of networks (although only local networks are created in this section).
Both ordinary users and admin can create a network through CLI or Web GUI, but only amdin can specify the type of the network, so you need to use tenant_network_types to tell ML2 what kind of type network is created by default when ordinary users create a network in their Tenant (Project), where type is local.
Tenant_network_types = local
Tenant_network_types can specify a variety of type, such as:
Tenant_network_types = vlan, local
Its purpose is to create a vlan network first, and then create a local network when there is no vlan to create (such as running out of vlan id).
When the configuration file changes, you need to restart the Neutron-related services to take effect.
On how to enable local network in ML2 to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.