Create floating IP-5 minutes a day to play with OpenStack (106)

Source: Internet
Author: User

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803570604063398.jpg "/>

Let's review the knowledge we discussed earlier.

When the tenant network is connected to the Neutron router, router is typically used as the default gateway.
When the router receives a packet of instance and forwards it to the external network:

1. Router will modify the source address of the package to its own extranet address, which ensures that packets are forwarded to the extranet and can be returned from the external network.
2. Router modifies the returned packet and forwards it to the real instance.

This behavior is known as Source NAT.


If you need to access instance directly from the extranet, you can take advantage of the floating IP.
Here are the facts about what floating IP must know:

1. Floating IP provides a static NAT function to establish a one-to-one mapping between the extranet IP and the instance tenant network IP.
2. The floating IP is configured on the extranet interface that router provides the gateway, not instance.
3. Router modifies the source or destination address of the packet according to the direction of the communication.


Below we study floating IP in depth through experiments.
Click the Access & Security menu, Compute, Project, to open the floating IPs tab.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803583313024492.jpg "/>

Click on the "Allocate IP to Project" button.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803584072008504.jpg "/>

Floating IP Pool is ext_net, click the "Allocate IP" button.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803585497061037.jpg "/>

An IP 10.10.10.3 was successfully assigned from the Pool. Let's assign it to CIRROR-VM3 and click on the "Associate" button.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803585701089700.jpg "/>

Select Cirror-vm3 in the drop-down list and click on the "Associate" button.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803585925063163.jpg "/>

The assignment succeeds, and the floating IP 10.10.10.3 already corresponds to the CIRROS-VM3 tenant IP 172.16.101.3.

In the next section we will look at how the underlying network has changed and how the floating IP works.


650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161030-1477803586106049258.jpg "alt=" Blob.png "/>

Create floating IP-5 minutes a day to play with OpenStack (106)

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.