<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MAC Address on Support Tools</title><link>https://support.tools/tags/mac-address/</link><description>Recent content in MAC Address on Support Tools</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 27 Oct 2026 00:00:00 -0500</lastBuildDate><atom:link href="https://support.tools/tags/mac-address/index.xml" rel="self" type="application/rss+xml"/><item><title>tcpdump: Filter Packets by MAC Address (ether host)</title><link>https://support.tools/post/filtering-mac-addresses-tcpdump-guide/</link><pubDate>Fri, 13 Oct 2023 10:45:00 -0500</pubDate><guid>https://support.tools/post/filtering-mac-addresses-tcpdump-guide/</guid><description>&lt;h2 id="quick-answer"&gt;Quick answer&lt;/h2&gt;&#10;&lt;p&gt;Use the &lt;code&gt;ether&lt;/code&gt; qualifier from the pcap filter language. Add &lt;code&gt;-e&lt;/code&gt; so tcpdump prints the source and destination MAC on every line:&lt;/p&gt;&#10;&lt;div class="code-block" data-copy-label="Copy bash code, block 1"&gt;&#10; &lt;div class="code-block-header" data-pagefind-ignore&gt;&lt;span class="code-block-lang"&gt;bash&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Frames to or from a MAC address (either direction)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tcpdump -i eth0 -e ether host d2:94:51:91:71:d7&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Only frames sent by that MAC&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tcpdump -i eth0 -e ether src d2:94:51:91:71:d7&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Only frames sent to that MAC&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tcpdump -i eth0 -e ether dst d2:94:51:91:71:d7&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Exclude a MAC, or combine it with other filters&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tcpdump -i eth0 -e &lt;span class="s1"&gt;&amp;#39;not ether host d2:94:51:91:71:d7&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tcpdump -i eth0 -e &lt;span class="s1"&gt;&amp;#39;ether src d2:94:51:91:71:d7 and tcp port 443&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The address can be written as &lt;code&gt;xx:xx:xx:xx:xx:xx&lt;/code&gt;, &lt;code&gt;xx-xx-xx-xx-xx-xx&lt;/code&gt;, &lt;code&gt;xx.xx.xx.xx.xx.xx&lt;/code&gt;, &lt;code&gt;xxxx.xxxx.xxxx&lt;/code&gt;, or &lt;code&gt;xxxxxxxxxxxx&lt;/code&gt;, or as a name from &lt;code&gt;/etc/ethers&lt;/code&gt; (see &lt;code&gt;man 7 pcap-filter&lt;/code&gt;).&lt;/p&gt;</description></item></channel></rss>