LinuxQuestions.org
Review your favorite Linux distribution.
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 03-01-2008, 08:25 PM   #1
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Rep: Reputation: 0
Question PCI Wireless, set it up, can scan, but not connect


Hi all,

I've got Atheros wireless adapter on my PC, and a NetComm NB600W router (external).
I've installed MadWiFi and it works, but the problem is following:

I can scan and see the networks around (using KInternet), but i cannot connect to any of them. It says 'Error connecting to: MYLAN You are currently not associated with this access point' or something like this 20-30 secs after 'Connect' button was pressed.

Can you help me plz?
I've got WPA-PSK encryption

PS im a linux n00b
PPS running SuSE 10.0
 
Old 03-02-2008, 07:05 AM   #2
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Association is afaik done with
Code:
iwconfig $device ap $ap_mac
where $device is something like eth0 or eth1 and $ap_mac is the MAC address of the access point you want to connect to.
 
Old 03-03-2008, 02:18 AM   #3
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kummiliim View Post
Association is afaik done with
Code:
iwconfig $device ap $ap_mac
where $device is something like eth0 or eth1 and $ap_mac is the MAC address of the access point you want to connect to.
That worked, thanks
Now I can connect to the network, but i cannot "mtr" the router

Code:
mtr 192.168.1.254
it starts the mtr up, but i have no response from it (the last line it shows is only the table headers, like "lost(%)" or "sent"
 
Old 03-03-2008, 02:00 PM   #4
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Never used mtr but quick search says it's similar to ping, so you probably have to use a command line operator to specify the network interface to use (again eth1 probably, I assume by default it uses your ethernet card). Man page says:
Quote:
-a IP.ADD.RE.SS
--address IP.ADD.RE.SS

Use this option to bind outgoing packets' socket to specific interface, so that any packet will be sent through this interface. NOTE that this option doesn't apply to DNS requests (which could be and could not be what you want).
That should be the one but it suggest ip-address as the parameter. I'd think something like
Code:
mtr -a eth1 192.168.1.254
I could be totally wrong here, just suggesting.

For example with ping I have to use
Code:
ping -I eth1 whateverip
when connected with my wifi card.

Last edited by kummiliim; 03-03-2008 at 02:01 PM.
 
Old 03-03-2008, 11:29 PM   #5
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
mtr is working correctly, it was the firewall.
btw my interface is ath0

However, the KInternet says i am connected successfully to MYLAN, even if the password is wrong %)
Is this a "correct" way it behaves?

Last edited by Terror; 03-03-2008 at 11:30 PM.
 
Old 03-04-2008, 02:08 AM   #6
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
and now, when i rebooted, the firewall is down, but it doesn't work AGAIN. I mean it can see the networks around, i can connect (using random passwords), but the router does not assign me any IP address

Last edited by Terror; 03-05-2008 at 04:01 AM.
 
Old 03-04-2008, 12:37 PM   #7
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
That's what dhcp is for. I use dhcpcd myself:
Code:
 dhcpcd -d ath0
I don't know how to use the other common ones.
 
Old 03-05-2008, 04:03 AM   #8
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
it's not dhcp, imho, coz

"mtr 192.168.1.254"

does not seem to send packets
 
Old 03-05-2008, 08:34 AM   #9
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Quote:
Originally Posted by Terror View Post
it's not dhcp, imho, coz

"mtr 192.168.1.254"

does not seem to send packets
Well, you can't send packets that you want returned if you don't have an ip addres. You mentioned that the router didn't give you one. Dhcp is how it gives the ip. The other cariant is setting the network settings manually- static ip.
 
Old 03-05-2008, 10:46 PM   #10
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
ok, i'll try..

Edit:
dhcpcd seems to run in console, not as a daemon... quick look thru manpages did not show anything

Last edited by Terror; 03-06-2008 at 02:05 AM.
 
Old 03-08-2008, 01:35 PM   #11
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
It prints out some basic stuff with the -d flag and then goes to backround (ps aux | grep dhcpcd). The more important thing is did that help you establish a connection so you can use your program?
 
Old 03-08-2008, 03:47 PM   #12
Terror
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
No, it does not print out anything, it just stays in the console -- does not go background. The "ps -A |grep dhcp" does not show it.
The only way to close it is Ctrl+C
 
  


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
Fedora 8, Wireless can scan network, asks for password, fails to connect. Learn41 Linux - Newbie 2 02-19-2008 08:46 PM
Can Scan for Wireless Network.. view it..but cant connect?! Damien295x Fedora 8 10-14-2006 12:24 AM
wireless help! PCI WMP54GS cant connect Blue Vision Linux - Wireless Networking 1 01-19-2006 04:32 AM
Wireless PCI card set up on Ubuntu moises Linux - Wireless Networking 4 09-03-2005 02:27 PM
How do you set up a Ralink Wireless PCI Card in Fedora? jhern54 Linux - Wireless Networking 3 05-09-2005 11:08 PM

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

All times are GMT -5. The time now is 11:44 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