[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

change wlan0 info to connect to different access point

Hello! As always, thanks for helping!!!
My hardware:

I got an HP Pavilion ze4210 with Broadcom miniPCI wifi card (works with ndiswrapper and MS driver), running FC4 with Gnome

My issue:

I use my laptop to connect to two different wifi access points. One at home, the other at work. I got FC4 to load wifi instructions automatically when i boot the machine up. This is done by providing access point connection instructions in /etc/rc.local where i typed:

iwconfig wlan0 mode Managed
iwconfig wlan0 key 987163984618346182364812634 --> not actual key, just an example
iwconfig wlan0 essid HomeNet
dhclient wlan0

this works great, but if i want to get on Wifi at work, i have to go into my rc.local file and change those instructions to tell machine my work wifi info. Then reboot and i can get on my work wifi...

This is sort of crappy, i bet there's got to be a better way of doing this. Can i somehow make some sort of script to run and change these instructions, or some sort of profile for a certain connection?! Like in Window$ there's an option to specify which network one wants to connect to, you can select home or work and it will load appropriate info without having to reboot or modify anything. Can something like this be done in FC4?!
0
Gvigorus
Asked:
Gvigorus
3 Solutions
 
GvigorusAuthor Commented:
Could this be something usefull? http://wifi-radar.systemimager.org/
0
 
NopiusCommented:
Here is a link to scripts that can connect you automatically to first detected network: http://getwifi.sourceforge.net/ his is similar to the functionality offered by Windows XP's wireless networking.


0
 
canaliCommented:

Create a script x home with the instruction , you don't need to reboot but run appropriate  script:

EX.
#homeScript
iwconfig wlan0 mode Managed
iwconfig wlan0 key 987163984618346182364812634 --> not actual key, just an example
iwconfig wlan0 essid HomeNet
dhclient wlan0

the other with  work wlan data

#workScript
iwconfig wlan0 mode Managed
iwconfig wlan0 key 12345667890987654321 --> not actual key, just an example
iwconfig wlan0 essid workNet
dhclient wlan0


0
New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

 
sundeepgopalCommented:
hey have you tried NetworkManager & in terminal  and if you get any icon near the toolbar .
0
 
GvigorusAuthor Commented:
No, i only tried loading wifi radar, but i still have trouble getting it to work. For some bizzar reason when i am root and do wifi-radar i get the radar screen with wifi profile info, but the shell meanwile is flashing back and forth with eth0 not found message. I think wifi-radar shuld be looking for my broadcom wifi card, which is wlan0 not eth0. Any ideas here?
0
 
GvigorusAuthor Commented:
I just recently had to switch to Powerbook G3 Lombard so i was not able to completely resolve my issue. I don't have Fedora Core anymore so i can't troubleshoot further. I awarded points equally for all of your help, because i am sure that one of your advices would have fixed my issue. Thanks for helping.
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now