Got it

Floating IP

738 0 2 0 0

Hello, there!

This topic describes floating IP.


1. Why floating IP?

Now there is a scenario where you deploy a web application on a Linux machine that runs on tomcat with IP 115.239.100.120 on the Linux adapter.


This is roughly the following deployment relationship:

102404gfmexr1i4u4fkz1k.jpg?Linux1.jpg


Users can access the application by entering an IP address, but sometimes the service goes down for some reason. So the developers figured out a way to deploy the same application on another Linux, so that one service went down, the other one went up, and the architecture looked like this:


102415mzwvzowzzviyojv7.jpg?Linux2.jpg


If a user cannot access 100.120, they can access 100.121, but this introduces the problem that users need to remember two IPs, which is inconvenient!

So we need floating IP.



2. What is the floating IP?


Above, we set up two identical services, but the user needs to remember two IP, which is too troublesome, so we can adopt another strategy.

We are adding an IP to one of the machines, allowing users to access this IP, a network card can add more than one

102423d00gfgzcmswgms07.jpg?Linux3.jpg


For example, we add a 100.80 IP to the 100.120 host, and the user accesses the 115.239.100.80 IP. If the service of this machine fails, we transfer this IP to the 100.121 machine, so that for the user, they always access only one IP.


In the above scenario: 115.239.100.80 this IP is floating IP, which will be transferred to another host that can provide the same service when the host service goes down.


As for the users, they always feel that the service is normal.


Translated from: https://blog.csdn.net/readiay/article/details/53538085.


Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.