LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-28-2011, 02:50 AM   #1
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Rep: Reputation: Disabled
Connect to wireless using iwconfig


Can anybody help me to connect to a wireless network using iwconfig. I am running a debian linux, and need to connect to my wireless network witout starting a desktop and logging in.
 
Old 08-28-2011, 03:15 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hello ahoeffner, welcome to LQ,

please post the output of
Code:
iwconfig
Markus
 
Old 08-28-2011, 03:20 AM   #3
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Hello ahoeffner, welcome to LQ,

please post the output of
Code:
iwconfig
Markus
Hi Markus

I dont know the commands nessecary to connect
 
Old 08-28-2011, 03:29 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
I have understood this, but I want to see more information about your hardware and your network and therefore I asked for the output of the command.

Markus

EDIT: just open a terminal and type iwconfig and <ENTER>

Last edited by markush; 08-28-2011 at 03:55 AM.
 
Old 09-01-2011, 10:03 AM   #5
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
I have understood this, but I want to see more information about your hardware and your network and therefore I asked for the output of the command.

Markus

EDIT: just open a terminal and type iwconfig and <ENTER>
wlan0 IEEE 802.11abg ESSID:"home.hoeffner.net"
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry long limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff

!! I have set the essid
 
Old 09-01-2011, 11:41 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Well, your wireless interface is working, but you're not accossiated to the accesspoint.

You'll have to configure the system with the correct data of your network (encryption). Do you have networkmanager installed? I think this is the default program used by Debian.

Markus
 
Old 09-01-2011, 12:00 PM   #7
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Do you have networkmanager installed?
He doesn't want to use the GUI.

I start my wireless networking automatically at boot with this in the file
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-passphrase my_passphrase
wpa-ssid my_SSID
wireless-channel 11
You'll need to change the red bits to match your values.
 
Old 09-01-2011, 12:35 PM   #8
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
He doesn't want to use the GUI.

I start my wireless networking automatically at boot with this in the file
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-passphrase my_passphrase
wpa-ssid my_SSID
wireless-channel 11
You'll need to change the red bits to match your values.
This looks promising, I'll try it out tomorrow
 
Old 09-02-2011, 10:03 AM   #9
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ahoeffner View Post
This looks promising, I'll try it out tomorrow
It worked, thanks a lot !!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot get iwconfig to connect from command line SolymyrBhaal Linux - Networking 2 11-23-2009 03:23 PM
Using iwconfig to connect to a wireless network. No WEP radicalrain Linux - Wireless Networking 2 05-03-2008 10:09 PM
AP no connect with iwconfig Walvaine Linux - Wireless Networking 1 01-31-2007 11:47 PM
Cannot connect to Internet - iwconfig seems OK harry66 Linux - Wireless Networking 3 10-17-2004 10:32 AM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration