Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Lloyd Keen on July 31, 2002, 06:39:29 AM

Title: Restarting the network
Post by: Lloyd Keen on July 31, 2002, 06:39:29 AM
Can the network be restarted whilst people are working away with databases open etc? If not what is the proper command to just restart the external interface (eth1)
Title: Re: Restarting the network
Post by: Kelvin on July 31, 2002, 08:19:06 AM
I'm not 100% sure but try :-

ifdown eth1

followed by

ifup eth1

Regards,

Kelvin
Title: Re: Restarting the network
Post by: Michael Smith on July 31, 2002, 09:33:35 AM
Don't think that'd be a good idea with files open!
Title: Re: Restarting the network
Post by: Kelvin on July 31, 2002, 09:40:07 AM
Hi Michael,

I think you misunderstand. Llyod was asking to restart the external interface. Issuing an ifdown eth1 and then ifup eth1 does not interfere with open files on the internal interface (try it yourself, I did !).

Kelvin
Title: Re: Restarting the network
Post by: Gerard on July 31, 2002, 09:49:48 AM
i'm not readily familiar with e-smith/SME Server, but... it seems based on RedHat 7.x.  so... with that being said... on RedHat 7.x to restart the network you would (logged in as root):
/etc/rc.d/init.d/network restart
or
service network restart
which is a script (that resides in /sbin) that calls the example above.
you could possibly use the reload option instead.  it is supposed to re-init network devices without down'ing them first.  i just always use restart.
Title: Re: Restarting the network
Post by: Lloyd Keen on August 01, 2002, 12:21:12 PM
Thanks guys, the ifdown eth1 method suggested by Kelvin appears to be the safest method. Many thanks