LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2008, 08:09 PM   #1
mikanoot
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Restart Networking


Hello, I changed my DEFALT GATEWAY. How can I reset networking without restarting the computer.
 
Old 08-26-2008, 08:42 PM   #2
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
Try /etc/init.d/network restart
 
Old 08-26-2008, 11:37 PM   #3
Tim356
LQ Newbie
 
Registered: May 2006
Distribution: Fedora 21
Posts: 28

Rep: Reputation: 15
or just
Code:
service network restart
 
Old 08-28-2008, 02:43 PM   #4
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
That command will only work if the distro is Red Hat based. Systems such as Ubuntu, Debian, Slackware, SuSE won't have the /sbin/service command.
 
Old 09-01-2008, 01:57 AM   #5
Tim356
LQ Newbie
 
Registered: May 2006
Distribution: Fedora 21
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by issinho View Post
That command will only work if the distro is Red Hat based. Systems such as Ubuntu, Debian, Slackware, SuSE won't have the /sbin/service command.
This is true, good point.
 
Old 09-01-2008, 02:06 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
And hence why the OP should put his distro in his user profile. On SuSE, "sudo /sbin/rcnetwork restart" or "sudo /etc/rc.d/network restart" will work unless the network manager is used.
 
Old 09-01-2008, 04:00 AM   #7
sir_com
Member
 
Registered: Feb 2008
Posts: 31

Rep: Reputation: 15
Along with all this one can also use the /etc/sysconfig/network-scripts/ifup command to bring the particular ethernet interface up as

/etc/sysconfig/network-scripts/ifup ethN ----where N is the numeric value 0,1 etc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/etc/init.d/networking restart (ERRORS) lrt Linux - Networking 13 03-10-2009 11:44 AM
Debian Etch+Networking restart problem kirby76 Linux - Networking 2 05-08-2007 03:06 AM
Kubuntu networking randomly doesn't start on boot, and needs restart andy-k Linux - Networking 11 09-09-2006 04:41 PM
networking won't start on boot, restart works... papasan Debian 2 01-25-2005 11:03 PM


All times are GMT -5. The time now is 01:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration