In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Version information
Openstack version pike control node host openstack-controller (ubuntu 16.04.5) 172.27.34.37
Compute node host openstack-computer (ubuntu 16.04.5) 172.27.34.38
Mirror cirros-0.3.3-x86_64-disk.img host environment
Esxi 6.5.0
For details of ubuntu installation, please see the full record of Ubuntu16.04.5 installation in lvm mode.
For more information on openstack installation, please see: OpenStack practice (1): build p version of OpenStack by DevStack under Ubuntu16.04
Flat network
A flat network is a network without vlan tagging. Instance in a flat network can communicate with instance on the same network and can span multiple nodes.
Goal: interworking between cirros01 and cirros02. The network topology is as follows:
First, make a mirror image
Upload media cirros-0.3.3-x86_64-disk.img to / tmp directory, image download address: http://download.cirros-cloud.net/
Create an image:
Root@openstack-controller:~# su-stackstack@openstack-controller:~$ source devstack/openrc admin adminstack@openstack-controller:~$ glance image-create-name cirros-cli-file / tmp/cirros-0.3.3-x86_64-disk.img-disk-format qcow2-container-format bare-progress
View the newly created image:
Configure flat network in ML2
1.Neutron uses ML2 as core plugin by default, and the control node and compute node edit the configuration file / etc/neutron/plugins/ml2/ml2_conf.ini of ML2 respectively.
Tenant_network_types = flatmechanism_drivers = linuxbridgetype_drivers = local,flat,vlan,gre,vxlan,geneveflat_networks = defaultphysical_interface_mappings = default:ens192
If you want to configure two flat network, you can make the following settings
Flat_networks = default,flat02physical_interface_mappings = default:ens192,flat02:ens224
two。 Restart the neutron service
Stack@openstack-controller:~$ sudo systemctl restart devstack@q*
Third, create a flat network
Create flat-network01
Create flatnetwork01
The physical network is default, which is consistent with the parameter flat_networks in ml2_conf.ini.
The subnet is 172.16.2.0amp 24, and the address range is 172.16.2.50, 172.16.2.100.
Creation completed
4. Create instance
1. View instance types
Stack@openstack-controller:~$ nova flavor-list
M1.tiny is selected for this article.
two。 Check the hostname and zone
Stack@openstack-controller:~$ nova service-list
3. Create a new cirros01
Start cirros01, node is openstack-controller, network is flatnetwork01
Stack@openstack-controller:~$ nova boot-flavor m1.tiny-image cirros-cli-availability-zone nova:openstack-controller-nic net-name=flatnetwork01 cirros01
4. Create a new cirros02
Start cirros02, node is openstack-computer, network is flatnetwork01
Stack@openstack-controller:~$ nova boot-flavor m1.tiny-image cirros-cli-availability-zone nova:openstack-computer-nic net-name=flatnetwork01 cirros02
5. View the new instance in the console
6. View virtual network card
Control node:
Root@openstack-controller:~# brctl show
Compute nodes:
Control panel view port information
You can see that the virtual network cards contained in Linux bridge01 brq9a198413-3b are tap7d88a7f4-a7 of cirros01 and tap79e963af-dd of cirros02.
5. Testing
Log in to cirros01 and cirros02 mutual ping respectively.
1. Turn on the host network card hybrid mode
Since the test is done on the esxi virtual machine, the Nic needs to turn on promiscuous mode
Promiscuous mode is not supported by default
Edit network card information
Turn on the mixing mode
2.cirros01
The obtained ip is 172.16.2.63
Ping cirros02 is connected.
3.cirros02
The obtained ip is 172.16.2.56
Ping cirros01 is connected.
In addition, because the hybrid mode is enabled for the virtual machine Nic, when the flat network flatnetwork02 of the same network segment is created and the same network segment of flatnetwork01 is created, that is, the vm under flatnetwork01 and flatnetwork02 can be interconnected. If the subnet of flatnetwork02 is different from that of flatnetwork01, for example, 172.16.3.0 vm 24, the vm instances under the two networks are different.
The test results are in line with expectations.
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.