LinuxQuestions.org
Review your favorite Linux distribution.
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 06-11-2005, 06:18 AM   #1
Hanj
LQ Newbie
 
Registered: Mar 2005
Location: Sweden
Distribution: Ubuntu 5.04
Posts: 15

Rep: Reputation: 0
Ubuntu wlan problems


Here's my setup: a windows xp machine that connects to the internet through a D-LINK 604 router and a laptop running Ubuntu that connects to the internet via the xp computer. The laptop is a ECS G553 with an RTL-8139 wlan card (i think), and I use the latest version of ndiswrapper for it. The xp computer has a network bridge that connects the ethernet connection with an RT2500 USB wireless dongle connection.

I've used the config utilities that came with the USB network adapter to set it up to use ad-hoc mode with no encryption or password or anything (security is not as issue where I live).

Now here's the weird thing. The whole setup worked just fine until my XP computer crashed and I had to reinstall windows. After reinstalling, I changed all settings back the way they were and tried connecting from the laptop, using:
ifconfig ath0 up
iwconfig ath0 essid [mynetworkname]
dhclient ath0
But I couldn't get any IP. Also, "iwlist ath0 scan" produces no results. As I didn't change anything on my Ubuntu machine, I assumed there was something wrong with the settings on the XP comp. But then I tried connecting from my father's laptop (which runs Windows XP), and that worked fine. So now I'm really confused on where the problem lies, and I would greatly appreciate some hints on what to try, because I'm out of ideas.

Btw, here are some strange things I've noticed that may or may not be useful:
1. Isn't ndiswrapper supposed to create a "wlan0" alias? I followed the instructions in the wiki, but I still only have an ath0, and no wlan0.
2. It seems it doesn't work to change ath0 to ad-hoc mode. "iwconfig ath0 mode ad-hoc" gives no error messages, but it still shows up as Managed when I run iwconfig.
 
Old 06-13-2005, 03:43 AM   #2
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
What's the output of iwconfig ath0? Anything weird there?
 
Old 06-13-2005, 05:08 AM   #3
Hanj
LQ Newbie
 
Registered: Mar 2005
Location: Sweden
Distribution: Ubuntu 5.04
Posts: 15

Original Poster
Rep: Reputation: 0
iwconfig ath0 gives the following output:
Code:
ath0    IEEE 802.11g     ESSID:"han"
           Mode:Managed  Frequency: 2.412 GHz  Access Point: 00:00:00:00:00:00
           Bit Rate:54 Mb/s
           Encryption key:off
           Link Quality:22/100   Signal level:-93dBm  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
(I'm writing this from another computer, so I couldn't copy-paste. I hope I didn't make any typing errors above.)
 
Old 06-15-2005, 02:41 PM   #4
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
The first thing I notice is "Access Point". It should have the MAC of your wireless router. And it doesn't.
I guess you didn't memorise the MAC address of the thing (I know I never did), so go to the webinterface of the router and look it up.
Then:
# iwconfig ath0 ap xx:xx:xx:xx:xx:xx
# iwconfig ath0
It should show up now. I'm posting the command off the top of my head, so if it doesn't work;
# man iwconfig
hit /
and enter ap (then hit enter). The manual is a good read in any case if you have a wireless card

I also think you don't need "" for entering the ESSID;
# iwconfig ath0 essid han

If the AP MAC does show up in the iwconfig output, try to give your dhclient another kick:
# dhclient ath0

Hope it will work for you now!
 
Old 06-18-2005, 04:03 PM   #5
Hanj
LQ Newbie
 
Registered: Mar 2005
Location: Sweden
Distribution: Ubuntu 5.04
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your reply. I will try that.
 
  


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
wlan-ng problems (senao/engenius wlan usb adapter) poo bear Linux - Wireless Networking 6 05-05-2004 05:54 PM
wlan ng problems Doomer Linux - Wireless Networking 6 03-25-2004 08:37 AM
WLAN Problems technerd Linux - Wireless Networking 2 11-25-2003 07:40 AM
wlan problems Tomasfuego Linux - Hardware 0 09-02-2003 11:34 AM
wlan problems ragecyr Linux - Wireless Networking 3 05-13-2003 08:41 AM

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

All times are GMT -5. The time now is 06:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration