Solved

COMMAND TO STOP AND RESTART NETWORK

Posted on 2004-10-09
8
12,578 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
ID: 12268972
service network stop
service network start
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12270591
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
ID: 12271223
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 3

Expert Comment

by:TRobertson
ID: 12273359
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
 
LVL 10

Assisted Solution

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

Expert Comment

by:omphs_XXXX
ID: 12388064
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
ID: 12390693
On RH9 /etc/init.d is a symlink to /etc/rc.d/init.d
0
 

Expert Comment

by:sreeji_vp
ID: 12536208
service network name restart
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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