To set-up IP source guard, configure DHCP snooping on your switch. You can specify the VLAN as well;
You can verify its working with the following command;
You may need to bring an interface down then up sometimes, if the interface is being denied.
Just make sure that your uplink interfaces (in my case my Gi interfaces) are trusted and depending on your setup that end host interfaces are untrusted