Restarting Wireless Network
I have been getting Slackware 12 running on a new Lenovo 3000 N200 laptop PC. Mainly all is working well now, especially since I built and configured the latest kernel release. One small annoyance is that every now and then the wireless network goes down.
Code:
iwconfig Code:
/etc/rc.net/rc.inet1 Code:
iwlist scan |
I have found, because I have any one of 2 possible connections at a given time, that I generally need to specify which interface I want to bring UP.
For example, I usually use LAN; therefore it is the first connection listed in my inet1.conf. If I connect my dialup, and restart inet1, that simply restarts eth0 (with no connection) but it ignores ppp0. So, what I do is stop inet1, then restart inet1 specifying that it should bring up PPP0, so: /etc/rc.d/rc.inet1 stop /etc/rc.d/rc.inet1 ppp0 start and it will now ignore my LAN, and will start ppp0 instead. In your case, after the stop command, you will want to bring up wlan0, or whatever it is called on your machine. Does this help? Sasha PS - I am not sure (IF I could have dialup and LAN going at once) if I could tell inet1 to use BOTH interfaces, and I can't try it, because the computer from which I get my LAN connection is actually using the same dialup line I would use, when I use ppp. Anyhow, the above is the only way I have found to for-sure re-start a given connection. |
Quote:
EDIT Sorry, I didn't notice you were on Slack 12. I'm on -current, so it's probably not the same problem (worked fine on 12 for me). /EDIT Brian |
Quote:
Quote:
|
Quote:
Brian |
iwconfig rc.inet1 restart
Quote:
eth0_up = eth0 start eth0_restart eth0 restart (no underscore) and the same for if/iwconfig: try variations of up/down or stop/start and with/without underscore, if they give you a hassle :) |
Quote:
I've typed it many times recently, as I'm struggling to get it to work on -current ;-) Brian |
All times are GMT -5. The time now is 02:19 AM. |