1833701 Members
3542 Online
110062 Solutions
New Discussion

Re: netconf

 
SOLVED
Go to solution
Steve Sauve
Frequent Advisor

netconf

Howdy Everyone,

Hopefully a quick question. Can I avoid a restart after making changes to my netconf file? Does ifconfig lan1 down/up cause it to re-read the file or do I need to stop/start a daemon? Right now I'm restarting to be sure, but I'd love to avoid the stop/start wait :)

Thanks,
Steve
5 REPLIES 5
John Palmer
Honored Contributor
Solution

Re: netconf

Steve,

Rerunning the startup script '/sbin/init.d/net start'

pretty much reconfigures everything from a modified netconf but it may depend on exactly what you've changed.

ifconfig lan? down disables the interface and up re-enables it, nothing to do with netconf.

If you look at the 'net' script in /sbin/init.d you will see that amongst other things it calls 'ifconfig' to configure the relevant interfaces.

Regards,
John
Antoanetta Naghiu
Esteemed Contributor

Re: netconf

With ifconfig down/up you can avoid the reboot and get the desired modification.
/sbin/init.d/net stop/start is going to check what you've done. Not reboot is necessary. You might need to stop/restart /sbin/init.d/nfs.core or other scripts, depends on what you modified. But, basically, /sbin/init.d/net is enough.
Rick Garland
Honored Contributor

Re: netconf

The ifconfig command and the /sbin/init.d/net stop/start will avoid a reboot.
Philip Chan_1
Respected Contributor

Re: netconf

Be carefull not to do the "/sbin/init.d/net stop" from a remote connection (like telnet) because you may lost the connection before issuing the "/sbin/init.d/net start" command.

Alternatively you could try something like "/sbin/init.d/net stop && /sbin/init.d/net start".
Victor BERRIDGE
Honored Contributor

Re: netconf

As mentionned above, since you cant stop throught remote connexion if you dont have access to the console, use at/cron to execute your stop/start cmd
Godd luck