Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 12588
  • 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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