In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to connect instance to first_local_net. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Let's create an instance and connect it to the network.
Connect instance to first_local_net
Launch an instance, select the first_local_net network on the "Networking" tab page.
Instance was successfully deployed with an assigned IP address of 172.16.1.3
Underlying network change
For instance "cirros-vm1", Neutron creates a port in subnet, assigns IP and MAC addresses, and assigns port to cirros-vm1.
A port "(fa7e090e-a29c)" is added to the port list, and the IP is 172.16.1.3. Click the port name to view the MAC information:
When cirros-vm1 starts: 1. The neutron-linuxbridge-agent on the host creates a tap device based on port information and connects to bridge 2. 0, where the local network is located. At the same time, the tap will be mapped to the virtual network card of cirros-vm1, namely virtual interface (VIF).
Let's verify the above information:
Cirros-vm1 is deployed to the control node to view the configuration of bridge through brctl show.
You can see that a new tap device, tapfa7e090e-a2, is connected to the bridge brqbb9b6d21-c6. Tapfa7e090e-a2 corresponds to port "(fa7e090e-a29c)" from the name.
The virtual machine instance-00000001 shown in virsh list is "cirros-vm1", which is named differently, which should be noted. Check the configuration of cirros-vm1 through the virsh edit command and confirm that VIF is tapfa7e090e-a2
In addition, the MAC address of VIF is fa:16:3e:c1:66:a5, and this data is taken from port "(fa7e090e-a29c)".
Execute ifconfig in cirros-vm1, and confirm that eth0 corresponds to tapfa7e090e-a2 through the MAC address.
After reading the above, do you have any further understanding of how to connect instance to first_local_net? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.