Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th October 2007, 04:26 PM
smittypaddler Offline
Registered User
 
Join Date: Oct 2007
Posts: 17
How to scan for wireless networks

I'm trying to get away from Microsoft, which is why I've set up FC6
in it's own dual-booted partition on my laptop. But I don't know much
about wireless connections in Linux. At home I use static IP addresses
and have one Linux machine doing IP masquerading/forwarding, and all
my other computers use that one machine as their default route. When
I travel I boot Windows/XP on my laptop, click on Start->Control
Panel->Network Connections->Wireless, tell it to scan for available
connections, and it gives me a list, showing the signal strength of
each one it finds, and I tell it which one to connect to. Then I
boot Linux under VMware, and do all my work there, using Evolution
for my mail, and Mozilla/Firefox for my browser. Although I have
Norton Antivirus, and always run through a firewall on my Windoze
host, I never run any applications that access the Internet through
Microsoft Windoze. First, I refuse to buy a license for things like
MS/Outlook, and second, I'm convinced my computer is much safer doing
it this way. Can anyone direct me to a tutorial or how-to on making
wireless connections while traveling using Linux?
Reply With Quote
  #2  
Old 12th October 2007, 02:47 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Basically start the NetworkManager service. An icon should appear in notification area, click on it for a list.
Reply With Quote
  #3  
Old 12th October 2007, 02:53 AM
gthill's Avatar
gthill Offline
Registered User
 
Join Date: May 2005
Location: g-land, east java
Age: 49
Posts: 387
man iwlist
man iwconfig
Reply With Quote
  #4  
Old 13th October 2007, 03:51 AM
glynixx Offline
Registered User
 
Join Date: Oct 2007
Posts: 7
Hi. Here is a few command I had to use recently to get my wireles up and running and maybe they can help you too.

First you need to see if your wireless card is up and running so please do the following from a command line:

ifconfig

this is the same as ipconfig as it will tell you if you have a card (probably wlan0 or 1 typically, sometimes eth1 (as eth0 should be your built-in nic)).

See if you have an ip. To make sure your card is up you can do ifconfig wlan0 up
(you can substitute wlan"x" for whatever you are shown)

now you can use "iwlist wlan0 scanning" to scan the networks around you.

to configure your wireless card you need to do 3 things (all of which you may have already done of FC may have done for you). This is mainly to setup your card, do dhcp, etc.

You will need ifconfig to turn the card up and assign a static ip if you are not doing a dhcp. You use dhclient to obtain a dhcp address. You use iwconfig to setup your card.

I recommend that you follow gthill suggestion to do a little reading on those manual (help) pages.
The stuff I put in ( ) are just descriptions so dont type the commands

for instance:
iwconfig (to see any wireless cards you have listed, lets assume you do see wlan0)
iwconfig wlan0 essid <ESSID> (where essid is the name of your wireless network)
iwconfig wlan0 ap <AP> (where <AP> is the mac address of your access point, may not be needed if you are broadcasting).
iwconfig wlan0 key <open or another setting, see manual page> <wep key> (if using wep)
iwconfig wlan0 <managed> (may not be needed)


turn up the interface:
ifconfig wlan0 up

get an address:
ifconfig wlan0

to manually assign an ip:
ifconfig wlan0 <ip> netmask <subnet mask>

and if you need to setup a gateway you can do it with the route command.

Here is a great site for commands if you in a windows pc and need to look them up and do not have access to a linux pc.
http://www.linuxcommand.org/man_pages/iwconfig8.html

Hope all this helps. Also I've only worked this for a little over a week so please to defer to those who have been here longer.

G.
Reply With Quote
  #5  
Old 13th October 2007, 05:52 PM
smittypaddler Offline
Registered User
 
Join Date: Oct 2007
Posts: 17
Hello all. I'm sending this via a wireless connection in my hotel
in Hawaii. It was indeed fairly simple to make the connection using
NetworkManager. Here's a few notes that might help the next fellow
going from a static IP address to a dhcb-enabled one. First, I did
this to get NetworkManager started at boot:

/sbin/chkconfig --level 345 NetworkManager on
/sbin/chkconfig --level 345 NetworkManagerDispatcher on
/sbin/chkconfig --level 345 dhcdbd on
/sbin/chkconfig --level 345 named on

If there is no network connection, the icon on the toolbar for the
NetworkManager is a cable-and-plug with a red circle and diagonal bar over it.
If you click on it, it will give you a list of available access points,
each with a green bar showing signal strength. You can click on one
to get it activated. If the connection succeeds, you'll get a message
"Connection Established" and the icon changes to a set of conjoined
vertical rectangles increasing in height from left to right, some number
of which, starting from the left, will be colored green to show signal
strength.

I was a bit puzzled how eth1 got started at boot, since my
/etc/sysconfig/network-scripts/ifcfg-eth1 file contains ONBOOT=no,
until I found this message in /var/log/messages: Oct 13 11:21:32
waikiki NetworkManager: <information> Activation (eth1) successful,
device activated. Note that this did not work at boot until I removed
those lines defining eth1 as statically configured for my LAN at home:

NETMASK=255.255.255.0
IPADDR=192.168.1.13
GATEWAY=192.168.1.10
Reply With Quote
  #6  
Old 16th October 2007, 03:56 AM
glynixx Offline
Registered User
 
Join Date: Oct 2007
Posts: 7
Great news!!
Reply With Quote
  #7  
Old 17th October 2007, 10:25 PM
RobG Offline
Registered User
 
Join Date: Apr 2006
Location: Reno, NV
Age: 44
Posts: 87
Hey... I just found this thread today. It appears my wireless card is working, but what's lacking is support for the WPA-Personal encryption method. Is this something I can add somehow? I'm on FC7, computer is a Dell 1520 laptop with the 3945 wireless.

I was checking the manpages for iwconfig and it doesn't let you specify the encryption type, and the graphical version in Control Center only seems to support WEP. Interestingly enough, this Dell won't talk to my Linksys router if I use WEP; that's why I switched to WPA-Personal.

Rob
Reply With Quote
Reply

Tags
networks, scan, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view wireless networks ? cuban_cigar Using Fedora 3 11th January 2009 09:09 PM
Pavillion dv2815nr - cant get the bcm4510 to scan for networks rugbert Servers & Networking 10 25th May 2008 02:44 PM
how to look for wireless networks? pabloguevara Servers & Networking 4 1st November 2006 08:02 PM
Make Nautilus Scan for Samba Networks meslick Using Fedora 1 8th October 2006 12:03 AM


Current GMT-time: 02:39 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat