摘要 |
A method and an apparatus for avoiding the allocation of a duplicate IP address are provided to prevent the allocation of a duplicate IP address efficiently by detecting whether an IP address is used under the circumstance where a firewall exists. A first client broadcasts a DHCP discovery packet to receive an IP address(S500), and a sever broadcasts an ARP request packet to check whether or not a first IP address to be allocated is used by another client in a network(S505). If a second client who has already used the first IP address receives an ARP replay packet responding to the ARP request packet, the sever broadcasts the DHCP discovery packet again(S515). After selecting a new IP address to be allocated, the sever broadcasts the ARP request packet to check over whether or not the newly selected second IP address is used by another client in a network(S520). If the ARP response is not received for a certain time, the sever transmits a DHCP providing packet including the second IP address(S525). The first client broadcasts the DHCP request packet to use the second IP address(S530). The sever transmits a DHCP acknowledge packet, which allows the use of the second IP address, to the first client(S535).
|