LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-27-2011, 05:21 PM   #1
NoobLion
LQ Newbie
 
Registered: Jul 2011
Distribution: Fedora , linux mint 9, current: OpenSuse 11.4
Posts: 8

Rep: Reputation: Disabled
Wireless question


So i was wondering if anyone can help me connect to a wireless network via command line instead of utilizing the GUI

so far i have done this, but im not sure what to do after this

Nexus:~ # ifconfig wlan0 down
Nexus:~ # ifconfig wlan0 up
Nexus:~ # iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wlan0 Scan completed :
Cell 01 - Address: 00:23:69:F0:16:50
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=49/70 Signal level=-61 dBm
Encryption keyn
ESSID:"Nexus"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000000debd7b8d8b
Extra: Last beacon: 119ms ago
IE: Unknown: 00054E65787573
IE: Unknown: 010882840B162430486C
IE: Unknown: 030109
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: Unknown: 32040C121860
IE: Unknown: 2D1A7E181BFFFF000001000000000000000000000000000000000000
IE: Unknown: 3D16090F0000000000000000000000000000000000000000
IE: Unknown: DD6F0050F204104A00011010440001021041000100103B00010310470010DB9D4CD25ABBDB29518CAAF574BF6F2510210007 4C696E6B737973102300075752543136304E102400063132333435361042000234321054000800060050F204000110110007 5752543136304E100800020084
IE: Unknown: DD050050F20500
IE: Unknown: DD050050F20500
IE: Unknown: DD090010180201F4050000
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C337E181BFFFF000001000000000000000000000000000000000000
IE: Unknown: DD1A00904C34090F0000000000000000000000000000000000000000
Cell 02 - Address: 00:22:2D:72:CD:CB
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=13/70 Signal level=-97 dBm
Encryption keyn
ESSID:"10SAM"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000002983f4d010a
Extra: Last beacon: 31ms ago
IE: Unknown: 0005313053414D
IE: Unknown: 010582848B962C
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 32080C1218243048606C
Cell 03 - Address: B0:E7:54:CE:C09
Channel:10
Frequency:2.457 GHz (Channel 10)
Quality=18/70 Signal level=-92 dBm
Encryption keyn
ESSID:""
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000000000c8181
Extra: Last beacon: 102ms ago
IE: Unknown: 0000
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010A
IE: Unknown: 050400010000
IE: Unknown: 0706555320010B1B
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32043048606C
IE: Unknown: DD0E0050F204104A0001101044000102

Nexus:~ # iwconfig wlan0 essid Nexus key 30BABA0D8B

btw, im using cell 01 in the scan and it is a simple wep encryption
Using OpenSuse 11.4

Thanks
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-27-2011, 06:16 PM   #2
phenyloxime
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Rep: Reputation: 2
everything looks right; the next thing you need to do is get an IP address.
To do that use dhclient as root:
ie.
Code:
 sudo dhclient wlan0
or dhcpcd

Code:
 sudo dhcpcd wlan0
One of those programs should be on your system, I just don't know which because I haven't used SuSE in a loooong time. Post back with your results

Last edited by phenyloxime; 07-27-2011 at 06:18 PM.
 
2 members found this post helpful.
Old 07-27-2011, 07:13 PM   #3
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
You might also need to use iwconfig wlan0 essid [ssid you wish to use] key [wep key]
or if it uses a wpa key, you will need to use wpa_supplicant.
you would do this before running dhcpclient or dhcpcd
 
Old 07-27-2011, 07:29 PM   #4
NoobLion
LQ Newbie
 
Registered: Jul 2011
Distribution: Fedora , linux mint 9, current: OpenSuse 11.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for the reply...sorry i just got back on...um but anyways i checked and i have

dhclient dhclient6 and dhcpcd

does it matter which one i use?
Im about to try them now...i will reply momentarily
 
Old 07-27-2011, 07:52 PM   #5
NoobLion
LQ Newbie
 
Registered: Jul 2011
Distribution: Fedora , linux mint 9, current: OpenSuse 11.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
im connected to the wireless. thanks

but anouther question right now i had to use dhclient

but when i tried to use dhcpcd it stated the following
Code:
Nexus:~ # dhcpcd wlan0
err, wlan0: Failed to lookup hostname via DNS: Name or service not known
anyways out of my own curiosity i was just wondering why this didnt work and dhclient did?
 
Old 08-01-2011, 06:18 PM   #6
phenyloxime
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Rep: Reputation: 2
i'd stick with dhclient if its working, thats the command I used to use on Debian. I'm suprised that you have dhcpcd also installed, but then again I don't know all that much about wireless, just enough to get connected . What your error message looks like to me, is that you HAVE dhcpcd (if you didn't, BASH would have said " command not found") but it is some how not configured properly. Glad to hear that dhclient is working for you. best of luck .
 
  


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
Question regarding diff between Wireless Access Pt and Wireless Routers stardotstar Linux - Wireless Networking 1 01-22-2006 08:58 PM
Wireless Question ThinkingLinux Linux - Wireless Networking 3 08-08-2004 02:22 PM

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

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