View Single Post

   
  #4 (permalink)  
Old 02-19-2008, 10:55 AM
Eef Hartman
 
Posts: n/a
Default Re: Restart network after changin rc.inet1.conf?

A-B C. <atakeoutcanton@adams-blaketakeout.com> wrote:
> I was told by Thomas to make edit the rc.inet1.conf file, puttting in an IP
> addr, etc.


For eth0 or eth1 ?

> Do I have to re-boot to get this to take effect or is there a less drastic way
> to "re-start" the network. In other words, when does my eth0 actually "take
> on" the new IP address? (Or am I talking gibberish?)


The /etc/rc.d/rc.inet1 _script_ uses the parameters of that .conf file,
it is normally run at bootup, but you can run it by hand too.
When eth0 is already UP, you may have to take it down first:
ifconfig eth0 down
and then
/etc/rc.d/rc.inet1
will bring all configured (in the .conf file) interfaces up.

PS: the script CAN bring the network down too, by adding the parameter "stop"
to it, this doesn't always work, though.

The parameter "start" which other people gave you, CAN be added, but it
currently is the default too, so it is not needed (yet?).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Reply With Quote