Command line access to my router's upstream DHCP info?

I can see this lovely upstream information in luci:

How can I get equivalent information from the command line? ifstatus wan gives some, but nothing about DHCP lease expiry or suggested DNS.

I suspect this will be super simple, but I can't seem to find the solution.

[SOLVED] List ethernet devices/clients - #6 by vgaetera

1 Like

I really want the upstream leases that my router has obtained.

Interestingly both ubus call dhcp ipv6leases and ubus call dhcp ipv4leases return no leases (just empty JSON fields), for either upstream or downstream.

cat /tmp/dhcp.leases does mention the one downstream lease, but I want the upstream