Turn on Port security .ncm-templatePort Security with Violation {Shutdown} , MAC-Sticky and Maximum 2. This will turn on Port security on selected interface with violation mode shutdown and MAC sticky and there will be 2 secure MAC-address on that particular interface.