Connect instance to first_local_net-5 minutes a day to play with OpenStack (82)

Source: Internet
Author: User

The previous section first_local_net is ready, and the following creates the instance and connects it to the network.

connect the instance to the First_local_net

Launch a instance, select First_local_net Network on the "Networking" tab page.

Instance deployment succeeded with the assigned IP address 172.16.1.3

what has changed in the underlying network?

For instance "Cirros-vm1", Neutron creates a port in subnet, assigns IP and MAC addresses, and assigns port to CIRROS-VM1.

As shown in the port list, a port "(fa7e090e-a29c)" is added and the IP is 172.16.1.3. Click the port name to view your MAC information:

When CIRROS-VM1 is started: 1. The neutron-linuxbridge-agent on the host will create a tap device based on the port information and connect to bridge 2 where the local network is located. At the same time, the tap maps to the CIRROS-VM1 virtual network card, which is interface (VIF).

Below we verify the above information:

CIRROS-VM1 deployed to the control node to view the configuration of bridge through Brctl show.

You can see that a new tap device is connected on bridge brqbb9b6d21-c6 TAPFA7E090E-A2 the name tapfa7e090e-a2 corresponds to Port "(fa7e090e-a29c)".

The virtual machine instance-00000001 shown in the Virsh list is "Cirros-vm1" and is named differently and should be noted. Check CIRROS-VM1 configuration with Virsh Edit command to confirm that VIF is TAPFA7E090E-A2

In addition, VIF's MAC address is fa:16:3e:c1:66:a5, and this data is taken from Port "(fa7e090e-a29c)".

Ifconfig is performed in Cirros-vm1, and the MAC address confirms that eth0 corresponds to TAPFA7E090E-A2.

Shows the current network structure of the host after the CIRROS-VM1 is created.

In the next section we will deploy a second instance to first_local_net and verify connectivity between the two instance.

Connect instance to first_local_net-5 minutes a day to play with OpenStack (82)

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.