Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th October 2004, 12:06 AM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
How to get wlan0 to connect to the internet?

I'm using the D-Link DWL-G520. I followed all of the instructions from this page [http://ndiswrapper.sourceforge.net/w...p/Installation] and all seems to go well, but I don't know how to connect to the internet. I installed the driver that's on my supplied CD and the installation appears to have gone fine. I'm just to the point where I don't know what to do.

Going through the steps again after a reboot...

# /usr/sbin/ndiswrapper -l
Installed ndis driver:
neta3ab hardware present

# /sbin/modprobe/ndiswrapper
(nothing happens here, which the wiki says is a good thing)

# dmesg
(...)
PCI: Setting latency timer of device 0000:00:11.5 to 64
ndiswrapper version 0.10 loaded (preempt=no,smp=no)
ndiswrapper: using irq 11
divert: allocating divert_blk for wlan0
wlan0: ndiswrapper ethernet device 00:0f:3d:aa:5a:eb using driver a3ab.sys
ndiswrapper device wlan0 supports WPA with AES/CCMP and TKIP ciphers
ndiswrapper: driver a3ab.sys (D-Link,10/22/2003,3.0.0.44) added

# /sbin/iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:off/any
Mode:Managed Frequency:2.412GHz Access Point: 00:00:00:00:00:00
Bit Rate:108Mb/s
Encryption key:off
Link Quality:0/100 Signal level:-95 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

# /sbin/iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:0F:3D:3ED:A2
ESSID:"dlink"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437GHz
Quality:0/100 Signal level:-59 dBm Noise level:-256 dBm
Encryption key:on
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5.5Mb/s
Bit Rate:11Mb/s
Bit Rate:6Mb/s
Bit Rate:12Mb/s
Bit Rate:24Mb/s
Bit Rate:36Mb/s
Bit Rate:9Mb/s
Bit Rate:18Mb/s
Bit Rate:48Mb/s
Bit Rate:54Mb/s
Extra:bcn_int=100
Extra:atim=0

# /sbin/iwconfig wlan0 mode Managed

# /sbin/iwconfig wlan0 key restricted s:thisisthekey

# /sbin/iwconfig wlan0 essid dlink

It gets a little tricky here, I suppose. The site says to do one of three things: ifconfig wlan0 up OR dhclient wlan0 OR dhcpcd wlan0. I start with the first one...

# /sbin/ifconfig wlan0 up
(nothing happens, let's try the second one)

# /sbin/dhclient wlan0
Internet Software Consortium DHCP Client V3.0.1rc12
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
/sbin/dhclient-script: configuration for wlan0 not found.
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:0f:3d:aa:5a:eb
Sending on LPF/wlan0/00:0f:3d:aa:5a:eb
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
/sbin/dhclient-script: configuration for wlan0 not found.


OK. I know the wireless internet is working, because I'm using it, sorta. Right now, I'm connected to the internet thru my Mac. It's sharing the connection via Ethernet to my machine, and it's using an AirPort card. I don't know what this DHCP thing is supposed to do. Also, if everything it working correctly, how do I make my computer connect to the internet via wlan0?? I've disconnected the eth0 connection, rebooted, and done the instructions to see if having two connections was an issue but, nothing happens. I'm not a linux expert and I'm confused

Thanks in advance!

Last edited by leaded; 8th October 2004 at 04:04 PM. Reason: url typo
Reply With Quote
  #2  
Old 8th October 2004, 12:07 AM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
Oh, btw...

I found this website [http://www.ces.clemson.edu/linux/fc2-2200BG.shtml] and I might give it a shot (with my driver though) but I figured I should try and get this working before resorting to a kernel recompile (since I've never done that before!)
Reply With Quote
  #3  
Old 8th October 2004, 03:56 PM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
Does anyone know?
Reply With Quote
  #4  
Old 8th October 2004, 04:35 PM
foobar Offline
Registered User
 
Join Date: Oct 2004
Posts: 3
I give both of these commands after reboot. Then I'm connected. My ifcfg-wlan0 is quite similar to the ifcfg-eth1 on the website you mentioned.

sudo /sbin/ifconfig wlan0 up
sudo /sbin/ifup wlan0
Reply With Quote
  #5  
Old 11th October 2004, 03:45 AM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
ifconfig wlan0 192.168.2.10 netmask 255.255.255.0 up

route add default gw 192.168.2.1

That's assuming that my home network is 192.168.2 and that my road-runner router is 192.168.2.1.

The ifconfig line above defines an IP for the network card I am using, I don't use DHCP at home.

Just subsite an IP on your local subnet for the IP 192.168.2.10 illustrated above.

Your wireless route/internet hub is the IP in the "route add default" command above, just substitute your routers IP address for that one.
Reply With Quote
  #6  
Old 20th October 2004, 05:11 PM
Tolstyi Offline
Registered User
 
Join Date: Oct 2004
Posts: 2
Leaded,

I am working on the same issue. My card is up and is communicating with the router it seems, but I am not able to go online. Have you found a solution to your problem?
Reply With Quote
  #7  
Old 20th October 2004, 05:26 PM
Artemis Offline
Registered User
 
Join Date: Oct 2004
Location: The Netherlands
Age: 28
Posts: 220
This is how I nomally connect:

Code:
modprobe rt2400
ifconfig ra0 up
iwconfig ra0 essid -My SID, something like SpeedTouch blabla-
ifconfig ra0 10.0.0.201 netmask 255.255.255.0
route add default gw 10.0.0.138 ra0
iwconfig ra0 key -my personal WEP-key- open
__________________
"Lead the troops into battle like a monkey into space, your unneeded wars will be the death of our race. Not black, not white, no single ethnicity, I mean the death of the race called humanity..." Linux user 372264

Everybody is free to add me on msn or yahoo.
Reply With Quote
  #8  
Old 20th October 2004, 07:19 PM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
Tolstyi, I'm using the MadWifi drivers. Check out http://madwifiwiki.thewebhost.de/wik...ndDLinkDWLG520

It's for Mandrake but it easily applies to Fedora 2

PM me with questions!
Reply With Quote
  #9  
Old 6th December 2004, 11:07 PM
Narcisso Offline
Registered User
 
Join Date: Oct 2004
Location: Toronto Ont a beautiful place
Posts: 15
Same problem here

Ok just like Leaded I'm facing the same problem with the SAME WiFi card although I'm running Fedora Core 3 - mind you with no updates & also with DWL-G520 Rev A - an Atheros chipset. Moreover I'm using Ndiswrapper V.0.11;

I've setup for use with DHCP Server so is there any other info I can do besides the wlan0 up?
btw the link that leaded provided isn't working??

oddly enough the Internet Connection Control in FC3 does recognize my wlan0 as ndiswrapper - so I know its installed correctly; but when I try to connect via DHCP I get an error that card wasn't installed or something like that.
In wireless devices hardware; the DWL-G520 card is also listed as ndiswrapper; but the memory address isn't present & also the Interrupt Request is "unknown" ....in WinXP Pro (my other partition; I have the memory address and the IRQ is 16 but FC3 only will list up to IRQ 15! is there anything I can do in Terminal to querry the actual PCI Card DWL-G520 or even should I use the memory address that I have from WinXP?

thanks......ps leaded I cannot go the MadWifi part way to confusing and consuming ....just makes me welll "MAD".
Reply With Quote
  #10  
Old 7th December 2004, 04:38 AM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
I don't know what's with the IRQ assignments with the G520, but I share your frustration with wlan0 and ndiswrapper. It was detected for me as well but it was not working. And pretty damn frustrating!

You really should try and give MadWifi a shot. It worked immediately for me, where I wasted hours trying to get ndiswrapper to work.

Would you try MadWifi if it were RPMs? http://atrpms.net/name/madwifi/ Get RPMs for your kernel there. You'll need two files: the kernel module matching your running kernel, and the madwifi drivers themselves. If you can manage to find the right pair of files, there's nothing easier than running "rpm -Uvh *.rpm"

For me, when I did that in FC2 a few months ago, it worked like a breeze (I did the source method once, but I reinstalled FC2 for a sound card issue and did the RPMs that time). Kudzu should detect the card on reboot and even write the appropriate /etc/sysconfig/network-scripts/ifcfg-ath0 file. You'd probably want to re-write your own though. Here's my ifcfg-ath0 file...

Code:
STARTMODE=hotplug
DEVICE=ath0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
WIRELESS=yes
WIRELESS_MODE=Managed
WIRELESS_ESSID=(your wireless ap name here)
#WIRELESS_ENC_KEY=(your wep key here, uncomment to use)
WIRELESS_RATE=54M
I'm going to try FC3 next week I think. I'll try and remember to post here how I got my G520 working (if I do!)

Good luck! E-Mail me if you need some help!
Reply With Quote
  #11  
Old 7th December 2004, 10:12 PM
Narcisso Offline
Registered User
 
Join Date: Oct 2004
Location: Toronto Ont a beautiful place
Posts: 15
Here is where I'm at.

thanks for the advice Leaded.....the reason I'm iffy with MadWifi is because of the modules and other insanity....I don't even know which machine I'm running. I've got a Dell Optiplex forgot the model....but its got the P4 at 2.0Ghz I think its the brookdale chip (400Mhz front-side bus)....but when it comes to madwifi they want to know if its i386 (which I thought mine was) or i686 (what on earth is that?) or if its 64-bit which I know my machine isn't.

So onward with my results from FC3 & ndiswrapper v0.11.

ok this is my progress or lack of (i'm not sure which...) thus far:


I tried Foobar's information yet it just didn't work. Again its because I'm doing DHCP setup from the server.
[root@localhost ~]# /sbin/ifconfig wlan0 up
[root@localhost ~]# /sbin/ifup wlan0

Determining IP information for wlan0... failed.
So I tried James_in_Denver's advice....
[root@localhost ~]# route add default gw 192.168.0.100
SIOCADDRT: Network is unreachable

Ok a little more pertinent information....
[root@localhost ~]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"qq" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00
Bit Rate=108Mb/s
Encryption key:off
Link Quality:27/100 Signal level:-85 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

sit0 no wireless extensions.

[root@localhost ~]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:AA:00:00:00:00 (edited)
inet6 addr: fe80::20f:3dff:fe50:16b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21404 (20.9 KiB) TX bytes:0 (0.0 b)
Interrupt:9 Memory:ff8f0000-ff8fffff

NOTE: the memory field in the ifconfig wlan0 corresponds with the same info from WinXP Pro on my other partition.
Hmmmm being perplexed with this I figured i'd setup the essid with one of my neighbor's setup (he broadcasts his essid, no worries he because he MAC filters so I wouldn't interrupt his setup one bit. Oddly enough this is what I get (more information than I get) ...

[root@localhost ~]# ifconfig wlan0 essid BankoPhotographic
essid: Host name lookup failure
ifconfig: `--help' gives usage information.
[root@localhost ~]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:"qq" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00
Bit Rate=108Mb/s
Encryption key:off
Link Quality:27/100 Signal level:-85 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
sit0 no wireless extensions.

[root@localhost ~]# iwconfig wlan0
wlan0 IEEE 802.11b ESSID:"BankoPhotographic" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462GHz Access Point: 00:AA:00:00:00:00
Bit Rate=11Mb/s
Encryption key:off
Link Quality:40/100 Signal level:-65 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

[root@localhost ~]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:AA:00:00:00:00 (edited)
inet6 addr: fe80::20f:3dff:fe50:16b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:294 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58891 (57.5 KiB) TX bytes:2736 (2.6 KiB)
Interrupt:9 Memory:ff8f0000-ff8fffff

Strangely when I tried in WinXP Pro to get connected with Dlinks software or even Windows Zero Configuration Manager for Wireless connection to essid BankoPhotographic, I noticed that I'll also be sending packets every few seconds and I'll ALWAYS receive 8 packets from his wireless router - Dlink software will show I'm connected just like windows but of course I'll never be issued a valid IP as my neighbor MAC filters. But for my own network I STILL cannot get ANY IP address? I should be getting IP 192.
When I then changed the “essid” back to my own network ... I get this ...
[root@localhost ~]# iwconfig wlan0 essid qq
[root@localhost ~]# ifconfig wlan0

wlan0 Link encap:Ethernet HWaddr 00:AA:00:00:00:00 (edited)
inet6 addr: fe80::20f:3dff:fe50:16b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:329 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:67023 (65.4 KiB) TX bytes:2736 (2.6 KiB)
Interrupt:9 Memory:ff8f0000-ff8fffff

[root@localhost ~]# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"qq" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00
Bit Rate=108Mb/s
Encryption key:off
Link Quality:37/100 Signal level:-70 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

Last edited by Narcisso; 7th December 2004 at 10:14 PM.
Reply With Quote
  #12  
Old 7th December 2004, 11:15 PM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
You've got an i686, but anything lower than that will work. Remember back in the day when you could buy a '386,' or a '486?' I don't really either, but I remember we had 486s in our computer lab in middle school. The Intel Pentium series I think introduced the i585 and somewhere along the line, maybe, MMX, it became i686. But I don't know about that. Basically, I do know that P3 and beyond should handle i686. I'm on an Athlon 3000+ and it's technically an i686, but should run i586 and lower binaries.

To find out for sure what your architecture is, open a shell...
$ uname -m

Mine reports back i686. To find your kernel, open a shell and...
$ uname -r

I know it's not what you want to hear, but I spent so much time with ndiswrapper, I honestly believe it will not work. MadWifi is the only way I could get my G520 to work.

If you want, run "uname -r" and post back what kernel you're running, and I'll find the two RPM packages for you.

Once you have those two files, you would simply run the "rpm -Uvh *.rpm" command to install them. The card should be detected on reboot. How much easier can it be than that!
Reply With Quote
  #13  
Old 12th December 2004, 02:05 AM
jess Offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Hi, there.

Linux : Fedora Core 2
Kernel : 2.6.5-1.358
Wireless Card : Linksys Wireless-G Notebook Adapter (WPC54G - PCMCIA)
AP : Linksys Wireless-G Broadband Router (WRT54G)

Add

/etc/sysconfig/network-scripts/ifcfg-wlan0

# WPC54G
DEVICE=wlan0
BOOTPROTO=dhcp
HWADDR="type your wireless card hardware address"
ONBOOT=yes

# Wireless
TYPE=Wireless
MODE=Managed
ESSID="type your essid"


and then

/sbin/service network restart

I am able to get IP address everytime I start linux box.

Good luck and correct me plz.
Reply With Quote
  #14  
Old 15th December 2004, 04:43 AM
Narcisso Offline
Registered User
 
Join Date: Oct 2004
Location: Toronto Ont a beautiful place
Posts: 15
I'll be back soon

been busy for a while there sorry.

thanks for the info will get back in a day to let you know what my kernel is, Leaded and thanks.

jess glad to see FC2 is treating you well.....I had to goto FC3 (solved my earlier issue with MP3player/usbkey like butter). A little hesitant to try only because when I started FC2 with wifi card ON on boot I didn't see nothing but the error on the initialization screen. took me 2 days to get around that.

I'll keep it in mind though thanks.
Reply With Quote
  #15  
Old 15th December 2004, 04:55 AM
leaded Offline
Registered User
 
Join Date: May 2004
Posts: 373
I'm going to install FC3 tomorrow so I shall share my experience with getting my G520 working!
Reply With Quote
Reply

Tags
connect, internet, wlan0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0 bridged to eth0 to share internet/nfs shares fedora.linux.64 Servers & Networking 0 28th September 2009 02:30 PM
wlan0 won't connect dapla Servers & Networking 12 17th November 2008 09:50 PM
can't connect to internet with wlan0! bjh Servers & Networking 1 23rd January 2006 08:10 AM
wlan0 is set, but still no internet deejung Servers & Networking 2 30th September 2005 09:29 PM
wlan0 reads essid, but no internet shenry8N4Y Using Fedora 0 30th September 2005 07:56 PM


Current GMT-time: 13:19 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat