LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2006, 04:49 PM   #1
Clemente
Member
 
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
post-up problem with /etc/network/interfaces


Hi all,

I try to set up an asus 167g wlan usb device with ndiswrapper and wpa_supplicant. Ndiswrapper module loads fine at boot time, but I didn't manage wpa_supplicant to start automatically, too.
I wrote following into the /etc/network/interfaces file:
Code:
auto wlan0
iface wlan0 inet static
    address 192.168.2.97
    netmask 255.255.255.0
    gateway 192.168.2.1
    post-up /sbin/ifconfig wlan0 mtu 1472
    post-up /sbin/wpa_supplicant -B -D ndiswrapper -i wlan0 -c /home/clemens/wpaconf
    wireless-essid MetalNet
After reboot, ps aux | grep wpa shows no running process. If started on console, wpa_supplicant works. I tried a
Code:
post-up echo "Hello world!" >> /tmp/ifconfigtest
in the interfaces file. No output in the specified file.

Does the ifup routine ignore some post-up/pre-up statements? And why? And how can I start the wpa_supplicant?

Thanks a lot,
Clemente
 
Old 07-21-2006, 04:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
What I would do is run wpa_supplicant separately and before bringing up networking with the background and wait flags.
 
Old 01-01-2013, 03:50 AM   #3
saadfarooq
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Same Issue...

I have the same problem of post-up not working. And the answer doesn't really address the problem. More of a work around.

post-up 'should' work, shouldn't it ?
 
Old 01-16-2013, 07:06 PM   #4
briermay
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
I'm not a wireless guru on linux but I believe your issue may not be caused by post-up not working but a wireless standard.
as far as i know the interface is only considered up providing it can configure it. if its using wpa security then its possible that its not able to associate with the access point thus causing linux to not think its up.

Try setting your AP to no wireless security and then put post-up echo "Hello world!" >> /tmp/ifconfigtest and see if it fires. if it fires with wireless security OFF then its due to the fact that without the wpa_supplicant it can't connect to the AP and linux is saying the interface is still down.

if it is the wireless security then what I would do is put the /sbin/wpa_supplicant -B -D ndiswrapper -i wlan0 -c /home/clemens/wpaconf in rc.local wich is the very LAST thing ran after all networking and everything else and then in rc.local after that line put ifup wlan0 and turn off the auto in interfaces for the wlan0

otherwise I'm at a loss as well like I said I don't know much about linux wireless support but I know on windows without the right wpa password it will connect to the wireless ap but not configure it leaving it in a "down" state with a 169.x.x.x ip address.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 06:56 PM
[CentOS] Problem with mrtg. No valid network interfaces detected. WojtekO Linux - Networking 1 05-22-2006 01:34 PM
/etc/network/interfaces broadcast problem nafai_anlashok Linux - Networking 2 04-26-2004 08:32 PM
Network interfaces assignment problem Perdido Linux - Networking 5 04-24-2004 03:25 PM
problem with network interfaces during boot time kylnas Linux - Hardware 3 08-15-2003 07:32 AM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration