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

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

MichaelSB
16114
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 ♦♦
9.4k1038142
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×178
×157
×30
×4

question asked: 29 Nov '13, 16:26

question was seen: 4,620 times

last updated: 29 Nov '13, 22:07

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