On Wed, 25 Mar 2015, Milan P. Stanic wrote:
On Wed, 2015-03-25 at 20:21, Luca Bertoncello wrote:
"Karl O. Pinc" <[email protected]> schrieb:
It seems I mis-understood. You seem to be looking for
the MAC addresses of the devices into which the OpenWRT
device is plugged.
Well, I try again to explain...
I need to know the MAC-Address of the device connected to the ports of the
OpenWRT-Switch and their port.
If you have ip compiled with neigh (neighbour) support compiled you can
see mac addresses of devices connected to interfaces.
Try something like this: ip neigh show dev eth0.1@eth0
Of course, I'm not sure if I understand your question, sorry.
That will show you information about interfaces directly on the kernel, but will
it show you information about things connecting to the switch? And will it show
you what port on the switch they are connected to? or will it treat everything
on the switch as being on one interface.
Remember, electronically these switches are basically the same as having an
external switch connected to your laptop and you are asking what is plugged in
where on the switch.
David Lang
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users