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

networking question : wpa_supplicant, ifplugd and interfaces



Hi,

I am trying to configure /etc/networking/interfaces, ifplugd and
wpa_supplicant so that my laptop automatically configures networking
whenever an interface becomes available. The state of things so far is
as follows :

If I connect to ethernet ifplugd configures my network correctly.
However the wireless networking does not get configured (even) in the
absense of ethernet. I need to manually do the following for it to work :

1) modprobe -r ipw3945
2) /etc/init.d/networking stop
3) /etc/init.d/wparoamd start

I would believe this is because I have misconfigured some thing. I would
be greatfull if you could point me in the right direction. Given below
are listings of the relevant config files (let me know if you need
anything else) 

/etc/networking/interfaces:
---------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# Wireless
auto eth1
iface eth1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    wpa-action /etc/wpa_supplicant/dhclient

/etc/defaults/ifplugd :
-----------------------
NTERFACES="eth0 eth1"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="suspend"

/etc/wpa_supplicant/dhclient : 
-------------------------------
This is an unmodified copy of
/usr/share/doc/wpasupplicant/examples/wpacli-action-dhclient
from version 0.5.3 of wpasupplicant (the only one that supports my
wireless card Intel Pro Wireless ipw3945)

/etc/init.d/wparoamd :
----------------------
This is almost the same as 
/usr/share/doc/wpasupplicant/examples/wpasupplicant.roaming-daemon
except 
ENABLE_ROAMING_MODE=1,
CONFIG="/etc/wpa_supplicant/wpa_supplicant.conf"
and
INTERFACE="eth1"

/etc/modprobe.d/ipw3945:
------------------------
alias eth1 ipw3945
install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; sleep 0.5 ;
/sbin/ipw3945d --quiet
remove ipw3945  /sbin/ipw3945d --kill ; /sbin/modprobe -r
--ignore-remove ipw3945

Though I ran update-modules.modutils, during bootup when the kernel
module ipw3945 gets loaded, the binary daemon ipw3945d does not get
started.

My kernel version is 2.6.17-rc4 and I am using Debian/Sarge for all
packages with the exception of wpasupplicant.

regards
b thomas

-- 
=======================================================================
  ,           , 
 /             \                       Balbir Thomas 
((__-^^-,-^^-__))                     
 `-_---' `---_-'                       
  `--|o` 'o|--'                        thomas.1037@osu.edu             
     \  `  / 			       http://scientificcomputing.net
      ): :(                            
      :o_o:                           
       "-"                             
=======================================================================



Reply to: