LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-20-2008, 09:05 AM   #1
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
How to Reset Ubuntu Network Without Reboot


Once in a while my home wireless network burbs, and I need to reconnect. . Kubuntu's network manager tries to reconnect to my network and hangs.

I have tried /etc/init.d/networking restart, and this does not cause a reconnect.

All I want to do is bring the network down and restart it without rebooting. Doing things like this is what makes Linux great; I'm just trying to research the steps.

Last edited by cmnorton; 07-20-2008 at 09:06 AM. Reason: fix reverse meaning
 
Old 07-20-2008, 09:26 AM   #2
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Rep: Reputation: 15
Try these commands:

This will take down all interfaces:
Code:
sudo ifdown -a
This will bring them all back up again
Code:
sudo ifup -a
You can do it by interface, but you'll have to check out the man pages for that!
 
Old 07-20-2008, 09:35 AM   #3
Clemente
Member
 
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
Hi,

if you use knetworkmanager as your mentioned KDE Network Manager, restarting the networding script cannot work:

1)
The script does only handle network devices that are configured in /etc/network/interfaces (on debian an related distributions - others might have a coresponding file somewhere).
2)
The knetworkmanager does only manage devices that are _not_ listed in the interfaces file mentioned above. This is usefull for mobile network devices - like your wlan device.

Both ways to configure network devices work complementary.

If my WLAN hangs, I usually reconnect the device using the knetworkmanager GUI (translation could differ, I run no english system):
Code:
1) Right click the icon 
2) Select "Options" 
3) Select "Change to offline modus" 
Wait until everything is disconnected 
4) Repeat 1 and 2, select "Change to online modus" 
Wait until everything is reocnnected.
Perhaps, you have to select your WLAN manually after changing towards online modus.

Hope this one helps,
Greet-o-mente

Last edited by Clemente; 07-20-2008 at 09:40 AM.
 
Old 07-20-2008, 09:38 AM   #4
Clemente
Member
 
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
@neilneil2000:

IIRC, for those commands is the same valid:
They only manage devices configured in /etc/network/interfaces.
And if the op uses knetworkmanager - what I assume - the desired device is not configured there.
 
Old 07-20-2008, 01:01 PM   #5
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
Hello

After bad experiences with networkmanager, I installed Wicd: http://wicd.sourceforge.net/

Also very easy to connect or disconnect.

Bye

Koen Plessers
 
Old 07-20-2008, 01:18 PM   #6
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Original Poster
Rep: Reputation: 35
This performs the reset.

Quote:
Originally Posted by Clemente View Post
Hi,

if you use knetworkmanager as your mentioned KDE Network Manager, restarting the networding script cannot work:

1)
The script does only handle network devices that are configured in /etc/network/interfaces (on debian an related distributions - others might have a coresponding file somewhere).
2)
The knetworkmanager does only manage devices that are _not_ listed in the interfaces file mentioned above. This is usefull for mobile network devices - like your wlan device.

Both ways to configure network devices work complementary.

If my WLAN hangs, I usually reconnect the device using the knetworkmanager GUI (translation could differ, I run no english system):
Code:
1) Right click the icon 
2) Select "Options" 
3) Select "Change to offline modus" 
Wait until everything is disconnected 
4) Repeat 1 and 2, select "Change to online modus" 
Wait until everything is reocnnected.
Perhaps, you have to select your WLAN manually after changing towards online modus.

Hope this one helps,
Greet-o-mente
This shuts down and restarts network manager.
thanks

Last edited by cmnorton; 07-20-2008 at 01:18 PM. Reason: add thanks
 
Old 09-07-2010, 11:15 AM   #7
pcgeek321
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
ifdown ethX,ifup ethX (X is the interface #)
 
Old 03-01-2012, 02:55 PM   #8
tito_drum
LQ Newbie
 
Registered: Jul 2008
Location: Canada
Posts: 6

Rep: Reputation: 0
Talking Restart network interface Ubuntu

Code:
$ ifconfig eth0 down
Code:
$ ifconfig eth0 up
this works for wired connections
 
  


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
ubuntu 7.10 laptop forgets network settings on reboot/suspend/logout fullout-blaine Linux - Networking 3 04-01-2008 05:05 PM
permissions reset on reboot trempel Fedora 11 08-18-2005 02:24 AM
eth0 configuration reset after reboot ChillyWillie Linux - Networking 1 05-31-2005 09:21 PM
won't boot or reboot without reset dcfnef Linux - General 4 04-04-2005 05:33 AM
Settings get reset on reboot xymian Debian 3 02-23-2005 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:13 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