Show connected clients on different vlans

Hi,

I have 3 vlans, and openwrt is not the dhcp server.

I noticed that running fping with fping -g -q 192.168.180.0/24 works (in a cron every minute) in the default vlan where the AP is also.. the other vlan fping -g -q 192.168.170.0/24 doesn't work. Any idea how to solve , that I can see all clients ip's.

You'd need to allow ping from the default vlan where the AP is to the other vlans. Also some clients, e.g windows, don't accept pings from outside their local net, so you'd need to allow that manually.

Hi,

I checked a client (smartdevice), and I can f(ping) it. But ip address doesn't show it the luci interface

root@OpenWrt:~# fping 192.168.170.32
192.168.170.32 is alive
root@OpenWrt:~# ping 192.168.170.32
PING 192.168.170.32 (192.168.170.32): 56 data bytes
64 bytes from 192.168.170.32: seq=0 ttl=254 time=4.633 ms

Which specific part of the LuCI interface -- can you show a screenshot? Generally, the LuCI interface people look at for this is actually the DHCP leases. If your OpenWrt device is not the DHCP server, it will not populate this at all.

1 Like

/etc/ethers might be a way forward.

1 Like

Hi

In the default interface when you login.

Here an client connected, on the default lan, the fping works, and on vlan70 , I get an ipv4 adres 192.168.170.44, but it doesn't show in the interface

I found a solution, only have to make a script for it.

addrwatch -r-1 br-vlan70 | cut -d " " -f4,5

I should run it for all vlans and write it to the /etc/ethers file.

Made a soluiton as follows:

in the /etc/rc.local:
addrwatch -r-1 br-vlan10 br-vlan70 -o /etc/test.txt -d

in a cronjob, running every minute:
* * * * * cat /etc/test.txt | cut -d " " -f4,5 > /etc/ethers

Maybe someone can make it more nice with the deamon in addrwatch

That is not a very good idea, as it will wear out your flash. You'd better write to /tmp/. and exchange /etc/ethers by a symlink.

1 Like

That's right, move de test,txt en ethers to /tmp/ and made a symbolic link to /etc/ethers

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.