Patent ID: 8667048

Claim:
A method for managing Internet protocol (IP) addresses in a network, the method comprising steps of: (a) driving at least one active server of servers and at least one virtual machine of the active server respectively to log in a shared resource in the network, wherein the servers and a plurality of virtual machines of the servers have different assigned IP addresses; (b) looking for a recording unit of the shared resource according to a first mark of the active server; (c) a granted processing unit obtaining access right of the recording unit, wherein the granted processing unit is a component of a group consisting of the active server and the at least one virtual machine of the active server; (d) the granted processing unit recording the assigned IP address thereof in the recording unit, and restricting others of the group except the granted processing unit from accessing the recording unit; (e) determining whether all of the assigned IP addresses of the active server and the at least one virtual machine of the group have been recorded in the recording unit, and releasing the access right of the recording unit; (f) if not all of the assigned IP addresses of the active server and the at least one virtual machine of the group have been recorded in the recording unit, a new granted processing unit of the group obtaining the access right of the recording unit, and repeating the steps (d) and (e); and (g) if all of the assigned IP addresses of the active server and the at least one virtual machine of the group have been recorded in the recording unit, transmitting the assigned IP addresses recorded in the recording unit to a storage module in the network.