On Wed, 25 Mar 2015, Milan P. Stanic wrote:
On Wed, 2015-03-25 at 13:51, David Lang wrote:
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.
I think you are right.
But maybe there is utility (extended swconfig?) which can access the
switch to show it's data locally if the switch supports this.
That's exactly what is being asked for. I don't think it's currently available,
but would love to learn that I'm wrong.
With some of the new equipment that's becoming available that can run OpenWRT
this sort of thing will be more useful. And that's what the other thread was
about.
David Lang
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users