650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912151866037884.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912640840054380.jpg "alt=" Image530.5.png "style=" BORDER:0PX;FONT-SIZE:14PX; line-height:1.5; "/>
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.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048054005089.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641371009500.jpg "style=" border:0px;white-space:normal;float:none; "/>
Instance deployment succeeded with the assigned IP address 172.16.1.3
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048071099662.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641542081870.jpg "style=" border:0px;white-space:normal;float:none; "/>
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.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048126095876.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641662016230.jpg "style=" border:0px;white-space:normal;float:none; "/>
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:
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048238020146.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641743042548.jpg "style=" border:0px;white-space:normal;float:none; "/>
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.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048285035706.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641825007014.jpg "style=" border:0px;white-space:normal;float:none; "/>
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
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048212069076.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912641925010744.jpg "style=" border:0px;white-space:normal;float:none; "/>
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.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048425081895.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912642035013495.jpg "style=" border:0px;white-space:normal;float:none; "/>
Shows the current network structure of the host after the CIRROS-VM1 is created.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048555010389.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912642170005831.jpg "style=" border:0px;white-space:normal;float:none; "/>
In the next section we will deploy a second instance to first_local_net and verify connectivity between the two instance.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160822-1471817895244049415.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912642483060943.jpg "alt=" Blob.png "style=" border:0px; "/>
Connect instance to first_local_net-5 minutes a day to play with OpenStack (82)