Solved

COMMAND TO STOP AND RESTART NETWORK

Posted on 2004-10-09
8
12,575 Views
Last Modified: 2008-01-09
WHAT IS THE rh LINUX COMMAND TO STOP AND START A NETWORK.
0
Comment
Question by:xoxomos
8 Comments
 
LVL 6

Accepted Solution

by:
blkline earned 100 total points
Comment Utility
service network stop
service network start
0
 
LVL 10

Expert Comment

by:Luxana
Comment Utility
or

in directory /etc/init.d/ you have your services so to start or stop services you can use:
to start
# /etc/init.d/<nameOfservice> start
to stop
# /etc/init.d/<nameOfservice> stop
to restart
# /etc/init.d/<nameOfservice> restart
so for network start is
# /etc/init.d/network start
and so on....

work for most linux distros :))

0
 
LVL 3

Assisted Solution

by:tolgadalkilic
tolgadalkilic earned 50 total points
Comment Utility
ifconfig eth0 down
ifconfig eth0 up

but generally
 /etc/init.d/network stop
 /etc/init.d/network start

is more usefull because  /etc/init.d/network script does more
0
 
LVL 3

Expert Comment

by:TRobertson
Comment Utility
Also most init.d scripts have the restart option which usually does both stop and start.
example: /etc/init.d/network restart

And some services have additional commands like status, help, and graceful.  Take a ls of your /etc/init.d folder to see all available services.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 10

Assisted Solution

by:Luxana
Luxana earned 50 total points
Comment Utility
to find out all options just run
# /etc/init.d/<nameOfservice>
0
 

Expert Comment

by:omphs_XXXX
Comment Utility
i think the location of the network service in redhat9 is in the directory: $/etc/rc.d/init.d
0
 
LVL 6

Expert Comment

by:blkline
Comment Utility
On RH9 /etc/init.d is a symlink to /etc/rc.d/init.d
0
 

Expert Comment

by:sreeji_vp
Comment Utility
service network name restart
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now