Display layer-2 forwarding table

New at this so be gentle :slight_smile:

Hey guys have a device manufactured my a company called Assured Wireless, specifically an AW12.
Works like a champ in NAT mode, but not having any luck in bridge mode.

The device has no Out-of-Band Management and I feel like I've got my hands tide trying to get tcpdump's that represent the real world.

Bridge mode:
tcpdumps show in ingress traffic over the wwan0 interface, but my Cisco router never sees the frames. My hunch is that the AW12 doesn't have my Cisco's router MAC in the bridges forwarding table?

This build supports the brctl command, but not the showmacs option.

root@AWC-EI:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.34ba9a8774d0         no                    wwan0
                                                                                    eth0.1

Been reading my butt off, just can seem to get it to cough up the kenel's FDB.
Any thoughts, options?

Try the arp or ip neigh show

This device doesn't appear to be supported by official OpenWrt.

Presumably this is some custom build, not a standard OpenWrt build?

Please run the following command and paste the output here, using the "Preformatted text </> " button:
grafik

ubus call system board

Ya must be custom as hell.


BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+226-8abb703ac6
 -----------------------------------------------------
root@AWC-EI:~# ubus call system board
{
        "kernel": "4.14.234",
        "hostname": "AWC-EI",
        "system": "MediaTek MT7621 ver:1 eco:3",
        "model": "AWC-EI/Airgain-EI",
        "board_name": "atel,aw12",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r0+226-8abb703ac6",
                "target": "ramips/mt7621",
                "description": "OpenWrt SNAPSHOT r0+226-8abb703ac6"
        }
}
root@AWC-EI:~# 

With that in mind, I'd recommend contacting the manufacturer of the device and/or the maintainer of that custom build.

1 Like

Oh ya, got that ball rolling this morning. Can't think of any way of getting that to give me it's forwarding tables? I've seen someone's script that is supposed to do it, but I get no output.

`root@OpenWrt:~# brctl_showmacs () { printf "port no\tmac addr\t\tis local?\tageing timer\n" ; hexdump -v -e '5/1 "%02x:" /1 "%02x" /1 " %x" /1 " %x" 1/4 " %i" 1/4 "\n"' /sys/class/net/$1/brforward | awk '{ islocal = $3 ? "yes" : "no" ; printf "%3i\t%s\t%s\t\t%8.2f\n",$2,$1,islocal,$4/100 } ' ; }
root@OpenWrt:~# brctl_showmacs br-lan
port no	mac addr		is local?	ageing timer
  3	a0:f3:c1:86:16:2b	no		    0.42
  3	d0:e7:82:09:70:4f	no		    1.45
  3	a0:f3:c1:86:04:5d	no		    1.96
  3	b2:59:98:74:ed:77	yes		    0.00`

Then someone replied

i tried your func on some batman-adv nodes, but with no output.
you must declare it first, then invoke it like "brctl_showmacs br-lan"?

Not sure what he's referring to "you must declare it first"

Anyone have a clue?