Thanks Gabriel,<div><br></div><div>So, How should I setup the interface 'ath0' on the other nodes? I'm trying with the following options, but it not works.</div><div><br><div>auto ath0</div><div>iface ath0 inet static</div>
<div># address 10.0.0.99</div><div> netmask 255.255.255.128</div><div># broadcast 10.1.20.255</div><div> wireless-essid zbziw</div><div> wireless-channel 36</div><div> madwifi-base wifi0</div>
<div> madwifi-mode ad-hoc</div><div> up iwpriv ath0 mode 1</div><div> up iwconfig ath0 txpower auto</div><div> up iwconfig ath0 rate auto</div><div><br></div><div><br></div><div class="gmail_quote">
2011/3/8 Gabriel Kerneis <span dir="ltr"><<a href="mailto:kerneis@pps.jussieu.fr">kerneis@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">On Tue, Mar 08, 2011 at 12:08:10PM +0100, Tomas Cea wrote:<br>
> I would like to configure my interface 'ath0' by ahcp, so I have no<br>
> info about that interface on my /etc/network/interfaces file.<br>
<br>
</div>This is correct on the clients. On the ahcp server, you must configure<br>
your interface manually, as you are used to do (e.g. with a "static"<br>
block in /etc/network/interfaces).<br>
<div class="im"><br>
> In my /etc/default/ahcpd file i have two lines:<br>
> INTERFACES="ath0"<br>
> DAEMON_ARGS="-i /var/lib/ahcpd/unique-id"<br>
<br>
</div>This file is relevant only if you start ahcpd with /etc/init.d/ahcpd.<br>
Ahcpd run from the command-line will ignore it.<br>
<div class="im"><br>
> About the server:<br>
><br>
> /etc/ahcpd.conf file contains that:<br>
><br>
><br>
> #############<br>
> mode server<br>
><br>
> prefix fde6:20f5:c9ac:358::/64<br>
> prefix <a href="http://192.168.4.128/25" target="_blank">192.168.4.128/25</a><br>
> lease-dir /var/lib/leases<br>
> name-server fde6:20f5:c9ac:358::1<br>
> name-server 192.168.4.1<br>
> ntp-server 192.168.4.2<br>
><br>
> ##############<br>
<br>
</div>Looks fine, provided your interfaces and routes are set accordingly in<br>
/etc/network/interfaces.<br>
<div class="im"><br>
> I run it with this: > ahcpd -c /etc/ahcpd.conf ath0<br>
> And I get a warning message: "unknown interface ath0"<br>
<br>
</div>As explained above, the interface must up and configured on the server<br>
separately from ahcp.<br>
<div class="im"><br>
> About the others nodes:<br>
> When I run >ahcpd ath0<br>
> I get the following error: "ahcp_socket: Address family not supported by<br>
> protocol"<br>
<br>
</div>If those are wireless nodes, do not forget to setup the wifi settings.<br>
Also do not forget to bring the interface up (ifconfig ath0 up).<br>
<br>
The "address familiy not supported" might be an IPv6 issue (do you have<br>
IPv6 enabled?), but I am not sure.<br>
<br>
Best,<br>
--<br>
<font color="#888888">Gabriel Kerneis<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>