Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless goes down, how to bring it back up?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JHendrix
n00b
n00b


Joined: 10 Jan 2005
Posts: 4

PostPosted: Wed Jan 12, 2005 5:20 pm    Post subject: Wireless goes down, how to bring it back up? Reply with quote

I've got my wireless working under Gentoo (yay!) and all is well.

Here's my problem:

My cordless phone will cause interference with my wireless network and basically kill the connection between the laptop and the router, but once I'm done with the phone, I can use the network again...at least under windows.

What I need to know how to do is to get Gentoo to make my wireless card re-scan and connect to my wireless network.

iwconfig will output that eth1 is not connected to any wireless network, but the card is working fine. iwscan will find my network but I can't seem to get it to reconnect.

I've tried doing /etc/init.d/net.eth1 stop and start, but all that does is end up leaving me hanging without being able to get anything from my DHCP server. It's just not connecting to my router, which is all set to automatic.

Obviously, if I reboot the connection comes up fine. But I know there has to be a way to do this without rebooting. I've tried searching google for the answer, which I'm assuming is some simple command I'm missing, but I can't find any answers. Please help. :)

Thanks for looking.
Back to top
View user's profile Send private message
lunarfu
n00b
n00b


Joined: 05 Jan 2005
Posts: 50
Location: Michigan, USA

PostPosted: Wed Jan 12, 2005 9:23 pm    Post subject: Reply with quote

While I have no perfect solution since I tend to have the same issue, if the wireless card is a PCMCIA/PC Card, you could always try ejecting it, and re-inserting it. That seems to do the trick for me.
Back to top
View user's profile Send private message
JHendrix
n00b
n00b


Joined: 10 Jan 2005
Posts: 4

PostPosted: Wed Jan 12, 2005 10:21 pm    Post subject: Reply with quote

lunarfu wrote:
While I have no perfect solution since I tend to have the same issue, if the wireless card is a PCMCIA/PC Card, you could always try ejecting it, and re-inserting it. That seems to do the trick for me.


Mine's internal. :(

I know there has to be a way to get wireless-tools to rescan and connect to the accesspoint.
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Thu Jan 13, 2005 1:46 am    Post subject: Reply with quote

I have had this problem for like a week before I figured out a solution. If you are on an ad-hoc network, which would mean that you have a designated BSSID, channel/frequency, key/password to connect with, then it's kinda easy. All you have to do is:
Code:
$ iwconfig wlan0 ap auto

It does pay to read iwconfig's manual very carefuly ;]. Now I have to do this manually every time my connection goes off (yes phone interference just like you) or if the connection terminates on either end (like maybe I shutdown the desktop, or the laptop goes out of range). So if someone can come up with a better solution (like maybe adding a cron job?) or something I'd be very happy to incorporate it in my settings. I don't have this problem if both the computers are running windows, I guess they constantly try and see if there is a network connection or not?
What I understand from the manual is that 'auto' can be used for ad-hoc networks, and 'any' as in:
Code:
$ iwconfig wlan0 ap any

to connection to the strongest link (accesspoint, peer, etc). You also can specify a hex network address as the manual instructsl, but that did not work for me in ad-hoc. Perhaps it works in a different environment. Oh and btw, ejecting the card doesn't work for me. Neither does /etc/init.d/net.wlan0 start/stop .. so yeah I guess this is the only solution?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum