DHCP snooping
[!NOTE] Enables the dhcp snooping globally
ip dhcp snooping
[!NOTE] Make dhcp snooping on a vlan
ip dhcp snooping vlan *vlan-number*
[!NOTE] Makes a port trusted (make only the uplink ports)
int g0/0/0
ip dhcp snooping trust
[!NOTE] This is needed on all switches (not relay agents) to not flag with dhcp option 82
no ip dhcp snooping information option
[!NOTE] Limit how much dhcp packet can be transfered from an untrusted port (if more than the limit, the port goes to err-disable)
ip dhcp snooping limit rate *packets-per-second*
[!NOTE] Err-disable recovery
errdisable recovery cause dhcp-rate-limit