Networking Forums

Networking Forums > Computer Networking > Linux Networking > Wireless card 'ifup: operation failed'

Reply
Thread Tools Display Modes

Wireless card 'ifup: operation failed'

 
 
Lord Vain
Guest
Posts: n/a

 
      04-13-2006, 12:17 PM
Debian based Linux:

I'm trying to get my RT2500 based wifi card working but it the 'ifup ra0'
command always returns: 'operation failed'

The /etc/network/interaces looks somewhat like this

auto ra0
iface ra0 inet dhcp
wireless-essid MyESSID
wireless-key 12345678
wireless-channel 5

First problem is that the interface ra0 doesn't come up automatically during
boot. The script therefore doesn't work and I have to start it by hand:

ifconfig ra0 up

Does anyone know in what script I need to add a 'ifconfig ra0 up' command?

Once it's up I can check it with the 'ifconfig' and 'iwconfig' commands.
That works fine but the interface isn't configured.

Now I do a :

ifup ra0

but I it returns (after 10 seconds or so):

operation failed.

That's it, no error indication. Is there a log file where I can view what
the problem is?


*** Posted via a free Usenet account from http://www.teranews.com ***
 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      04-13-2006, 04:06 PM
Lord Vain wrote:
> Debian based Linux:
>
> I'm trying to get my RT2500 based wifi card working but it the 'ifup ra0'
> command always returns: 'operation failed'
>
> The /etc/network/interaces looks somewhat like this
>
> auto ra0
> iface ra0 inet dhcp
> wireless-essid MyESSID
> wireless-key 12345678
> wireless-channel 5
>
> First problem is that the interface ra0 doesn't come up automatically during
> boot. The script therefore doesn't work and I have to start it by hand:
>
> ifconfig ra0 up
>
> Does anyone know in what script I need to add a 'ifconfig ra0 up' command?
>
> Once it's up I can check it with the 'ifconfig' and 'iwconfig' commands.
> That works fine but the interface isn't configured.
>
> Now I do a :
>
> ifup ra0
>
> but I it returns (after 10 seconds or so):
>
> operation failed.
>
> That's it, no error indication. Is there a log file where I can view what
> the problem is?
>
>
> *** Posted via a free Usenet account from http://www.teranews.com ***


Does your rt2500 module get loaded? ("make install" should make sure it
does)

If you change the script in /etc/modprobe.d/wireless by adding the
following line:

options rt2500 debug=5

and run update-modules, then you will get logging in /var/log/kern.log
and /var/log/messages

Robert
 
Reply With Quote
 
Lord Vain
Guest
Posts: n/a

 
      04-14-2006, 05:40 PM

"Robert Harris" <(E-Mail Removed)> wrote in message
news:1Gu%f.44802$(E-Mail Removed) ...
> Lord Vain wrote:
> > Debian based Linux:
> >
> > I'm trying to get my RT2500 based wifi card working but it the 'ifup

ra0'
> > command always returns: 'operation failed'
> >
> > The /etc/network/interaces looks somewhat like this
> >
> > auto ra0
> > iface ra0 inet dhcp
> > wireless-essid MyESSID
> > wireless-key 12345678
> > wireless-channel 5
> >
> > First problem is that the interface ra0 doesn't come up automatically

during
> > boot. The script therefore doesn't work and I have to start it by hand:
> >
> > ifconfig ra0 up
> >
> > Does anyone know in what script I need to add a 'ifconfig ra0 up'

command?
> >
> > Once it's up I can check it with the 'ifconfig' and 'iwconfig' commands.
> > That works fine but the interface isn't configured.
> >
> > Now I do a :
> >
> > ifup ra0
> >
> > but I it returns (after 10 seconds or so):
> >
> > operation failed.
> >
> > That's it, no error indication. Is there a log file where I can view

what
> > the problem is?
> >
> >
> > *** Posted via a free Usenet account from http://www.teranews.com ***

>
> Does your rt2500 module get loaded? ("make install" should make sure it
> does)
>
> If you change the script in /etc/modprobe.d/wireless by adding the


There isn't a /etc/modprobe.d/wireless file on my system so I can't take
your advice.

I think I've figured out that the 'Operation failed' message is actually
coming from the 'pump' DHCP client. Does that ring a bell with anyone?


*** Posted via a free Usenet account from http://www.teranews.com ***
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      04-14-2006, 06:42 PM
"Lord Vain" <(E-Mail Removed)> writes:


>"Robert Harris" <(E-Mail Removed)> wrote in message
>news:1Gu%f.44802$(E-Mail Removed) k...
>> Lord Vain wrote:
>> > Debian based Linux:
>> >
>> > I'm trying to get my RT2500 based wifi card working but it the 'ifup

>ra0'
>> > command always returns: 'operation failed'


Which "operation failed" You have no idea tht went wrong, but you think
that you can selectively report from the full thing and that your
selection will be an accurate indication of the problem.


>> >
>> > The /etc/network/interaces looks somewhat like this
>> >
>> > auto ra0
>> > iface ra0 inet dhcp
>> > wireless-essid MyESSID
>> > wireless-key 12345678
>> > wireless-channel 5
>> >


On which operating system? And why in the world would you specify the
channel?


>> > First problem is that the interface ra0 doesn't come up automatically

>during


Probably the module is not loaded.
Make sure that th emodule is getting loaded.
lsmod


>> > boot. The script therefore doesn't work and I have to start it by hand:
>> >
>> > ifconfig ra0 up


? ifconfig will do absolutely nothing of any worth. Your system has to load
the module to run your wireless card. That module then selects and
interface. Not you.


>> >
>> > Does anyone know in what script I need to add a 'ifconfig ra0 up'

>command?


None. That is not the problem.

>> >
>> > Once it's up I can check it with the 'ifconfig' and 'iwconfig' commands.
>> > That works fine but the interface isn't configured.


And if you do
iwlist s
do you get any reports of anything?


>> >
>> > Now I do a :
>> >
>> > ifup ra0
>> >
>> > but I it returns (after 10 seconds or so):
>> >
>> > operation failed.
>> >
>> > That's it, no error indication. Is there a log file where I can view

>what
>> > the problem is?


/var/log/messages
dmesg

>> >
>> >
>> > *** Posted via a free Usenet account from http://www.teranews.com ***

>>
>> Does your rt2500 module get loaded? ("make install" should make sure it
>> does)
>>
>> If you change the script in /etc/modprobe.d/wireless by adding the


>There isn't a /etc/modprobe.d/wireless file on my system so I can't take
>your advice.


And your system is what? Almost all distributions use slightly different
ways of setting up . modprobe.d is in Debian based systems. The Linux
kernel people use modprobe.conf



>I think I've figured out that the 'Operation failed' message is actually
>coming from the 'pump' DHCP client. Does that ring a bell with anyone?


If the previous line says
getting dhcp address: Operation failed
then yes, the problem is getting a dhcp address. It may have nothing to do
with your card at all.


lsmod
and look for your module driver for the card
iwlist s
and look for reports of wireless access points.
ifup <name of the interface reported by iwlist to have access points>
Then look at
iwconfig
to see if it is connected to the access point.

If all of the prvious work then it is dhcp. Perhaps you forgot to set up
your wireless router to run dhcp.

(I have found dhclient better than dhcpcd but I have not tried pump.)






 
Reply With Quote
 
Lord Vain
Guest
Posts: n/a

 
      04-14-2006, 08:45 PM

"Unruh" <unruh-(E-Mail Removed)> wrote in message
news:e1oqfi$s5q$(E-Mail Removed)...
> "Lord Vain" <(E-Mail Removed)> writes:
>
>
> >"Robert Harris" <(E-Mail Removed)> wrote in message
> >news:1Gu%f.44802$(E-Mail Removed) k...
> >> Lord Vain wrote:
> >> > Debian based Linux:
> >> >
> >> > I'm trying to get my RT2500 based wifi card working but it the 'ifup

> >ra0'
> >> > command always returns: 'operation failed'

>
> Which "operation failed" You have no idea tht went wrong, but you think
> that you can selectively report from the full thing and that your
> selection will be an accurate indication of the problem.
>
>
> >> >
> >> > The /etc/network/interaces looks somewhat like this
> >> >
> >> > auto ra0
> >> > iface ra0 inet dhcp
> >> > wireless-essid MyESSID
> >> > wireless-key 12345678
> >> > wireless-channel 5
> >> >

>
> On which operating system? And why in the world would you specify the
> channel?
>
>
> >> > First problem is that the interface ra0 doesn't come up automatically

> >during

>
> Probably the module is not loaded.
> Make sure that th emodule is getting loaded.
> lsmod
>
>
> >> > boot. The script therefore doesn't work and I have to start it by

hand:
> >> >
> >> > ifconfig ra0 up

>
> ? ifconfig will do absolutely nothing of any worth. Your system has to

load
> the module to run your wireless card. That module then selects and
> interface. Not you.


If I do 'ifconfig' I only get the loopback interface 'lo.' I have to do
'ifconfig ra0 up' before I see the 'ra0' interface with 'ifconfig'. Also,
the 'ifup ra0' call will simply fail with 'ignoring unknown interface ra0'
if I don't do this. The module 'rt2500' is loaded (aliases to 'ra0') is
loaded, that's for sure.

>
>
> >> >
> >> > Does anyone know in what script I need to add a 'ifconfig ra0 up'

> >command?

>
> None. That is not the problem.
>
> >> >
> >> > Once it's up I can check it with the 'ifconfig' and 'iwconfig'

commands.
> >> > That works fine but the interface isn't configured.

>
> And if you do
> iwlist s
> do you get any reports of anything?
>
>
> >> >
> >> > Now I do a :
> >> >
> >> > ifup ra0
> >> >
> >> > but I it returns (after 10 seconds or so):
> >> >
> >> > operation failed.
> >> >
> >> > That's it, no error indication. Is there a log file where I can view

> >what
> >> > the problem is?

>
> /var/log/messages
> dmesg


I don't see any messages in dmesg pertaining to my 'ra0' interface.


>
> >> >
> >> >
> >> > *** Posted via a free Usenet account from http://www.teranews.com ***
> >>
> >> Does your rt2500 module get loaded? ("make install" should make sure it
> >> does)
> >>
> >> If you change the script in /etc/modprobe.d/wireless by adding the

>
> >There isn't a /etc/modprobe.d/wireless file on my system so I can't take
> >your advice.

>
> And your system is what? Almost all distributions use slightly different
> ways of setting up . modprobe.d is in Debian based systems. The Linux
> kernel people use modprobe.conf


It's Damn Small Linux, a Debian derivative.

>
>
>
> >I think I've figured out that the 'Operation failed' message is actually
> >coming from the 'pump' DHCP client. Does that ring a bell with anyone?

>
> If the previous line says
> getting dhcp address: Operation failed
> then yes, the problem is getting a dhcp address. It may have nothing to do
> with your card at all.


No, but if I bring up the interface ra0 with 'ifconfig ra0 up' and then do a
'/sbin/pump' I get the exact same message: 'Operation failed.' with
identical capitalization and punctuation, so I'm guessing it's actually
coming from 'pump', but I'm not 100% sure.

>
>
> lsmod
> and look for your module driver for the card
> iwlist s
> and look for reports of wireless access points.
> ifup <name of the interface reported by iwlist to have access points>
> Then look at
> iwconfig
> to see if it is connected to the access point.


If I set the interface manually with 'iwconfig key' and iwconfig essid' the
card connects to the AP but I don't get an IP (checking with ifconfig).

>
> If all of the prvious work then it is dhcp. Perhaps you forgot to set up
> your wireless router to run dhcp.
>
> (I have found dhclient better than dhcpcd but I have not tried pump.)


No, the AP is correctly configured, Windows clients connect with DHCP.


*** Posted via a free Usenet account from http://www.teranews.com ***
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      04-15-2006, 12:18 AM
"Lord Vain" <(E-Mail Removed)> writes:


>"Unruh" <unruh-(E-Mail Removed)> wrote in message
>news:e1oqfi$s5q$(E-Mail Removed)...
>> "Lord Vain" <(E-Mail Removed)> writes:
>>
>>
>> >"Robert Harris" <(E-Mail Removed)> wrote in message
>> >news:1Gu%f.44802$(E-Mail Removed) k...
>> >> Lord Vain wrote:
>> >> > Debian based Linux:
>> >> >
>> >> > I'm trying to get my RT2500 based wifi card working but it the 'ifup
>> >ra0'
>> >> > command always returns: 'operation failed'

>>
>> Which "operation failed" You have no idea tht went wrong, but you think
>> that you can selectively report from the full thing and that your
>> selection will be an accurate indication of the problem.
>>
>>
>> >> >
>> >> > The /etc/network/interaces looks somewhat like this
>> >> >
>> >> > auto ra0
>> >> > iface ra0 inet dhcp
>> >> > wireless-essid MyESSID
>> >> > wireless-key 12345678
>> >> > wireless-channel 5
>> >> >

>>
>> On which operating system? And why in the world would you specify the
>> channel?
>>
>>
>> >> > First problem is that the interface ra0 doesn't come up automatically
>> >during

>>
>> Probably the module is not loaded.
>> Make sure that th emodule is getting loaded.
>> lsmod
>>
>>
>> >> > boot. The script therefore doesn't work and I have to start it by

>hand:
>> >> >
>> >> > ifconfig ra0 up

>>
>> ? ifconfig will do absolutely nothing of any worth. Your system has to

>load
>> the module to run your wireless card. That module then selects and
>> interface. Not you.


>If I do 'ifconfig' I only get the loopback interface 'lo.' I have to do
>'ifconfig ra0 up' before I see the 'ra0' interface with 'ifconfig'. Also,
>the 'ifup ra0' call will simply fail with 'ignoring unknown interface ra0'
>if I don't do this. The module 'rt2500' is loaded (aliases to 'ra0') is
>loaded, that's for sure.


I do not care what it is aliased to. Unfortunately Linux does not pay any
attention to those aliases it seems.

a)
rmmod rt2500
modprobe ra2500
dmesg|tail
to look for things wich may give you a hint about the card.

Then do
iwlist s


>>
>>
>> >> >
>> >> > Does anyone know in what script I need to add a 'ifconfig ra0 up'
>> >command?

>>
>> None. That is not the problem.
>>
>> >> >
>> >> > Once it's up I can check it with the 'ifconfig' and 'iwconfig'

>commands.
>> >> > That works fine but the interface isn't configured.

>>
>> And if you do
>> iwlist s
>> do you get any reports of anything?


AND IF YOU DO iwlist s DO YOU GET ANY REPORTS OPF ANYTHING?

Sheesh. Do you really want help? Please try the things that people suggest.



>>
>>
>> >> >
>> >> > Now I do a :
>> >> >
>> >> > ifup ra0
>> >> >
>> >> > but I it returns (after 10 seconds or so):
>> >> >
>> >> > operation failed.
>> >> >
>> >> > That's it, no error indication. Is there a log file where I can view
>> >what
>> >> > the problem is?

>>
>> /var/log/messages
>> dmesg


>I don't see any messages in dmesg pertaining to my 'ra0' interface.


You really selectively read.

Why do you thing your interface is called ra0?






>>
>> >> >
>> >> >
>> >> > *** Posted via a free Usenet account from http://www.teranews.com ***
>> >>
>> >> Does your rt2500 module get loaded? ("make install" should make sure it
>> >> does)
>> >>
>> >> If you change the script in /etc/modprobe.d/wireless by adding the

>>
>> >There isn't a /etc/modprobe.d/wireless file on my system so I can't take
>> >your advice.

>>
>> And your system is what? Almost all distributions use slightly different
>> ways of setting up . modprobe.d is in Debian based systems. The Linux
>> kernel people use modprobe.conf


>It's Damn Small Linux, a Debian derivative.


>>
>>
>>
>> >I think I've figured out that the 'Operation failed' message is actually
>> >coming from the 'pump' DHCP client. Does that ring a bell with anyone?

>>
>> If the previous line says
>> getting dhcp address: Operation failed
>> then yes, the problem is getting a dhcp address. It may have nothing to do
>> with your card at all.


>No, but if I bring up the interface ra0 with 'ifconfig ra0 up' and then do a
>'/sbin/pump' I get the exact same message: 'Operation failed.' with
>identical capitalization and punctuation, so I'm guessing it's actually
>coming from 'pump', but I'm not 100% sure.


>>
>>
>> lsmod
>> and look for your module driver for the card
>> iwlist s
>> and look for reports of wireless access points.
>> ifup <name of the interface reported by iwlist to have access points>
>> Then look at
>> iwconfig
>> to see if it is connected to the access point.


>If I set the interface manually with 'iwconfig key' and iwconfig essid' the
>card connects to the AP but I don't get an IP (checking with ifconfig).


Of course not.

Again, do
iwlist s
first.



>>
>> If all of the prvious work then it is dhcp. Perhaps you forgot to set up
>> your wireless router to run dhcp.
>>
>> (I have found dhclient better than dhcpcd but I have not tried pump.)


>No, the AP is correctly configured, Windows clients connect with DHCP.


Try using dhclient instead of pump.

But it may still be that you have not set stuff up properly on the router.



 
Reply With Quote
 
marcrho
Guest
Posts: n/a

 
      04-22-2006, 07:07 AM
On Thu, 13 Apr 2006 14:17:51 +0200, Lord Vain wrote:

> Debian based Linux:
>
> I'm trying to get my RT2500 based wifi card working but it the 'ifup ra0'
> command always returns: 'operation failed'
>
> The /etc/network/interaces looks somewhat like this
>
> auto ra0
> iface ra0 inet dhcp
> wireless-essid MyESSID
> wireless-key 12345678
> wireless-channel 5
>
> First problem is that the interface ra0 doesn't come up automatically during
> boot. The script therefore doesn't work and I have to start it by hand:
>
> ifconfig ra0 up
>
> Does anyone know in what script I need to add a 'ifconfig ra0 up' command?
>
> Once it's up I can check it with the 'ifconfig' and 'iwconfig' commands.
> That works fine but the interface isn't configured.
>
> Now I do a :
>
> ifup ra0
>
> but I it returns (after 10 seconds or so):
>
> operation failed.
>
> That's it, no error indication. Is there a log file where I can view what
> the problem is?
>
>
> *** Posted via a free Usenet account from http://www.teranews.com ***


Have you tried to load the RT2570 module? I repeatedly hit my head against
the wall trying to get a D-Link Wireless USB adapter working in Ubuntu
with the RT2500 driver and then I came upon this article -->
http://www.ubuntuforums.org/showthread.php?t=106846

And here is the home page rt2570 -->
http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page

You may not be using Ubuntu but the gist is that you may need to use the
RT2570 module instead of the RT2500 module. Worked for me (after a full
day of trying and crying).

Are you familiar with the modules tools (modprobe, lsmod, depmod, etc.) to
check for/load the device module?

MR

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ifup problem pechoi@syr.edu Linux Networking 0 01-28-2008 03:27 PM
Wireless and Crossover co-operation Juan Hanglow Home Networking 4 10-29-2005 12:58 PM
ipw2100 and ifup Roland H?pfner Linux Networking 0 01-10-2005 05:22 PM
Wireless Setup for moble operation Brian Stirling Windows Networking 0 07-15-2004 08:19 PM
Wireless Bridge Operation Andy M Wireless Internet 0 02-26-2004 12:07 PM



1 2 3 4 5 6 7 8 9 10 11