LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2009, 06:11 AM   #16
siiib
LQ Newbie
 
Registered: Dec 2005
Posts: 18

Rep: Reputation: 0

hi there.. sorry to butt in but i have 'exactly' the same problem with ubuntu studio and the 'edimax .. works with everything..its included in the kernel'.. :-/ wireless card.. i managed to get it to work at one point by manually editing resolv.conf and adding a nameserver although this could be entirely coincidental.. the network manager is a complete POS.. it tells me i have no lan wlan0 when ifup wlan0 tells me otherwise.. i'd be interested to try wcid but i'll need to scavenge a 50 foot net cable first :-)
i'll follow this thread with interest
 
Old 09-16-2009, 06:11 PM   #17
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864

Original Poster
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Hi everyone, Sorry I wasn't able to get back to the forums for a little bit, I was having a strange hard drive issue that was preventing me from even booting to Ubuntu in the first place (some file system error, dunno exactly what happened).

Anyway, I'm still using a static IP address to get online. Plus, I didn't know that Wireshark was cross-platform; I thought it was just a GTK frontend for tcpdump or something like that... I'll try it next time I have to reboot (In case I might not be able to get into Linux again...I'm still suspicious that fsck *might* not have done a truly appropriate job of "fixing" the file system. I've never used it before until now, so I don't know what to expect).

As far as the hard drive issue, I'll have one of us look at it in more detail to see if it's a hardware problem or not (it shouldn't be, I just got the drive brand new a few weeks ago). Now I know why I should back up; that was too close for comfort!

Last edited by MrCode; 09-16-2009 at 07:48 PM.
 
Old 09-17-2009, 05:20 AM   #18
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by MrCode View Post
So if the system can't find the router MAC address, does that mean that I need to enter it manually somewhere? I see a spot to enter a MAC address in the "Edit Connections" dialog when I select my wireless network;
As you noted, the issue with the MAC address is probably not relevant since this seems to be an authentication issue, but I thought maybe I should try to clarify this. It is quite common on an ethernet connection (and I assume, wireless) for a machine to use ARP to find out the MAC address that corresponds to an IP address. If you run a packet sniffer on a normal connection, you will see this happen fairly frequently. While apparently the ARP cache can be manually manipulated with, for example, the arp command, I doubt that is what the entry in the "Edit Connections" dialog is for. (My most recent Ubuntu is 8.04, which I don't think has that dialog.) My *guess* is that is for changing the MAC address of your interface. If so, you certainly would not want to set it to the address of the router (or antyhing else on the LAN).

I doubt that you want to go playing around with the ARP cache unless you really know what you are doing. But I am willing to accept the instruction of others on that point.

Quote:
EDIT: I found an alternate resource on those EAP codes. It would appear that the machine is requesting authentication (code=1) and getting a response (code=2), but it doesn't seem to be getting proper authentication (code=3). However, it doesn't seem to be failing, either (code=4). If that's the case, then maybe entering the MAC address manually won't do anything...?
So it sounds like an authentication issue. If you can do so w/o disturbing others in the household too much, you might want to temporarily turn off authentication/encryption on your router and see if you can connect w/o problems. If so, that would definitely demonstrate the problem is authentication. While you are looking at the router settings, double check what types of encryption (wpa, wpa2, etc) it is setup to accept and make sure that matches the configuration on your computer.

If you want to get into the real nitty-gritty of authentication, you can tell [b]tcpdump[/u] and Wireshark to capture the entire packet so you can look at content. (That's way beyond anything I've done.)

-----

I keep wondering if maybe the communication with the wireless adapter isn't quite right. But I don't have any idea why power cycling the router would straighten things out. Just random thoughts while we are groping for a solution.

EDIT: I just realize that my suggestion to try temporarily turning off authentication has is complicated by the fact that simply power cycling your router seems to fix the problem. So I don't know of an *easy* test.

Last edited by blackhole54; 09-17-2009 at 05:25 AM.
 
Old 09-17-2009, 06:56 PM   #19
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864

Original Poster
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Thanks for the detailed reply. I will say that I have tried other types of encryption before, most notably WEP, and that seems to allow me to connect, but then the other computer that needs to connect wirelessly (a Windows laptop) can't seem to manage a stable connection. I don't think disabling encryption is an option either, simply because we'd like to keep the router secure (not my decision).

In the meantime I guess I'll just have to deal with resetting the router to get a net connection...for now it's easier than booting to Windows just to use the internet (going back and forth between OSes that frequently? Ack!).


..Just as a short note, does anyone have any good suggestions for Linux-based disk image backup software? Preferrably freeware, if possible. Doesn't necessarily have to be FLOSS. I've determined that my WD hard disk (the one with Ubuntu on it) is failing, and I can't seem to get rsync to work on /. I'll open a separate thread on this issue if need be.
 
Old 09-18-2009, 07:41 AM   #20
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by MrCode View Post
I will say that I have tried other types of encryption before, most notably WEP, and that seems to allow me to connect, but then the other computer that needs to connect wirelessly (a Windows laptop) can't seem to manage a stable connection. I don't think disabling encryption is an option either, simply because we'd like to keep the router secure (not my decision).
Understood. I was suggesting it simply as a diagnostic tool to make sure everything other than encryption was working. Then I realized that changing that setting would likely involve a reboot of the router. Given that a reboot seems to solve your problems anyway, it would not be much use as a diagnostic. :-/

BTW, I don't know if you are already aware of this, but WEP has been known to be broken for a long time. Just recently somebody announced they can crack WPA in under a minute. (I don't know if the talk where this was to be demonstrated has happened yet or not.) So for "consumer grade" solutions, if you want your wireless to be secure, you need to use WPA2.

Quote:
..Just as a short note, does anyone have any good suggestions for Linux-based disk image backup software? Preferrably freeware, if possible. Doesn't necessarily have to be FLOSS. I've determined that my WD hard disk (the one with Ubuntu on it) is failing, and I can't seem to get rsync to work on /. I'll open a separate thread on this issue if need be.
I've used partimage. A number of different live CDs contain it, including SystemRescueCd. It's main drawback is that if you want to send the data over a network, you must run partimaged on the remote computer. That too can be found on live CDs. (Knoppix used t o have both -- probably still does.) Unless you really need it, I would suggest you not use the compression since that is likely to slow things down. Something you dont need if the disk is failing.

If you just want to make a bit-for-bit copy of the disk (or a partition) and don't want to do anything fancy, dd will do the job. Since you are likely to be hitting bad blocks, dd_rescue might be more appropriate. It has a front end called dd_rhelp which is supposed to help more. (Disclaimer: I have not used dd_rhelp and have minimal experience with dd_rescue.) The output of dd (and I would guess the others) can be piped into ssh for easy transportation across a network. With a little more work but less overhead you can also do it with netcat running on each end.

Make sure you have everything lined up before you start so you don't excercise the disk unnecessarily. And definitely make sure you do any prior downloading and research from another machine!

BTW, just see what happened, I started up rsync to copy from / with the -a option. . As soon as I saw it was copying (verified on the other end) I stopped it. You probably want to exclude /proc and /sys. But you also don't want to waste time with a failing disk trying to get something to work. It is also possible it was having trouble due to bad sectors.

Good luck.

(If you need more info, you probably should start a new thread.)

Last edited by blackhole54; 09-18-2009 at 07:52 AM. Reason: typos
 
  


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
Sharing an XP net connection with a Ubuntu box - Ubuntu config query. uncle-c Linux - Newbie 2 11-06-2007 10:09 AM
ubuntu 5.10 post update net connection help ShadowShuriken Ubuntu 2 05-30-2006 09:14 AM
SUSE9.2 I-net connection lost after short time - DSL behind a router... Zzorrkk SUSE / openSUSE 8 02-01-2005 08:11 AM
java.net.SocketException: Connection reset irenequintana Linux - Networking 1 01-10-2005 01:37 AM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM

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

All times are GMT -5. The time now is 09:05 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
Open Source Consulting | Domain Registration