<br><div class="gmail_quote">On Sun, Mar 6, 2011 at 12:31 PM, Harald Welte <span dir="ltr"><<a href="mailto:laforge@gnumonks.org">laforge@gnumonks.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Daniel,<br>
<br>
> using ipaccess-config -i <a href="http://192.168.10.110/24" target="_blank">192.168.10.110/24</a> -r 192.168.10.101 is just not<br>
> working as expected. The device reboots, but still asks the DHCP server for<br>
> the IP address.<br>
><br>
> Hardware is a nanoBTS 1800 version 139_029_35.<br>
<br>
To be honest, I think this functionality may never have been tested before.<br>
<br>
If you want to debug it, I suggest comparing protocol traces when using the<br>
BTSinstaller of ip.access and our ipaccess-config tool.<br>
<br>
Regards,<br>
        Harald<br><br></blockquote></div><br><br>
After a full memory reset, you first need to set certain NVRAM flags using ipaccess-config to kill the DHCP.  The
available flags don't seem to be documented in the --help text or on
the wiki, but you can find them by digging through the source code (listed at the end of this email).  As for turning off the DHCP and getting a static IP, try the following:<br><br>ipaccess-config -S static-ip -U dhcp-enabled -r [OLD IP]<br>
.... wait for the unit to fully reboot, about 30 seconds with the 1800 model ...<br>ipaccess-config -i [NEW IP / NET] -r [OLD IP]<br><br>Chris Rankine<br><br><br><br>
static const struct value_string ipa_nvflag_strs[] = {<br>
        { 0x0001, "static-ip" },<br>
        { 0x0002, "static-gw" },<br>
        { 0x0004, "no-dhcp-vsi" },<br>
        { 0x0008, "dhcp-enabled" },<br>
        { 0x0040, "led-disabled" },<br>
        { 0x0100, "secondary-oml-enabled" },<br>
        { 0x0200, "diag-enabled" },<br>
        { 0x0400, "cli-enabled" },<br>
        { 0x0800, "http-enabled" },<br>
        { 0x1000, "post-enabled" },<br>
        { 0x2000, "snmp-enabled" },<br>
        { 0, NULL }<br>
};<br>