How to do it...

Let's go through the discovery steps layer by layer. In this layer, we will use Scapy to perform discovery at layers 2, 3, and 4.