Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: Re: [Wireshark-users] find local IP from cap-file

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Sake Blok <sake@xxxxxxxxxx>
Date: Wed, 5 Aug 2009 11:38:50 +0200

On Wed, Aug 05, 2009 at 04:29:46PM +0900, Andrej van der Zee wrote:
> 
>    I received huge cap-files that log multiple network-interfaces in both
>    directions (outgoing and incoming traffic). Unfortunately I have no
>    information about which IPs are bound to the sniffed network-interfaces.
>    Is there any way to retrieve this information from the cap-files? I know I
>    can convert it to text and look at the IPs, but still I cannot say which
>    local IP I was actually sniffing because network traffic is logged in both
>    directions.

If I understand correctly, the tracefile is made on a system with
multiple interfaces and the traffic to and from this system is captured
(so no port mirroring is used to capture data from other systems).

This would mean that every *unicast* packet must be to or from a local
interface. If you do some statistics on the src and dst mac-addresses
you will be able to tell which mac-addresses are always present. You can
then check which IP addresses are used for these mac-addresses.

Beware, if all traffic from this system is to non-directly attached
systems, you will see the mac of the router also in each packet, but
then you should see many different IP-addresses for that mac, so you
filter them out...

It's a bit of work, but it should work :-)

Cheers,
     Sake

  • Follow-Ups:
    • Re: [Wireshark-users] find local IP from cap-file
      • From: Andrej van der Zee
  • References:
    • [Wireshark-users] find local IP from cap-file
      • From: Andrej van der Zee
  • Prev by Date: Re: [Wireshark-users] find local IP from cap-file
  • Next by Date: Re: [Wireshark-users] find local IP from cap-file
  • Previous by thread: Re: [Wireshark-users] find local IP from cap-file
  • Next by thread: Re: [Wireshark-users] find local IP from cap-file
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation