LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-26-2010, 08:34 PM   #1
palmweaver
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
config wireless card


How, using the command line can I detect my wireless card and make it work under SUSE Enterprise Desktop? The wireless card works in Win XP.
 
Old 01-27-2010, 12:13 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Look into the iwconfig command.
Code:
man iwconfig
It does what you need for wireless connections using the command line.

Kind regards,

Eric
 
Old 01-28-2010, 06:50 AM   #3
koerner
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
lspci -v will list the name of the wireless card. This will help to check if the appropriate module is loaded at startup. You can check this with lsmod.

Paul
 
Old 01-28-2010, 09:12 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Welcome to LQ!

You can check to see if the device is available with 'ifconfig -a' which shows the devices even if down.

As root you can use the below to configure a static IP with encryption for your wlan on your LAN;

Code:
~#ifconfig wlan0 192.168.0.18    #<<< available IP
~#route add default gw 192.168.0.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
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.

Code:
 sample '/etc/resolv.conf';

search 192.168.0.1     

nameserver xxx.xxx.xxx.xxx   #ISP DSN 'replace xxx.xxx.xxx.xxx
                             #with IP from your ISP
nameserver 4.2.2.1           #Verizon third level DNS
nameserver 4.2.2.2
nameserver 4.2.2.3
nameserver 4.2.2.4

Another way to setup static IP without encryption then do as root from cli;

Code:
~#ifconfig -a                      #get recognized devices
~#ifconfig wlan0 192.168.0.10      #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
~#route -n                         #show the route table
~#ifconfig wlan0 up                #should be up already
~#ping 192.168.0.1                 #ping your gateway
~#ping 208.69.32.130               #google.com IP
~#ping google.com                  #test DNS, if fail then
                                   #check /etc/resolv.conf
This one assumes that your LAN/AP is setup properly for access.

BTW, make sure your '/etc/resolv.conf' has your nameservers for your 'ISP DNS'. I use the third level DNS as a fallback.


Last edited by onebuck; 01-28-2010 at 09:13 AM.
 
1 members found this post helpful.
Old 02-17-2010, 07:13 PM   #5
palmweaver
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Paul, Gary,

Thanks so much for the info but it seems I'm a bit confused. I don't have an ip address, I log into free wifi at the cafe. How can I get iwconfig to show me the available networks and then connect to the one I select? I ran ifconfig and am attaching the result. Can either of you explain what the info means??? Thanks.

palmweaver
Attached Thumbnails
Click image for larger version

Name:	ifconfig.jpg
Views:	20
Size:	139.8 KB
ID:	2775  
 
Old 02-17-2010, 07:29 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by palmweaver View Post
Paul, Gary,

Thanks so much for the info but it seems I'm a bit confused. I don't have an ip address, I log into free wifi at the cafe. How can I get iwconfig to show me the available networks and then connect to the one I select? I ran ifconfig and am attaching the result. Can either of you explain what the info means??? Thanks.

palmweaver
I don't see a 'wlan' device in the output you provided. What do you see in your 'lspic -vv' for the wireless device?
 
Old 02-22-2010, 11:35 PM   #7
palmweaver
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Gary,

I ran lspci -v and it comes up as a Broadcom wireless modem on IRQ 11. Now, I remember that when the boot up occurs, it sees the WLAN card and tries to recognize it and reports failed in the right column where everything else is 'passed'. So, I ran lsmod but I couldn't see any wireless module. I don't really know what a module is anyway. But maybe that's it. I need to load a module. Is that the same as 'drivers'? Any help much appreciated. By the way, I'm a US expat living in Australia now. From Kansas. Near you, eh?

Palm
 
Old 02-23-2010, 07:19 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Post the outputs for 'dmesg |grep -i wlan' & wireless portion of 'lspci -vv'.

 
Old 02-23-2010, 12:00 PM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
if it is the same card i got:
Code:
03:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
this link would be helpful:
http://www.broadcom.com/support/802.11/linux_sta.php
 
  


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
problem config wireless card pierre44 Linux - Wireless Networking 9 07-26-2005 10:24 AM
Wireless card Config sangs Mandriva 1 05-29-2005 08:38 PM
Wireless card config mendesb Linux - Wireless Networking 0 12-20-2004 07:02 PM
Wireless Card Config Question alex101 Linux - Wireless Networking 1 05-25-2004 01:47 PM
Wireless Card config crazy endian Linux - Newbie 14 10-01-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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