nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

ubuntu linux start, stop, restart networking

This is a discussion on ubuntu linux start, stop, restart networking within the Linux software forums, part of the Linux Getting Started category; Hello, I am running following command but it is not working: service network restart service network stop service network start ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2006, 11:51 AM
Junior Member
User
 
Join Date: Jun 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
toor
Default ubuntu linux start, stop, restart networking

Hello,

I am running following command but it is not working:
service network restart
service network stop
service network start

It reads error:
command not found

How doi i start, stop, restart networking under ubuntu linux?
Reply With Quote
  #2 (permalink)  
Old 07-02-2006, 11:56 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

service command works with RedHat/Fedora linux and not with ubuntu linux... use following command to restart your network:

Restart:
Code:
sudo /etc/init.d/networking restart
Start:
Code:
sudo /etc/init.d/networking start
Stop:
Code:
sudo /etc/init.d/networking stop
Reply With Quote
  #3 (permalink)  
Old 07-15-2006, 01:31 PM
Junior Member
User
 
Join Date: Jun 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
toor
Default

thanks for help. I am able to start or restart/stop any service under ubuntu linux. all services are located under /etc/init.d/ directory. for example to restart sshd:
Code:
sudo /etc/init.d/sshd restart
this forum is great.
Reply With Quote
  #4 (permalink)  
Old 07-17-2006, 11:32 AM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ricc
Default

toor,

are you starting the services as a normal user.

I am not sure, but I think the user is not given sudo permissions. you can run the command from the root console.

/etc/init.d/network status will give the current status of the process.

ricc
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
start and stop service in crontab. gthian Shell scripting 7 05-31-2007 11:04 AM
Howto Restart inetd Ubuntu Linux raj Getting started tutorials 0 03-20-2007 08:36 PM
Linux command to restart apache chiku Linux software 2 12-13-2006 06:59 PM
start up and stop the running script mala_un Shell scripting 9 07-26-2006 07:10 AM
Start x server ubuntu linux raj Linux software 2 07-14-2006 05:01 PM


All times are GMT +5.5. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38