A method and an apparatus for defending against Address Resolution
Protocol (ARP) spoofing attacks are disclosed. The method includes: when
an ARP entry is updatable, judging whether the MAC address of a received
ARP message is the same as the MAC address in the ARP entry, where the
ARP message has the same Internet Protocol (IP) address as the ARP entry;
if the MAC addresses are different, determining the received ARP message
as an ambiguous ARP message and starting an ARP verification process, or
else starting no ARP verification. In this way, when no address spoofing
attacks occur, no verification messages are generated, and thus reducing
signaling interactions and saving network resources; besides, spooling
attacks possibly happening at any time are avoided, which effectively
prevents address spoofing attacks via random scanning and protects the
normal application of the real host.