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

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%

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

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 29 Nov '13, 16:26

question was seen: 4,758 times

last updated: 29 Nov '13, 22:07

p​o​w​e​r​e​d by O​S​Q​A