When talking about Ethernet filters, we refer to layer 2 filters that are MAC address-based filters. In this recipe, we will refer to these filters and what we can do with them.
Configuring Ethernet filters
Getting ready
The basic layer 2 filters are:
- ether host <Ethernet host>: To get the Ethernet address
- ether dst <Ethernet host>: To get the Ethernet destination address
- ether src <Ethernet host>: To get the Ethernet source address
- ether broadcast: To capture all Ethernet broadcast packets
- ether multicast: To capture all Ethernet multicast packets
- ether proto <protocol>: To filter only the protocol type indicated in the protocol identifier
- vlan <vlan_id>: To pass only packets from a specific...