Posted: . At: 10:50 AM. This was 5 months ago. Post ID: 18796
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to filter by MAC address in Wireshark.


  1. Filter by IP address
  2. IP protocol numbers

Filtering by MAC address in Wireshark is very useful, this is how you may show all network packets from a certain device.

This is shown below, this is a simple filter.

wlan.sa == e0:b9:e5:6e:d3:69

And this is another example.

wlan.sa == 78:45:61:93:4b:56

A very useful Wireshark trick.

Filter by IP address

Another one is to filter by a certain IP address, this is how to do this.

ip.addr == 192.168.1.1

To filter by the source IP, use this filter.

ip.src == 192.168.1.5

Filtering for TCP packets requires a different approach. This is the filter you would use.

ip.proto == 6

To filter for a destination MAC address using Wireshark, use this filter. This filters all packets destined for the gateway device on the network in my case.

eth.dst == c8:14:51:5f:a9:47

To filter all packets coming from a certain MAC address, use this filter.

eth.src == fc:34:97:a5:bc:7e

IP protocol numbers

Wireshark uses protocol numbers to identify different network layer protocols when analyzing captured packets. Here is a list of common IP protocol numbers and their corresponding protocols:

Protocol NumberProtocol
1ICMP
6TCP
17UDP
41IPv6
50ESP (Encapsulating Security Payload)
51AH (Authentication Header)
89OSPF (Open Shortest Path First)
132SCTP (Stream Control Transmission Protocol)

Please note that this is not an exhaustive list, and there are many other IP protocols with assigned numbers. The above list includes some of the commonly encountered protocols. You can refer to the IANA Protocol Numbers for a comprehensive list of protocol numbers and their assignments.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.