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

Tomas Cea tomas.cea at gmail.com
Tue Mar 8 12:16:16 UTC 2011


Thanks Gabriel,

So, How should I setup the interface 'ath0' on the other nodes? I'm trying
with the following options, but it not works.

auto ath0
iface ath0 inet static
#        address 10.0.0.99
         netmask 255.255.255.128
#        broadcast 10.1.20.255
         wireless-essid zbziw
         wireless-channel 36
         madwifi-base wifi0
         madwifi-mode ad-hoc
         up iwpriv ath0 mode 1
        up iwconfig ath0 txpower auto
        up iwconfig ath0 rate auto


2011/3/8 Gabriel Kerneis <kerneis at pps.jussieu.fr>

> 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
>



-- 
Tomás Cea Ortiz
Ing. Informático
Universidad Rey Juan Carlos
Dpto. Teoría de la Señal y Comunicaciones
Telf:  914888405
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/babel-users/attachments/20110308/ec7b8ed7/attachment.htm>


More information about the Babel-users mailing list