Skip to contentSkip to conversation

looking at the network traffic

DISCUSSION Luca Ferrari 3 participants 3 messages Jun 25, 2004 – Jun 26, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
using program such as ethereal, tcpdump, etc. is it possible to see the network traffic also if the hosts are connected thru a switch? I mean, if A,B,C, are on the same network, connected with a switch, can A see the traffic among B and C? I suppose no, since the switch should route the traffic to the right host directly (while an hub should not), and the only thing I can see should be message broadcasts and something similar. Is it right? Is there a way to observe the traffic over a network even if there are switches?
I don't want to break user's privacy, but since I'm developing a program which should connect to a peer-to-peer client, and I don't have protocol specifications, I was wondering about a traffic dump of a session among two users. Nevertheless I was unable due to (I suppose) the switch.

Thanks,
Luca

Signature · 2 lines
Luca Ferrari,
[email protected]
#1 lore raw
Quoted 5 lines · Luca Ferrari

Hi,
using program such as ethereal, tcpdump, etc. is it possible to see the network traffic also if the hosts are connected thru a switch? I mean, if A,B,C, are on the same network, connected with a switch, can A see the traffic among B and C? I suppose no, since the switch should route the

Quoted 8 lines

traffic to the right host directly (while an hub should not), and the only thing I can see should be message broadcasts and something similar. Is it right? Is there a way to observe the traffic over a network even if there are switches?
I don't want to break user's privacy, but since I'm developing a program which should connect to a peer-to-peer client, and I don't have protocol specifications, I was wondering about a traffic dump of a session among two users. Nevertheless I was unable due to (I suppose) the switch.

You are correct, but if you have a managed switch it can likely be set up with a port seeing all/selected port traffic ('port' in this context being a physical port on the switch).

CD

#2 lore raw

You can use managed switches to mirror traffic from a port to a monitoring port on managed switches.

You can also use utilities such as macof or angst
[http://freshmeat.net/projects/angst/] (not tested by me myself) to flood the switch databases and make switches forward traffic out on all ports so you can capture network traffic.

Quoted 21 lines · Chris DiTrani
Quoted 5 lines · Luca Ferrari

Hi,
using program such as ethereal, tcpdump, etc. is it possible to see the network traffic also if the hosts are connected thru a switch? I mean, if A,B,C, are on the same network, connected with a switch, can A see the traffic among B and C? I suppose no, since the switch should route the

Quoted 8 lines

traffic to the right host directly (while an hub should not), and the only thing I can see should be message broadcasts and something similar. Is it right? Is there a way to observe the traffic over a network even if there are switches?
I don't want to break user's privacy, but since I'm developing a program which should connect to a peer-to-peer client, and I don't have protocol specifications, I was wondering about a traffic dump of a session among two users. Nevertheless I was unable due to (I suppose) the switch.

You are correct, but if you have a managed switch it can likely be set up with a port seeing all/selected port traffic ('port' in this context being a physical port on the switch).

CD