LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2008, 08:36 AM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
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
continues to show the correct parameters and even shows that the signal strength from my router is fine. I try to re-start by running
Code:
/etc/rc.net/rc.inet1
but although I get messages saying that it is trying to find a DHCP server first on eth0 (fails, no ethernet plugged in) and then on wlan0 (fails for reasons that I don't understand) this does not seem to get the wireless link re-started.
Code:
iwlist scan
shows that the router can be found, but still no connection made. I am obviously missing a trick - can somebody tell me what it is? Running rc.inet1 does re-start the eth0 link if I have it plugged in. A re-boot always works and the wireless connection is found after this procedure, but I am trying to avoid this as a routine solution.
 
Old 04-18-2008, 09:04 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.

Last edited by GrapefruiTgirl; 04-18-2008 at 09:06 AM.
 
Old 04-18-2008, 10:25 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by bogzab View Post
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
continues to show the correct parameters and even shows that the signal strength from my router is fine. I try to re-start by running
Code:
/etc/rc.net/rc.inet1
but although I get messages saying that it is trying to find a DHCP server first on eth0 (fails, no ethernet plugged in) and then on wlan0 (fails for reasons that I don't understand) this does not seem to get the wireless link re-started.
Code:
iwlist scan
shows that the router can be found, but still no connection made. I am obviously missing a trick - can somebody tell me what it is? Running rc.inet1 does re-start the eth0 link if I have it plugged in. A re-boot always works and the wireless connection is found after this procedure, but I am trying to avoid this as a routine solution.
This sounds similar to my problem. Are you using WPA?

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

Last edited by BCarey; 04-18-2008 at 10:27 AM.
 
Old 04-18-2008, 11:02 AM   #4
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by GrapefruiTgirl View Post

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.
I think I should do the "stop" bit. So far I have assumed that it has stopped, but this presumably stops cleanly and starting will be more like starting from a re-boot (which always works).

Quote:
Originally Posted by GrapefruiTgirl View Post

Does this help?
I'll be able to say when I next get the problem! Thanks for the advice anyway.
 
Old 04-18-2008, 11:33 AM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by bogzab View Post
I think I should do the "stop" bit. So far I have assumed that it has stopped, but this presumably stops cleanly and starting will be more like starting from a re-boot (which always works).



I'll be able to say when I next get the problem! Thanks for the advice anyway.
Using "restart" will do "stop" and then "start". Also, if you are going to specify the interface you should put an underscore between the interface name and the directive, ie. "eth1_restart".

Brian
 
Old 04-18-2008, 02:04 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
iwconfig rc.inet1 restart

Quote:
Originally Posted by BCarey View Post
Using "restart" will do "stop" and then "start". Also, if you are going to specify the interface you should put an underscore between the interface name and the directive, ie. "eth1_restart".

Brian
Good point, thanks Brian. -- I often get mixed up when using ifconfig, and restarting inet1; there are several ways of telling each what to do, such as:

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
 
Old 04-18-2008, 02:47 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by GrapefruiTgirl View Post
Good point, thanks Brian. -- I often get mixed up when using ifconfig, and restarting inet1; there are several ways of telling each what to do, such as:

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

I've typed it many times recently, as I'm struggling to get it to work on -current ;-)

Brian
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting Network Behaviour itnaa Linux - Networking 3 07-09-2007 01:17 PM
restarting network service in windows nick021 Linux - General 1 12-16-2006 04:20 AM
Restarting Network Services In Suse treedstang SUSE / openSUSE 9 01-21-2005 10:33 AM
restarting my network linuxboy_inside Linux - Networking 3 01-06-2004 05:54 AM
Restarting network services Bull Terrier Slackware 2 12-15-2003 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration