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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-04-2010, 12:08 AM
|
#1
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Rep:
|
Need to know how to configure a Wi-Fi connection from CLI: iwconfig is not enough
Is there a command I need to type from the pure CLI other than:
Code:
iwconfig wlan0 essid <SSID> key <network key>
to configure a WEP-enabled Internet connection from a pure CLI (no X running)? If so, please post it here.
|
|
|
|
10-04-2010, 12:17 AM
|
#2
|
|
Member
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247
Rep:
|
|
|
|
|
10-04-2010, 06:42 AM
|
#3
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,358
|
Hi,
Quote:
Originally Posted by Kenny_Strawn
Is there a command I need to type from the pure CLI other than:
Code:
iwconfig wlan0 essid <SSID> key <network key>
to configure a WEP-enabled Internet connection from a pure CLI (no X running)? If so, please post it here.
|
I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query. We will aid you when you help yourself to a solution. Provide us with what you have attempted and then maybe someone will be able to assist.
Assuming that your device is 'wlan0' then you should either use 'dhcp' or a static IP assignment. Your command shown assumes that the assignment has been made for an IP address.
As root you can use the below to configure a static IP for your wlan0 on your LAN;
Code:
~#ifconfig wlan0 192.168.1.18 #<<< available IP
~#route add default gw 192.168.1.1 #<<your gateway
~#iwlist wlan0 scan #<< use information to fill in for essid & ap information
~#iwconfig wlan0 essid "Your Wireless"
~#iwconfig wlan0 key your_key_here
~#iwconfig wlan0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist
I use the script below to setup my wireless while experimenting.
Code:
wlan.sh;
#!/bin/bash
#
#10-26-09 13:30
#setup the wlan0 device
#
/sbin/ifconfig wlan0 192.168.1.18
/sbin/route add default gw 192.168.1.1
/sbin/iwconfig wlan0 essid "Your_Wireless_Access"
/sbin/iwconfig wlan0 key Your_key
/sbin/iwconfig wlan0 ap 00:00:00:00:00:00 << your AP HW address from above iwlist scan
The above link and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
|
|
|
|
10-04-2010, 06:46 AM
|
#4
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
You might take a look at wicd as well. It now has a console version, wicd-curses that works very nicely.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|