Article 4YA3T monitor data rate on mirrored port of switch

monitor data rate on mirrored port of switch

by
manit123
from LinuxQuestions.org on (#4YA3T)
hi,
I am using laptop running
Quote:
$ lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 16.04.5 LTS
Release:16.04
Codename:xenial
$ uname -a
Linux lxuser-ThinkPad-E470 4.15.0-74-generic #83~16.04.1-Ubuntu SMP Wed Dec 18 04:56:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I have a network device with multiple ethernet ports.
Ethernet Traffic of around 300Mbps is running on 'port 1'. It has been generated by me using other devices.
I have mirrored (both ingress and egress) 'port 1' to 'port 2'.
'port 2' is connected to my laptop.
I have configured laptop ethernet interface as 'ip v4 link-local only (ip v6 ignore)' so that I can quietly see packets using wireshark. That is working alright.
Now my aim is to see traffic data rate on 'port 2' (which will be same as 'port 1').
In gnome-system-monitor - network history shows few bytes per second in tx and rx.
Similiarly 'bmon' shows small amount of packets.
When I connect desktop with OS - 'windows 8.1 pro' to 'port 2' then 'task manager' shows 300Mbps.
What am i doing wrong in linux ?

Please note that I am concerned with raw traffic data rate on interface being monitored.
My final aim is to log this data rate after every few seconds.

Please let me know if any detail is required.
Thanks.latest?d=yIl2AUoC8zA latest?i=1fUSPda2-uE:g6HYC2N8KxU:F7zBnMy latest?i=1fUSPda2-uE:g6HYC2N8KxU:V_sGLiP latest?d=qj6IDK7rITs latest?i=1fUSPda2-uE:g6HYC2N8KxU:gIN9vFw1fUSPda2-uE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments