This is a static archive of our old Q&A Site. Please post any new questions and answers at

How to see IP to MAC mapping from a trace


Hi, this is my first post here.

I have a trace I'm analyzing, and I need to extract a list of all ip addresses with the corresponding mac addresses. Or the other way around, either way is fine.

Thank you, Michael

asked 29 Nov '13, 16:26

MichaelSB's gravatar image

accept rate: 0%

One Answer:


You might want to use tshark, rather than wireshark, for this purpose. Assuming Ethernet encapsulation, you could try extracting each source MAC/IP address pair and each destination MAC/IP address pair using something along the lines of:

tshark -r infile.pcap -T fields -e eth.src -e ip.src -e eth.dst -e ip.dst > tmp.txt sort -u tmp.txt > mac_ip.txt

answered 29 Nov '13, 20:42

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

Thanks! Just what I needed. I wonder why this is not available in Wireshark GUI.

(29 Nov '13, 22:07) MichaelSB