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 management,

Now Intel® Core™ i7-8700 Hexa-Core Coffee Lake Servers available

                   Intel® Core™ i7-8700 Hexa-Core Coffee Lake incl. Hyper-Threading Technology Servers are available at www.vcclhosting.com and www.vcclcloud.com .         High Speed and extra Storage space with Hyper threading technology gives extra powerful speedy server ,Start today and power up your business with VCCL Dedicated Servers. Dedicated Root Server Pricing SERVER CPU RAM DISK LOCATION PRICING ORDER DS1-Intel®Core™i7-6700 Quad-Core Skylake 32 GB DDR4 SSD 2x500 GB EUROPE $125/mo CONFIGURE DS2-Intel®Core™i7-6700 Quad-Core Skylake 32 GB DDR4 HHD 2x4 TB EUROPE $145/mo CONFIGURE DS3-Intel®Core™i7-6700 Quad-Core Skylake 64 GB DDR4 SSD 2x 250 GB EUROPE $165/mo CONFIGURE DS4-Intel®Core™i7-6700 Quad-Core Skylake 64 GB DDR4 HHD 2x 2 TB EUROPE $185/mo CONFIGURE DS5-AMD Ryzen 7 1700X Quad-Core "Summit Ridge" 64 GB DDR4 SSD 2x 500 GB EUROPE $199/mo CONFIGURE DS6-Intel® Xeon® E3-1270 v3 Quad-Core Haswell 32 GB DDR4 HHD 4x 10 TB EUROPE $ 145/m

How to SSH to the VM instance in OpenStack

Alright, so now you have purchased Dedicated Server at www.vcclhosting.com and OpenStack installed and running. Now what? Of course the first thing you want to do is create a Virtual Machine Instance you can play with. But hold your ponies little boy, you might want to read on first, as you might not be able to connect to any of your VMs if you did not read carefully! Common Mistake! It is a common behavior of a new OpenStack user upon logging into dashboard to create a new instance via the menu w/o setting up a new Key Pair first. If you didn't attach a key pair in your VM instance, you will not be able to connect to it! So the first thing you might want to do is create a new Key Pair. This is basically a PEM file that you are going to use in able to authenticate to the server instead of shoving your usename/password in the SSH console. Wtf is PEM? PEM is a file format that may consist of a certificate (aka. public key), a private key or indeed both concatenated to