IP Source Guard (IPSG) implements source IP address filtering based on Layer 2 interfaces. IPSG uses a binding table to maintain the mapping between information such as IP addresses and MAC addresses of hosts on the network. By comparing packet information with the binding table, IPSG prevents malicious hosts from using forged IP addresses to impersonate authorized users. In addition, IPSG prevents unauthorized hosts from accessing or attacking networks using forged IP addresses.