Solved

COMMAND TO STOP AND RESTART NETWORK

Posted on 2004-10-09
8
12,580 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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