OpenWrt Forum Archive

Topic: Switch port monitoring on WRT54GL

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I'm trying to monitor the counters of the switch ports on the WRT54GL (uses a broadcom switch). I see that the original WRT54G v2 had an ADM switch and you could access the counters in /proc/switch/eth0/counters, but there's nothing similar on the broadcom driver in the WRT54GL build.

If I could even get the total number of bytes or packets that the WRT54GL was switching I'd be happy - I don't necessarily need per-port stats. When running ifconfig or watching tcpdump output I'll only ever see stats for broadcast traffic and traffic destined for the router itself. Even when running tcpdump on eth0 with a large file transfer going over the WAN port I'll still capture no traffic.

Note that I'm running the router in a pure switch mode with ports 0, 1, 2, 3, 4, 5 all in one VLAN !

Any advice would be much appreciated.

Thanks,

Sam

^BUMP^

I am also definitely interested in this also.  I have done some searching, but haven't really come up with much.  I have a dual-NIC laptop that I want to use as an IDS.  In the infrastructure world, I would set port monitoring on my core switch and plug the sensor into it.  This is all coming from a Cisco background.  How can we set one of the switchports on the WRT54GL to spanning mode, or tap mode, or promiscuous mode, or whatever you may call it.  I want all traffic at the router to be visible to this single port for sniffing purposes.  Any help would be appreciated.

The discussion might have continued from here.