Hello.

Backtrack 5 R3

I am having difficulty getting a dhcp3-server to allocate out addresses when I go beyond wlan1, using hostapd. I need dhcp3-server to allocate addresses via the atheros sub wifi adapter.

In fact, my logs in syslog are showing:

No subnet declaration for wlan 1 (0.0.0.0) bla bla bla

when I don't even have a card in the slot for wlan1, but do have an atheros usb wifi adapter attached in the usb port and that is coming up as wlan2 under ifconfig.

However, when I have ONLY a wifi card slipped into the slot it shows up as wlan1 under ifconfig, dhcp3-server allocates successfully ip addresses to clients connecting to wlan1.

I'm wondering if this can be a problem with drivers?

Additionally I'm seeing in the syslog:

udev: renamed network interface wlan1 to wlan2

which doesn't help things.

contents of /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface etho inet dhcp

auto wlan0
iface wlan0 inet dhcp

auto wlan1
iface wlan1 inet dhcp

auto wlan2
iface wlan2 inet dhcp

contents of /etc/dhcp3/dhcpd.conf:

ddns-update-style none;
ignore client-updates;
authoritative;
option local-wpad code 252 = text;

subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option domain-name-servers 10.0.0.1, 8.8.8.8, 8.8.4.4;
option time-offset 0;
range 10.0.0.3 10.0.0.13;
default-lease-time 1209600;
max-lease-time 1814400;
}

Any help much appreciated.