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)