Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a floating IP

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to create floating IP, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

When the tenant network is connected to the Neutron router, router is usually used as the default gateway.

When router receives a packet from instance and forwards it to the public network:

1. Router modifies the source address of the packet to its own public network address to ensure that the packet is forwarded to the public network and can be returned from the public network.

2. Router modifies the returned packet and forwards it to the real instance.

This behavior is called Source NAT.

If you need to access instance directly from the external network, you can take advantage of floating IP.

Here are the facts you must know about floating IP:

1. Floating IP provides static NAT function to establish an one-to-one mapping between public network IP and instance tenant network IP.

2. Floating IP is configured on the public network interface where router provides the gateway, not in instance.

3. Router modifies the source or destination address of the packet according to the direction of the communication.

Let's learn more about floating IP through experiments.

Click Project-> Compute-> Access & Security menu to open the Floating IPs tab.

Click the Allocate IP To Project button.

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

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

Select cirror-vm3 from the drop-down list and click the "Associate" button.

Assigned successfully, floating IP 10.10.10.3 already corresponds to IP 172.16.101.3, the tenant of cirros-vm3.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report