29 Jul 2014

dd-wrt: DHCP-Leases anzeigen

Will man wissen, welche DHCP-Leases ein mit dd-wrt versehener Router im Moment ausgegeben hat, so kann man das auch via telnet tun.

Die Leases stehen in dieser Datei: /tmp/dnsmasq.leases

 [chrissie@sylt ~]$ telnet 10.1.1.1
 Trying 10.1.1.1...
 Connected to helmsklamm.
 Escape character is '^]'.

 DD-WRT v24-sp2 vpn (c) 2009 NewMedia-NET GmbH
 Release: 10/10/09 (SVN revision: 13064)

 DD-WRT login: root
 Password: 
 [....] BusyBox v1.13.4 (2009-10-10 01:39:56 CEST) built-in shell (ash)
 Enter 'help' for a list of built-in commands.

 root@DD-WRT:~# more /tmp/dnsmasq.leases
 604800 01:00:00:34:9a:00 10.1.1.75 * 01:00:00:00:34:9a:00
 604800 01:00:4c:37:5b:00 10.1.1.85 Jones 01:00:00:4c:37:5b:00
 604800 01:00:c5:e2:da:00 10.1.1.67 iPhone 01:00:00:c5:e2:da:00
 604800 01:00:95:2a:9a:00 10.1.1.47 robur 01:00:00:95:2a:9a:00