Im Fall vom Wlan muss er das. Über LAN angeschlossene Geräte aber nicht.
Der AP hat eine CPU (mit Wlan) und einen Switch. Die CPU ist am Switch angeschlossen. Da es ein Switch ist werden Frames nur an die richtige Adresse geschickt, nicht an alle. Die Frames passieren so nie den Weg zur CPU und können von dort aus auch nicht gesehen werden.
Wenn du (viel) Glück hast kann man auf den Switch zugreiffen, sofern es nicht einfach ein dummer Switch ist und dort die MAC-Tabelle auslesen, dann weißt du hinter welchem Port welches Gerät hängt.
http://wiki.openwrt.org/toh/tp-link/tl-wr841nd#hardware
Je nach Version hast du einen unterschiedlichen Switch eingebaut.
Habe dannach auch gesucht, weil mich das auch interessiert:
Manche Switches können ausgelesen werden mittels swconfig
Code:
swconfig dev switch0 show |grep Port
Port 0: MAC c0:4a:00:
Port 2: MAC 00:15:77:
Port 2: MAC 5c:f8:a1:
Port 2: MAC c4:6e:1f:
Port 2: MAC 00:0c:29:
Port 2: MAC 00:24:7e:
Port 2: MAC 44:8a:5b:
Port 2: MAC 00:24:fe:
Port 2: MAC 64:70:02:
Port 2: MAC b8:27:eb:
Port 2: MAC 00:23:7d:
Port 2: MAC 00:1e:65:
Port 2: MAC 00:15:58:
Port 0:
mib: Port 0 MIB counters
Port 1:
mib: Port 1 MIB counters
Port 2:
mib: Port 2 MIB counters
Port 3:
mib: Port 3 MIB counters
Port 4:
mib: Port 4 MIB counters
Port 5:
mib: Port 5 MIB counters
Port 6:
mib: Port 6 MIB counters
Das ist vermutlich genau was du suchst. Port 0 ist in dem Fall die CPU.
Hier:
http://wiki.openwrt.org/doc/techref/swconfig
Siehst du welche Switches kompatibel sind. Aber am einfachsten wird es sein es zu probieren.
Nachtrag:
Code:
switch0: ag71xx-mdio.0(Atheros AR8327), ports: 7 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): reset_mibs (Reset all MIB counters)
Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
Attribute 6 (int): mirror_source_port (Mirror source port)
Attribute 7 (string): arl_table (Get ARL table)
Attribute 8 (none): apply (Activate changes in the hardware)
Attribute 9 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset single port MIB counters)
Attribute 2 (string): mib (Get port's MIB counters)
Attribute 3 (int): enable_eee (Enable EEE PHY sleep mode)
Attribute 4 (int): pvid (Primary VLAN ID)
Attribute 5 (string): link (Get port link information)
TP-Link WDR4300, OpenWrt neueste Version selbst kompiliert.
Code:
switch0: ag71xx-mdio.0(Atheros AR8327), ports: 7 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): reset_mibs (Reset all MIB counters)
Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
Attribute 6 (int): mirror_source_port (Mirror source port)
Attribute 7 (none): apply (Activate changes in the hardware)
Attribute 8 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset single port MIB counters)
Attribute 2 (string): mib (Get port's MIB counters)
Attribute 3 (int): pvid (Primary VLAN ID)
Attribute 4 (string): link (Get port link information)
TP-Link WDR1043ND v2, 14.07. Ein Eintrag fehlt hier, genau der um die MACs anzeigen zu lassen. Muss erst schauen ob das an der älteren Version hierbei liegt oder generell eine Einschränkung bei diesem Modell.
Edit: Tatsächlich, die Möglichkeit MACs anzeigen zu lassen kam erst kürzlich dazu:
https://dev.openwrt.org/browser/tru...drivers/net/phy/ar8216.c?rev=44104&order=name