You may have configured your OpenLBR to acquire it's IPv4 address through DHCP. If that is the case, chances are that the DHCP server gives it a different IPv4 address everytime the OpenLBR reboots. Since the OpenLBR does not have a screen, you don't know what IPv4 address to point your PuTTY to configure it.
One solution is to have the OpenLBR load a PHP script on a remote server. That server can store the IPv4 address of the OpenLBR which contacted it, and display it on some webpage for your to see.
On the remote server (in our case http://wsn.eecs.berkeley.edu/), create a folder
openserver/ under your server's DocumentRoot and create the file
$file_name = "ipv4_".$_GET["hostname"].".txt";
$file_handler = fopen($file_name, "w");
$logdetails = $_SERVER['REMOTE_ADDR'];
<html><body>This should be accessed only by an LBR.</body></html>
Make sure you can see that page, in our case http://wsn.eecs.berkeley.edu/openserver/record_openlbr_ipv4.php. Once you have visited that page once, a file
ipv4_<hostname>.txt should have been created, with
hostname the value of the
GET parameters passed when opening that page.
On the OpenLBR, create the file
/etc/network/if-up.d/openlbr/reportaddress.sh with the following content:
wget -O - http://wsn.eecs.berkeley.edu/openserver/record_openlbr_ipv4.php?hostname=`cat /etc/hostname`
We use the
-O flag of
wget so that it does not store any file when loading the PHP script. Don't forget to give the script execution privileges used
Now, add the following line at the end of
/etc/network/interfaces on your OpenLBR:
This instructs Debian to execute that script right after the OpenLBR's Ethernet interface is up. So now, each time your OpenLBR boots, read it's current IPv4 address at http://wsn.eecs.berkeley.edu/openserver/.