Linux Debian support - Hostap / interface problems on Debian Sarge

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > April 2006 > Hostap / interface problems on Debian Sarge





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Hostap / interface problems on Debian Sarge
Geico Caveman

2006-04-24, 8:06 am

Hello

Just replaced my firewall / router machine running Slackware 10.0 with
Debian Sarge and am trying to get things back to work.

This machine has two network interfaces - wired (eth0) and wireless (where
the trouble is). The wired interface connects to the internet via a cable
modem. The wireless interface was ( and will be with your help) used as an
access point (Netgear MA311) with hostap drivers.

I have hotplug and that loads orinoco_pci driver as soon as it detects the
wireless device as eth1. Now, following some advice I located through
google, I added orinoco_pci, orinoco_cs, orinoco_plx and hermes
to /etc/hotplug/blacklist. In /etc/modutils/aliases, I added an entry for
wlan0 against hostap_pci. To /etc/network/interfaces, I added :

iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
pre-up modprobe hostap_pci
post-up /sbin/iwconfig wlan0 essid homenetwork mode Master

Now, when I boot up, orinoco_pci, orinoco and hermes get loaded for no
apparent reason (they are in the blacklist, right ?) and when I try to
bring up wlan0 with ifup, I get :

SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
wlan0: ERROR while getting interface flags: No such device
Failed to bring up wlan0.

/sbin/iwconfig reveals that eth1 is already defined as the wireless device.
How do I ensure that orinoco* never get loaded and eth1 never created. I
need wlan0 to come up instead.

GC
Geico Caveman

2006-04-24, 8:06 am

Geico Caveman wrote:

> Hello
>
> Just replaced my firewall / router machine running Slackware 10.0 with
> Debian Sarge and am trying to get things back to work.
>
> This machine has two network interfaces - wired (eth0) and wireless (where
> the trouble is). The wired interface connects to the internet via a cable
> modem. The wireless interface was ( and will be with your help) used as an
> access point (Netgear MA311) with hostap drivers.
>
> I have hotplug and that loads orinoco_pci driver as soon as it detects the
> wireless device as eth1. Now, following some advice I located through
> google, I added orinoco_pci, orinoco_cs, orinoco_plx and hermes
> to /etc/hotplug/blacklist. In /etc/modutils/aliases, I added an entry for
> wlan0 against hostap_pci. To /etc/network/interfaces, I added :
>
> iface wlan0 inet static
> address 192.168.1.1
> netmask 255.255.255.0
> pre-up modprobe hostap_pci
> post-up /sbin/iwconfig wlan0 essid homenetwork mode Master
>
> Now, when I boot up, orinoco_pci, orinoco and hermes get loaded for no
> apparent reason (they are in the blacklist, right ?) and when I try to
> bring up wlan0 with ifup, I get :
>
> SIOCSIFADDR: No such device
> wlan0: ERROR while getting interface flags: No such device
> SIOCSIFNETMASK: No such device
> wlan0: ERROR while getting interface flags: No such device
> Failed to bring up wlan0.
>
> /sbin/iwconfig reveals that eth1 is already defined as the wireless
> device. How do I ensure that orinoco* never get loaded and eth1 never
> created. I need wlan0 to come up instead.
>
> GC


Well, managed to sort out this trouble. Now, the issue is that the clients
do not get any name resolution. /etc/dhcp3/dhcpd.conf :

ddns-update-style none;
option domain-name "msingh.org";
option domain-name-servers 192.168.1.1;
default-lease-time 28800;
max-lease-time 86400;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0
{
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
range 192.168.1.3 192.168.1.5;
}
host host2
{
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.1.2;
}


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com