The application discloses an
IP address management method and device. The method comprises the following steps: in response to a request of a
client for applying for an
IP address, determining an allocable
IP address through a target bidirectional
linked list corresponding to a
target array, wherein the
target array stores
data objects of each IP address in an IP
address pool, the target bidirectional
linked list stores
data objects of unallocated IP addresses, and the
data objects comprise a host number of the IP address, an allocation state and
linked list pointer information; allocating the IP address to the
client, adjusting the allocation state in the corresponding data object, and unbinding the data object from the target bidirectional linked
list; in response to a request of the
client for returning the IP address, determining the data object of the IP address in the
target array by taking the host number of the IP address as an array index; adjusting the allocation state in the data object, and adding the data object to the target bidirectional linked
list. The application solves the technical problem that the allocation and
recovery management of IP addresses in the related art cause large performance overhead.