nixCraft Linux Forum

nixCraft

Linux 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 ...


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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-02-2006, 12:51 PM
Junior Member
User
 
Join Date: Jun 2006
Posts: 20
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
Sponsored Links
  #2 (permalink)  
Old 07-02-2006, 12:56 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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, 02:31 PM
Junior Member
User
 
Join Date: Jun 2006
Posts: 20
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, 12:32 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
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

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 06:18 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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