Search Linux Wireless

Re: Using a Debian box as an AP with wireless testing and hostapd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pavel,

Thanks a lot for your answer. I successfully uninstalled the
compat-wireless package and no it is running properly. Anyway, I'm
experiencing a problem while configuring the box as a DHCP server. I
will tell you my problem, but if you consider this is not the place to
discuss such issue I will understand.

I configured dhcpd like this:

--> /etc/dhcp3/dhcpd.conf:Jun 29 16:01:12 faye dhcpd: Wrote 0 leases
to leases file.
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd: No subnet declaration for wlan0 (0.0.0.0).
Jun 29 16:01:12 faye dhcpd: ** Ignoring requests on wlan0.  If this is not what
Jun 29 16:01:12 faye dhcpd:    you want, please write a subnet declaration
Jun 29 16:01:12 faye dhcpd:    in your dhcpd.conf file for the network segment
Jun 29 16:01:12 faye dhcpd:    to which interface wlan0 is attached. **
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd: Not configured to listen on any interfaces!

ddns-update-style none;

option domain-name-servers 147.83.2.3, 147.83.2.10;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 192.168.3.0 netmask 255.255.255.0 {
  range 192.168.3.2 192.168.3.254;
  option domain-name-servers 147.83.2.3,147.83.2.10;
  option routers 192.168.3.1;
  option broadcast-address 192.168.3.255;
  default-lease-time 100000;
  max-lease-time 100000;
}


--> /etc/default/dhcp3-server:

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="wlan0"


AFAIK, I just need this to configure the DHCP server in my box. Next,
I should configure some NATting with iptables. However, when issuing
/etc/init.d/dhcp3-server start I get this message:

faye:/home/dulceangustia# /etc/init.d/dhcp3-server start
Starting DHCP server: dhcpd3check syslog for diagnostics. failed!
 failed!

And in /var/log/syslog I see:

Jun 29 16:01:12 faye dhcpd: Wrote 0 leases to leases file.
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd: No subnet declaration for wlan0 (0.0.0.0).
Jun 29 16:01:12 faye dhcpd: ** Ignoring requests on wlan0.  If this is not what
Jun 29 16:01:12 faye dhcpd:    you want, please write a subnet declaration
Jun 29 16:01:12 faye dhcpd:    in your dhcpd.conf file for the network segment
Jun 29 16:01:12 faye dhcpd:    to which interface wlan0 is attached. **
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd:
Jun 29 16:01:12 faye dhcpd: Not configured to listen on any interfaces!

BTW, the leases file do exist as I 'touch'ed it.

I can't understand why it says that the dhcp server is not configured
to listen on any interfaces. Seems I'm missing some easy configuration
but after some time googling it seems that I should already have it
running.

Any idea on how to carry on configuring my AP?


Thanks for your time and sorry for the inconvenience,
Javi

2009/6/29 Pavel Roskin <proski@xxxxxxx>:
> On Mon, 2009-06-29 at 11:00 +0200, Javier Gálvez Guerrero wrote:
>> Hi all,
>>
>> I'm trying to use my Debian box as an AP using the latest wireless
>> testing kernel (2.6.30-wl) and a WiFi card Asus WL-138G v2 PCI but I'm
>> experiencing a weird problem, hope you can guide me through it.
>>
>> First, I'll tell what and how I setup it. I downloaded the wireless
>> testing kernel and installed it (make && make modules && make
>> modules_install && make install), prepared the boot images and updated
>> the grub; fine. Next I installed compat-wireless, wireless regdb,
>> crda, libnl, hostapd and iw following this tutorial
>> (http://acx100.erley.org/git.html), with slight modifications: install
>> some missing packages (m2crypto, libgcrypt-dev and libssl-dev) and,
>> after installing compat-wireless, 'make unload' as suggested by the
>> 'make install' output.
>
> You don't need compat-wireless with 2.6.30-wl.  The whole point of
> compat-wireless is to backport the latest drivers from the "-wl" kernel
> to older kernels.
>
> Please remove /lib/modules/2.6.30-wl and reinstall the kernel by running
> "make modules_install install".
>
> --
> Regards,
> Pavel Roskin
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux