Hi Juliusz,<div><br></div><div>Firstly, thanks for your answer.</div><div><br></div><div>Now, I'm describe my nodes configuration because I can't cunfigure my network with ahcpd yet.</div><div><br></div><div><div>I downloaded ahcpd from debian repository:</div>
<div>deb <a href="http://ftp.tw.debian.org/debian/">http://ftp.tw.debian.org/debian/</a> squeeze main contrib</div><div><br></div><div>I would like to configure my interface 'ath0' by ahcp, so I have no info about that interface on my /etc/network/interfaces file.</div>
<div><br></div><div>In my /etc/default/ahcpd file i have two lines:</div><div>INTERFACES="ath0"</div><div>DAEMON_ARGS="-i /var/lib/ahcpd/unique-id"</div><div><br></div><div>About the server:</div><div>
<br></div><div>/etc/ahcpd.conf file contains that:</div><div><br></div><div><div><br></div><div>#############</div><div> mode server</div><div><br></div><div> prefix fde6:20f5:c9ac:358::/64</div><div> prefix <a href="http://192.168.4.128/25">192.168.4.128/25</a></div>
<div> lease-dir /var/lib/leases</div><div> name-server fde6:20f5:c9ac:358::1</div><div> name-server 192.168.4.1</div><div> ntp-server 192.168.4.2</div><div><br></div><div>##############</div></div><div><br></div><div>
I run it with this: > ahcpd -c /etc/ahcpd.conf ath0</div><div>And I get a warning message: "unknown interface ath0"</div><div><br></div><div><br></div><div>About the others nodes:</div><div>When I run >ahcpd ath0</div>
<div>I get the following error: "ahcp_socket: Address family not supported by protocol"</div><div><br></div><div>Could you help me with all of that?</div><div>Thanks in advanced.</div><div><br></div><div><br></div>
<div class="gmail_quote">2011/3/4 Juliusz Chroboczek <span dir="ltr"><<a href="mailto:jch@pps.jussieu.fr">jch@pps.jussieu.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> I have an adhoc wifi 11a network, with debian running on some ALIX embedded<br>
> pcs.<br>
<br>
</div>Cool.<br>
<div class="im"><br>
> I'd like to add an autoconfigure protocol like ahcp.<br>
<br>
</div><div class="im">> First question: How should I configure /etc/network/interfaces file?<br>
<br>
</div>AHCP is not integrated with Debian's framework, so you should *not*<br>
mention the OLSR interfaces in /etc/network/interfaces.<br>
<br>
Choose one of your routers to be the AHCP server; this machine needs to<br>
have stable storage that survives a reboot (a hard disk or some writable<br>
piece of flash), and should preferably be running ntpd. The natural<br>
choice is usually to the server on your Internet gateway. The other<br>
routers will be clients, and they don't need to have writeable storage.<br>
<br>
Then follow the instructions in the README provided with AHCP (see the<br>
sections "Setting up a server" and "Setting up a client"). If there's<br>
anything that's not clear in the README, please let us know -- I'd like<br>
to improve the README.<br>
<font color="#888888"><br>
--Juliusz<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Tomás Cea Ortiz<br>Ing. Informático<br>Universidad Rey Juan Carlos<br>Dpto. Teoría de la Señal y Comunicaciones<br>Telf: 914888405<br><br><br>
</div>