Ask Your Question
-1

How to capture packets between 2 IP’s

asked 2021-08-09 02:27:56 +0000

GarryB gravatar image

I am trying to capture date between to devices on the same network. How do I go about

edit retag flag offensive close merge delete

Comments

Not much to go on in your question. PLease elaborate more on what you want to achieve and what your network looks like. (What hosts? what sort of network? switches? routers?)

hugo.vanderkooij gravatar imagehugo.vanderkooij ( 2021-08-09 07:19:39 +0000 )edit

Sorry about the detail

I wish to capture the traffic between the PC I am on (192.168.0.113) and the Router (192.168.0.1) with two Switches in between.

Cheers GarryB

GarryB gravatar imageGarryB ( 2021-08-10 00:40:48 +0000 )edit

3 Answers

Sort by » oldest newest most voted
0

answered 2021-08-10 06:23:03 +0000

atux_null gravatar image

since it is a switched network you might get into issues. Best solution is to connect directly to the router or mirror on one port of the switch the rest of the ports. Then get to the filters of the wireshark and type

ip.addr == 192.168.1.38 && ip.addr==192.168.1.1

192.168.1.1 is the router IP and 192.168.1.38 is the PC IP.

edit flag offensive delete link more
0

answered 2021-08-09 07:34:10 +0000

grahamb gravatar image

As you're most likely capturing on a switched network capturing on two other devices isn't trivial, see the Wiki page on Ethernet Capture setup, particularly the sections on switched networks.

edit flag offensive delete link more
0

answered 2021-08-09 06:23:34 +0000

7ACE gravatar image

Try to capture on host A,then apply a capture filter for host B.

host xx.xx.xx.xx

or link : https://gitlab.com/wireshark/wireshar...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-08-09 02:27:56 +0000

Seen: 124 times

Last updated: Aug 09