Solved

COMMAND TO STOP AND RESTART NETWORK

Posted on 2004-10-09
8
12,576 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
 
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
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

26 Experts available now in Live!

Get 1:1 Help Now