IP source guard is a security feature that restricts IP traffic on non routed, Layer 2 interfaces by filtering traffic based on the DHCP snooping binding database and on manually configured IP source bindings. You can use IP source guard to prevent traffic attacks caused when a host tries to use the IP address of its neighbor.You have to configure source guard only on the server farm switch.
For the further details and configuration follow the setps :
1) configure terminal
Enter global configuration mode.
2) interface interface-id
Enter interface configuration mode, and specify the interface to be configured.
3) ip verify source or ip verify source port-security
Enable IP source guard with source IP address filtering.
Enable IP source guard with source IP and MAC address filtering.
4) exit
Return to global configuration mode.
5) ip source binding mac-address vlan vlan-id ip-address inteface interface-id
Add a static IP source binding. Enter this command for each static binding.
6) end
Return to privileged EXEC mode.
7) show ip verify source [interface interface-id]
Display the IP source guard configuration for all interfaces or for a specific interface.
8) show ip source binding [ip-address] [mac-address] [dhcp-snooping | static] [inteface interface-id] [vlan vlan-id]
Display the IP source bindings on the switch, on a specific VLAN, or on a specific interface.
9) copy running-config startup-config
(Optional) Save your entries in the configuration file.