Hello,
How can I get a list of the connected ethernet clients/devices?
Both DHCP clients and static ips.
Basically, as there is no "authentication" with Ethernet as there is with 802.11, you can try to guess what is out there, but it will only be a guess, based on what has been "heard from" recently. Even with 802.11, you only get a MAC. Determining one or more of the IPs using that MAC is an inexact process.
Oh okay, but how can the stock firmware on my TP-Link router know the ethernet devices connected?
It guesses and makes people feel good showing something. You can get away with that for consumer software
(Note that any switch in your network will make passive discovery of wired clients close to impossible. You'll only see those that are communicating with or through the host doing the monitoring, or directly connected to it.)
Haha i love manufactures
Ping them... ping them all
Fing for Android is a nice app for getting more details on your Local Area Network
I remember playing with these so thanks for the reminder. Stangely, despite having IPv4 leases, trying ubus call dhcp ipv4leases
on my stock 18.06.2 system returns the empty:
{
"device": {
}
}
The other examples you posted work as expected, so I'm curious if "ipv4leases" works for you?
It will work if you make odhcpd serve DHCPv4 instead of dnsmasq:
ping -6 ff02::1%eth0
is a useful command, you'll get a whole bunch of link-local ipv6 addresses replying.
Thanks for heads-up. It's a shame we're missing that consistent ubus support with the baseline dnsmasq.
Yup, IPv6 multicast is a wonderful, underappreciated thing...
install the arp-scan package, then from an SSH session, run ...
arp-scan --interface br-lan --localnet
run it a couple of times to make sure you've seen all responses
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.