Question

so I am planning to make a network analyzer using Perl. But before I start I have to answer this question, can a Perl program actually sniff packets in multiple NICs simultaneously? a feature of the program im going to make is that it needs to sniff the packets in the whole LAN within a switch. Is this possible in Perl?

Was it helpful?

Solution

Sniffing packets in the whole lan is not possible. It is only possible if your switch supports it. Many swith has an option to copy all traffic to one of its port for monitoring/sniffing.

http://en.wikipedia.org/wiki/Port_mirroring

http://www.miarec.com/knowledge/switches-port-mirroring

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top