Question: is dhcp layer 2 or 3?
Answer: DHCP is a Layer 7 (Application Layer) protocol and is used in networks to configure network parameters dynamically.