• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 12591
  • Last Modified:

COMMAND TO STOP AND RESTART NETWORK

WHAT IS THE rh LINUX COMMAND TO STOP AND START A NETWORK.
0
xoxomos
Asked:
xoxomos
3 Solutions
 
blklineCommented:
service network stop
service network start
0
 
LuxanaCommented:
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
 
tolgadalkilicCommented:
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
TRobertsonCommented:
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
 
LuxanaCommented:
to find out all options just run
# /etc/init.d/<nameOfservice>
0
 
omphs_XXXXCommented:
i think the location of the network service in redhat9 is in the directory: $/etc/rc.d/init.d
0
 
blklineCommented:
On RH9 /etc/init.d is a symlink to /etc/rc.d/init.d
0
 
sreeji_vpCommented:
service network name restart
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now