[Babel-users] how to get ahcpd running on debian

Gabriel Kerneis kerneis at pps.jussieu.fr
Tue Mar 8 11:35:42 UTC 2011


On Tue, Mar 08, 2011 at 12:08:10PM +0100, Tomas Cea wrote:
> I would like to configure my interface 'ath0' by ahcp, so I have no
> info about that interface on my /etc/network/interfaces file.

This is correct on the clients.  On the ahcp server, you must configure
your interface manually, as you are used to do (e.g. with a "static"
block in /etc/network/interfaces).

> In my /etc/default/ahcpd file i have two lines:
> INTERFACES="ath0"
> DAEMON_ARGS="-i /var/lib/ahcpd/unique-id"

This file is relevant only if you start ahcpd with /etc/init.d/ahcpd.
Ahcpd run from the command-line will ignore it.

> About the server:
> 
> /etc/ahcpd.conf file contains that:
> 
> 
> #############
>   mode server
> 
>   prefix fde6:20f5:c9ac:358::/64
>   prefix 192.168.4.128/25
>   lease-dir /var/lib/leases
>   name-server fde6:20f5:c9ac:358::1
>   name-server 192.168.4.1
>   ntp-server 192.168.4.2
> 
> ##############

Looks fine, provided your interfaces and routes are set accordingly in
/etc/network/interfaces.

> I run it with this: > ahcpd -c /etc/ahcpd.conf ath0
> And I get a warning message: "unknown interface ath0"

As explained above, the interface must up and configured on the server
separately from ahcp.

> About the others nodes:
> When I run >ahcpd ath0
> I get the following error: "ahcp_socket: Address family not supported by
> protocol"

If those are wireless nodes, do not forget to setup the wifi settings.
Also do not forget to bring the interface up (ifconfig ath0 up).

The "address familiy not supported" might be an IPv6 issue (do you have
IPv6 enabled?), but I am not sure.

Best,
-- 
Gabriel Kerneis



More information about the Babel-users mailing list