THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
-1

How to capture packets between 2 IP’s

  • retag add tags

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

GarryB's avatar
1
GarryB
asked 2021-08-09 02:27:56 +0000
edit flag offensive 0 remove flag 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's avatar hugo.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's avatar GarryB (2021-08-10 00:40:48 +0000) edit
add a comment see more comments

3 Answers

0

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...

7ACE's avatar
40
7ACE
answered 2021-08-09 06:23:34 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

grahamb's avatar
23.8k
grahamb
answered 2021-08-09 07:34:10 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

atux_null's avatar
1
atux_null
answered 2021-08-10 06:23:03 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer