Skip to main content

What is the Difference between Floating IP and private IP

Private IP Address

A private IP address is assigned to an instance's network-interface by the DHCP server. The address is visible from within the instance by using a command like “ip a”. The address is typically part of a private network and is used for communication between instances in the same broadcast domain via virtual switch (L2 agent on each compute node). It can also be accessible from instances in other private networks via virtual router (L3 agent).

Floating IP Address

A floating IP address is a service provided by Neutron. It's not using any DHCP service or being set statically within the guest. As a matter of fact the guest's operating system has no idea that it was assigned a floating IP address. The delivery of packets to the interface with the assigned floating address is the responsibility of Neutron's L3 agent. Instances with an assigned floating IP address can be accessed from the public network by the floating IP.

A floating IP address and a private IP address can be used at the same time on a single network-interface. The private IP address is likely to be used for accessing the instance by other instances in private networks while the floating IP address would be used for accessing the instance from public networks. How to configure floating IP range describes Floating IP range document.

Example

A setup with 2 compute nodes, one Neutron controller (where the Neutron service, dhcp agent and l3 agent run), a physical router and a user. Let the physical subnet be 10.0.0.0/24. On the compute nodes instances are running using the private IP range 192.168.1.0/24. One of the instances is a webserver that should be reachable from a public network. Network outline: 

As shown in the picture above, the webserver is running on an instance with private IP 192.168.1.2. A User from network 10.0.0.0/24 wants to access the webserver but he's not part of private network 192.168.1.0/24. Using floating IP address 10.0.0.100 enables the user to fetch webpages from the webserver. The destination address is translated by the NAT table (iptables) within the virtual router deployed on the controller.

Comments

Post a Comment

Popular posts from this blog

Know more about Nich Cloud ..

Overview In this article we will take a step back from my typical technical discussions and how-to guides to think about the path that lies ahead of us, in our industry. Today we have a very polarizing environment, similar in fact to the US political system.  On one side you have extremely customized on-premise environments that serve specific purpose or business niches but on the whole are hard, if not impossible to maintain and very costly. On the other side you have generic public cloud, infrastructure that always works (well almost, nothing is perfect), scales and is available at click of a button with predictable pricing structure but doesn’t fit specific purpose by default. The industry has for many years recognized these worlds were growing further apart and defined the solution as hybrid cloud management to manage them or even bridge the worlds. But gluing two polarized worlds together was only ever destined to fail. Hybrid cloud, which often drags with it the managem...

How to calculate server requirement for your website.

Hardware requirements: Minimal hardware Verify that your hardware meets the requirements of the selected version of the system. Depending on your needs you might manage with less system resources than recommended in the table below. However, most users risk being unpleasantly surprised if they ignore these suggestions. As can be seen, it is possible to run a graphical desktop environment on older or low-end computers. In this case, we recommend installing a desktop environment that uses less resources than KDE; XFCE seems a good choice. Calculate Directory Server CPU i686 or newer (Intel Pentium Pro and higher, AMD Athlon and above) RAM 256 MB Disk Space 4 GB Swap usually not less than the RAM size Calculate Linux Desktop KDE CPU i686 or newer (Intel Pentium Pro and higher, AMD Athlon and above) RAM 512 MB Disk Space 7 GB Swap usually not less than the RAM size Calculate Linux Desktop XFCE CPU i686 or newer (Intel Pentium Pro and higher, AMD Athlon and ab...