Unix Technical Forum

how to switch between wireless networks without reboot

This is a discussion on how to switch between wireless networks without reboot within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I use my Slackware 10 and Gnome 2.8 laptop at home and work. I use a Cisco Aironet 350 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:25 PM
Al Arduengo
 
Posts: n/a
Default how to switch between wireless networks without reboot

I use my Slackware 10 and Gnome 2.8 laptop at home and work. I use a
Cisco Aironet 350 card due to the requirement for LEAP authentication
at work and I have a 2Wire DSL modem at home. A fresh bootup in
either location results in perfect operation however if I merely
disconnect at home, suspend the machine and reconnect at work (or vice
versa) I encounter problems. A prime example is tonight. I hooked
back up at home after getting in from work and the connection went
well. The problem is that I keep experiencing hangs with every thing
I do - every click of the mouse, every button pressed, etc. I exited
and rebooted and it works great.

I have tried setting up two different network profiles using the
Network Configuration tool but I have yet to get it to work as I
assume it should. I can set the profile info but it doesn't seem to
have any effect. Also, if I exit Gnome and later try to re-open it,
if I have not rebooted it inevitably hangs during startup.

My gut tells me the hanging is due to some sort of unresolved network
connection attempt but I can't figure out how to pinpoint it. Is
there a graceful way to disconnect from one network and reconnect on
another without having to reboot? I know this is not necessarily a
Slackware problem but I am using Slackware and I cannot seme to find
anything solid about this in Gnome forums so far. I just hoped
someone else may have experienced it and fixed the problem.

Thanks for anything you can offer.

Best,
-Al A.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:25 PM
Skorpion
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Al Arduengo regaled us with the following:

> I use my Slackware 10 and Gnome 2.8 laptop at home and work. I use a
> Cisco Aironet 350 card due to the requirement for LEAP authentication
> at work and I have a 2Wire DSL modem at home. A fresh bootup in
> either location results in perfect operation however if I merely
> disconnect at home, suspend the machine and reconnect at work (or vice
> versa) I encounter problems. A prime example is tonight. I hooked
> back up at home after getting in from work and the connection went
> well. The problem is that I keep experiencing hangs with every thing
> I do - every click of the mouse, every button pressed, etc. I exited
> and rebooted and it works great.


Try some of the suggestions at the following link:
http://www.linuxquestions.org/questi...hreadid=228378

- --
Skorpion [skorpion at suespammers dot org]
"Don't attribute to malice that which can be adequately explained by
stupidity."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBaznTcTBCVvf50kkRAvq0AKCt4iuDYlbBuyvqvifbch H2nFC0LACfRxm0
bsdWMp5NMqNO3Jd4xovrZPE=
=hyZe
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:25 PM
Jeffrey Froman
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

Al Arduengo wrote:

> Is
> there a graceful way to disconnect from one network and reconnect on
> another without having to reboot?


I'm not sure I fully understand the cause of your problem, but to start,
stop, or restart the network, you can run:

/etc/rc.d/rc.inet1 start
/etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1 restart

If you have different interfaces set up for your different locations (i.e.,
home uses eth0, work uses eth1) you could do something like:

/etc/rc.d/rc.inet1 eth0_stop
/etc/rc.d/rc.inet1 eth1_start


Hope that helps,

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:26 PM
Madhusudan Singh
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

Al Arduengo wrote:


> Thanks for anything you can offer.
>
> Best,
> -Al A.


Use hotplug. I use a PCMCIA card with dhcpc.

To switch networks, I simply pop it out and pop it back in again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:26 PM
Al Arduengo
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

Madhusudan Singh <spammers-go-here@spam.invalid> writes:

> Al Arduengo wrote:
>
>
>> Thanks for anything you can offer.
>>
>> Best,
>> -Al A.

>
> Use hotplug. I use a PCMCIA card with dhcpc.
>
> To switch networks, I simply pop it out and pop it back in again.


THanks for this response. I actually have tried this but the problem
is that on my work network we are required to use LEAP authentication
and thereis no real way I know of to force this to happen unless I
actually use either the Aironet client itself or one of the Cisco
provided command line scripts that does it. Even then I usually end
up having to reboot after a dozen or so failed attempts to restart the
networking andhave it let me log in using LEAP. It all works fine if
I simply reboot so I have to believe that reproducing whatever takes
place at boot up would solv emy problem. Now I just have to study up
on that process and give it a shot.

Thanks very much again.
Best,
-Al
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:28 PM
Rich Grise
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

On Tuesday 12 October 2004 06:10 pm, Al Arduengo did deign to grace us with
the following:

> Madhusudan Singh <spammers-go-here@spam.invalid> writes:
>
>> Al Arduengo wrote:
>>
>>
>>> Thanks for anything you can offer.
>>>
>>> Best,
>>> -Al A.

>>
>> Use hotplug. I use a PCMCIA card with dhcpc.
>>
>> To switch networks, I simply pop it out and pop it back in again.

>
> THanks for this response. I actually have tried this but the problem
> is that on my work network we are required to use LEAP authentication
> and thereis no real way I know of to force this to happen unless I
> actually use either the Aironet client itself or one of the Cisco
> provided command line scripts that does it. Even then I usually end
> up having to reboot after a dozen or so failed attempts to restart the
> networking andhave it let me log in using LEAP. It all works fine if
> I simply reboot so I have to believe that reproducing whatever takes
> place at boot up would solv emy problem. Now I just have to study up
> on that process and give it a shot.
>

I've never heard of LEAP before, but could you install something at
home that would spoof your laptop into thinking it's just connecting
at work again? Or, at least, not break your protocol.

Something I've seen is, when you change some kind of config, like
the inet1 start and so on, is
# kill -HUP `cat /var/run/inetd.pid`
makes it renew everything.

Good Luck!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 04:42 PM
C08RA
 
Posts: n/a
Default Re: how to switch between wireless networks without reboot

Al Arduengo wrote:
> I use my Slackware 10 and Gnome 2.8 laptop at home and work. I use a
> Cisco Aironet 350 card due to the requirement for LEAP authentication
> at work and I have a 2Wire DSL modem at home. A fresh bootup in
> either location results in perfect operation however if I merely
> disconnect at home, suspend the machine and reconnect at work (or vice
> versa) I encounter problems. A prime example is tonight. I hooked
> back up at home after getting in from work and the connection went
> well. The problem is that I keep experiencing hangs with every thing
> I do - every click of the mouse, every button pressed, etc. I exited
> and rebooted and it works great.
>
> I have tried setting up two different network profiles using the
> Network Configuration tool but I have yet to get it to work as I
> assume it should. I can set the profile info but it doesn't seem to
> have any effect. Also, if I exit Gnome and later try to re-open it,
> if I have not rebooted it inevitably hangs during startup.
>
> My gut tells me the hanging is due to some sort of unresolved network
> connection attempt but I can't figure out how to pinpoint it. Is
> there a graceful way to disconnect from one network and reconnect on
> another without having to reboot? I know this is not necessarily a
> Slackware problem but I am using Slackware and I cannot seme to find
> anything solid about this in Gnome forums so far. I just hoped
> someone else may have experienced it and fixed the problem.
>
> Thanks for anything you can offer.
>
> Best,
> -Al A.


Hi,
This is the first thing I thought of...
(im using wlan drivers, so my device name is wlan0, instead of wlan0
enter your device name).
- do a iwconfig to see wich network you're connected to
- if your connected to the one you want simply do a # dhcpcd wlan0

- if not do a
# iwconfig wlan0 essid "My Network"
(instead of My Network put the essid of the network you want to connect to)

- Then, if dhcpcd isn't running do
# dhcpcd wlan0

I hope this helps. If im wrong at any point someone please correct me.

Succes and greets,
C08RA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com