5.0 Security Fundamentals
5.7 Layer 2 security features in IOS devices
3. DHCP Snooping:
kotlinCopy code ip dhcp snooping ip dhcp snooping vlan 1-100 interface FastEthernet0/1 ip dhcp snooping trust
Each of the above commands are explained below:
ip dhcp snooping: Enables DHCP snooping globally on the switch.
ip dhcp snooping vlan 1-100: Specifies the VLANs on which DHCP snooping is enabled.
interface FastEthernet0/1 ip dhcp snooping trust: Specifies that DHCP packets on this interface are trusted, and are not subject to DHCP snooping.
4. IP Source Guard:
kotlinCopy code interface FastEthernet0/1 ip verify source
interface FastEthernet0/1 ip verify source: Enables IP source guard on the interface. This feature verifies the source IP address of incoming packets and discards any that do not match a valid IP-MAC address binding.