LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-29-2006, 05:49 AM   #1
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
ndiswrapper cannot activate netowrk interface wlan0


halo...i am using fedora core 4, 2.6.11-1.1369_FC4stk.16 ( after change to 16K stack size) and did installed ndiswrapper-1.23 into my distro.
I did followed the installation method from this link:
http://ndiswrapper.sourceforge.net/m...p/Installation

Everything is work fine, and i also did "ndiswrapper -m" to create aliasing to modprobe.conf and also disable irq
by typing "acpi=noirq" in terminal.

I did not have any problem when typing the commands:
iwconfig,iwlist wlan0 scan,ifconfig.

But when i try to activate my network card by typing "ifconfig wlan0 up", the error message shown as:
" No such device".

DId anyone know why ???
 
Old 08-29-2006, 09:51 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It sounds like your driver is loaded but you have not configured your network on wlan0. You can do that from the command line with:

# iwconfig wlan0 essid <insert essid name>
# iwconfig wlan0 key <insert WEP hex key> (if you use WEP)
# dhclient wlan0

If you are not using a WEP key, skip the second command. If you are using wpa, you need to install wpa supplicant to use it and even there, ndiswrapper often has problems with wpa. The best thing is turn all encryption off on your wireless access point and see if you can get connected. Then try wep 64 bit, wep 128 bit and wpa in that order.
 
Old 08-29-2006, 10:30 AM   #3
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
halo..may i know what is wpa ???
I did followed the instruction from your previous messages, and it shown as below:

[root@localhost kokchin]# iwconfig wlan0 essid 'WaveLAN Network'
[root@localhost kokchin]# dhclient wlan0
dhclient(3472) is already running - exiting.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.


Actually I did typed "dhclient wlan0" and it shown:

[root@localhost kokchin]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/wlan0/00:0c:f1:31:f6:af
Sending on LPF/wlan0/00:0c:f1:31:f6:af
Sending on Socket/fallback
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


Or i explained in details what I did by following the instruction installation of the link from my previous message.

after i intsalled the ndiswrapper and window driver, and it shown hardware exist and driver installed. Then i type " dmesg" :
ndiswrapper version 1.23 loaded (preempt=no,smp=no)
ndiswrapper: driver w70n51 (Intel,07/31/2003,1.2.0.58) loaded
ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
ndiswrapper: using irq 11
wlan0: vendor: 'Intel(R) PRO/Wireless 7100 LAN Card Driver'
wlan0: ethernet device 00:0c:f1:31:f6:af using NDIS driver w70n51, 8086:1043.5.conf
ndiswrapper (set_encr_mode:689): setting encryption mode to 6 failed (C00000BB)
wlan0: encryption modes supported: WEP; TKIP with WPA
ndiswrapper (iw_set_bitrate:508): setting bit rate failed (C0010017)
ndiswrapper (set_packet_filter:752): filter not set: 0x00000000, 0x00000009
ndiswrapper (ndis_open:770): couldn't set packet filter

((maybe i did typed some command such as iwconfig,iwlist,ifconfig and ifup ...then it appears the extra message such as:

ndiswrapper (set_encr_mode:689): setting encryption mode to 6 failed (C00000BB)
ndiswrapper (iw_set_bitrate:508): setting bit rate failed (C0010017)
ndiswrapper (set_packet_filter:752): filter not set: 0x00000000, 0x00000009
ndiswrapper (ndis_open:770): couldn't set packet filter ))


Then i checked the wlan0 interface whether got exist :

[root@localhost kokchin]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 IEEE 802.11b ESSID:"WaveLAN Network" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.422 GHz Access Point: 00:60:1D:04:9A:CE
Bit Rate=2 Mb/s
RTS thr=1600 B Fragment thr=2344 B
Encryption keyff
Power Managementff
Link Quality:0/100 Signal level:-67 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


Then i typed "iwlist wlan0 scan" :

[root@localhost kokchin]# iwlist wlan0 scan
Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 Scan completed :
Cell 01 - Address: 00:60:1D:04:9D:64
ESSID:"WaveLAN Network"
Protocol:IEEE 802.11b
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-69 dBm Noise level:-256 dBm
Encryption keyff
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5 Mb/s
Bit Rate:8 Mb/s
Extra:bcn_int=100
Extra:atim=0
Cell 02 - Address: 00:60:1D:04:9A:CE
ESSID:"WaveLAN Network"
Protocol:IEEE 802.11b
Mode:Managed
Frequency:2.422 GHz (Channel 3)
Quality:0/100 Signal level:-35 dBm Noise level:-256 dBm
Encryption keyff
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5 Mb/s
Bit Rate:8 Mb/s
Extra:bcn_int=100
Extra:atim=0


Then i typed "iwconfig wlan0 mode Managed" , then is ok.
Then i typed "iwconfig wlan0 essid "WaveLAN Network", then is ok.
Then i checked the essid whether is the name of "WaveLAN Network", it shown:

[root@localhost kokchin]# iwconfig wlan0
Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 IEEE 802.11b ESSID:"WaveLAN Network" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.422 GHz Access Point: 00:60:1D:04:9A:CE
Bit Rate=2 Mb/s
RTS thr=1600 B Fragment thr=2344 B
Encryption keyff
Power Managementff
Link Quality:0/100 Signal level:-69 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


Then i typed, "ifconfig wlan0 up", it shown error message " no such device" :

[root@localhost kokchin]# ifconfig wlan0 up
SIOCSIFFLAGS: No such device


Then i tried to typed "ifup wlan0" , it shown "failed to set ip address" :
 
Old 08-29-2006, 10:42 AM   #4
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
sorry..just now accidently post the message, please continue here:

Then i tried to typed "ifup wlan0" , it shown "failed to set ip address" :

[root@localhost kokchin]# ifup wlan0
Error : unrecognised wireless request "Mb/s"

Determining IP information for wlan0... failed.


Then i tried to typed "dhclient wlan0" it shown error message:

[root@localhost kokchin]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/wlan0/00:0c:f1:31:f6:af
Sending on LPF/wlan0/00:0c:f1:31:f6:af
Sending on Socket/fallback
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


Below are my details of /etc/sysconfig/network-scripts/ifcfg-wlan0 files:

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
IPV6INIT=no
ONBOOT=no
USERCTL=no
PEERDNS=yes
GATEWAY=
TYPE=Wireless
DEVICE=wlan0
HWADDR=00:0c:f1:31:f6:af
BOOTPROTO=dhcp
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
ESSID='WaveLAN Network'
CHANNEL=1
MODE=Managed
RATE=Auto


I did set the "ONBOOT = yes " , but it still cannot connect to internet.
I did typed "acpi=noirq" to disable ACPI , as taught in this link:

http://ndiswrapper.sourceforge.net/m.../index.php/FAQ

I did refer to 2 links below:

http://ndiswrapper.sourceforge.net/m...roubleshooting
http://ndiswrapper.sourceforge.net/m...roubleshooting

But still have face the same problem.
Did anyone have any ideas about this problem ??
I did really running out of ideas why still cannot connect to internet.
Please drop your advices and ideas here. Your advices are much appreciated.
 
Old 08-29-2006, 01:22 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
WPA is a type of strong encryption that is replacing WEP which can be pretty easily cracked.

For your ifcfg-wlan0 try something simple like this:

DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=no
HWADDR=00:0c:f1:31:f6:af
METRIC=10
MII_NOT_SUPPORTED=yes
WIRELESS_MODE=Managed
WIRELESS_ESSID=WaveLAN Network

You only need the HWADDR line if your wireless router has MAC filtering turned on and if that is the case, you need to add your wireless MAC to the allowed list of MACs. Also, I don't believe there should be any quotes around the ESSID name. I think you're pretty close to getting this working; just need to get the configuration right.
Finally, if you are dual booting with windows, confirm that wireless is working OK in windows.
 
Old 08-29-2006, 02:40 PM   #6
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
actually i trying to connect to internet through wireless in library, if I want to use WEP or WPA, is that i need to get the key from wireless host library or is can set by myself ??
 
Old 08-29-2006, 07:23 PM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It's unlikely that a library would use any form of encryption but you should ask the librarian. Libraries around here tend to be open networks that can be accessed for free. They certainly aren't using any MAC filtering.
 
Old 08-29-2006, 11:55 PM   #8
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
I did able to connect to internet through Window by setting in all "auto mode", is that possible I need to set the encryption key for WEP or WPA to connect wireless to internet in fedora by using ndiswrapper ??
 
Old 08-30-2006, 10:48 AM   #9
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you can connect through windows, it's an open network. You cannot connect to a wireless WEP or WPA encrypted network without the key which would have to be given to you by the library. Try the ifcfg-wlan0 I gave you and see if it works.
 
Old 08-30-2006, 10:33 PM   #10
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
halo kilgoretrout,

I still not able to activate my wlan0 interface after follow your instruction by changing the setting of ifcfg-wlan0 at /etc/sysconfig/network-srcipts/.

One thing i feel weird is if i am not able to activate my wlan0 interface, how can my wlan0 interface scan the access point in library ?

I knew my wlan0 interface is not activated when i typed "ifconfig" , there is not wlan0 interface appear, just loop back interface and ethernet interface(wired connection). Besides that, when i tried the commmand "ifconfig wlan0 up", it shown that no such device. Then, i tried "ifup wlan0" , it shown faied to determine IP.


Did anyone have face similar condition as me ??
Please drop your message here if you have any ideas...Thanks!!
 
Old 08-31-2006, 12:43 AM   #11
sejjiin
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 10.2
Posts: 8

Rep: Reputation: 0
Does ndiswrapper detect your hardware?

I was just having the same problem with an rtl8180 card. When you ndiswrapper -l, does it show the driver as installed AND hardware detected? That's where my problem was; my hardware was not being detected because the wrong driver was installed. Actually, it was the right driver, but it had to be hacked before it worked, but that is neither here nor there (unless, of course, you are using this driver as well; if so, check out this website, my card was #11).

EDIT: Uh, it won't let me post the website since i don't have 3 posts yet. Email me and I'll send it to you if needed.
 
Old 08-31-2006, 02:56 AM   #12
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
when i typed ndiswrapper -l , my hardware is exist and type "dmesg"...everything is ok as shown from the terminal. i did "ndiswrapper -m" and also "apci=noirq" as stated in ndiswrapper FAQ.

I just curious if my cannot activate my wlan0 interface, why i can scan my access point in library ??

I did stated from my last post message.
If anyone know about it please post your ideas here. Thanks a lot
 
Old 08-31-2006, 03:30 AM   #13
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Thanks to kilgoretrout first, thx for your advices and suggestions to me even though it not help me to get wireless connection successfully.

finally i can connect to internet through wireless. I did changed to use older version of ndiswrapper, whcih is ndiswrapper-1.1

Now i know the reason why i cannot connect to wireless connection. This is because the wireless tool version cause me cannot connect to internet through wireless althought i seem like able to scan my library access point.
You can see the error message like this from my previous messages :

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

I am not sure how to install the latest version of wireless tools. It seem like need to recompile the kernel if i am not mistaken. If anyone know how to upgrade the wireless tool version please let me know it .Thanks a lot.
 
  


Reply



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
How to activate sit0 interface? barghota Linux - Networking 2 09-27-2006 02:55 PM
Failed to activate interface : SIOCSIFADDR: No such device wlan0: hasnain Linux - Wireless Networking 1 04-11-2005 11:13 AM
Strange interface wlan0 eduardomsilva Linux - Wireless Networking 8 02-17-2005 09:52 AM
can't activate network interface taoweijia Linux - General 4 06-03-2004 10:08 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration