editing the rc.conf
Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? Cheers, Soo-Hyun ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Soo-Hyun Choi [EMAIL PROTECTED] wrote: Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? man ifconfig -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Read the manual pages for ifconfig. Regards S. On Fri, 27 Aug 2004 08:48:19 -0400, Bill Moran [EMAIL PROTECTED] wrote: Soo-Hyun Choi [EMAIL PROTECTED] wrote: Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? man ifconfig -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Ifconfig was mentioned. You can also reinitialize your system with shutdown(8). Shutdown will bring the system in single-user state (will kill all processes) and when you exit that, you'll have all changes made to rc.conf, active. Use shutdown now and then just exit the single-user shell. Cheers, NikV On Friday 27 August 2004 15:44, Soo-Hyun Choi wrote: Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? Cheers, Soo-Hyun ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
A couple of people suggested to read the ifconfig man page. I do understand the ifconfig, and I can change the IP settings using ifconfig without re-booting the system. What I wondered was a way of editing rc.conf directly and how I can it be working without re-boot the system. As Nikos suggested, it would not be a good way if there is only one way to go for it by using 'shutdown now' command; as it kills all the running processes. Cheers, On Fri, 27 Aug 2004 18:17:19 +0300, Nikos Vassiliadis [EMAIL PROTECTED] wrote: Ifconfig was mentioned. You can also reinitialize your system with shutdown(8). Shutdown will bring the system in single-user state (will kill all processes) and when you exit that, you'll have all changes made to rc.conf, active. Use shutdown now and then just exit the single-user shell. Cheers, NikV On Friday 27 August 2004 15:44, Soo-Hyun Choi wrote: Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? Cheers, Soo-Hyun ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
On Fri, Aug 27, 2004 at 05:04:08PM +0100, Soo-Hyun Choi typed: A couple of people suggested to read the ifconfig man page. I do understand the ifconfig, and I can change the IP settings using ifconfig without re-booting the system. What I wondered was a way of editing rc.conf directly and how I can it be working without re-boot the system. As Nikos suggested, it would not be a good way if there is only one way to go for it by using 'shutdown now' command; as it kills all the running processes. I believe in FreeBSD 5.x, soon to become -stable, all you need to do in this case is /etc/rc.d/netif restart Ruben ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Ruben de Groot wrote: On Fri, Aug 27, 2004 at 05:04:08PM +0100, Soo-Hyun Choi typed: A couple of people suggested to read the ifconfig man page. I do understand the ifconfig, and I can change the IP settings using ifconfig without re-booting the system. What I wondered was a way of editing rc.conf directly and how I can it be working without re-boot the system. As Nikos suggested, it would not be a good way if there is only one way to go for it by using 'shutdown now' command; as it kills all the running processes. I believe in FreeBSD 5.x, soon to become -stable, all you need to do in this case is /etc/rc.d/netif restart Ruben Also look at the netstart script in /etc/. What the man ifconfig guys were trying to say was something like this (using xl0 as an example interface): $ifconfig xl0 down $ifconfig xl0 new.ip.add.ress -options $ifconfig xl0 up However, if you're changing another setting (like defaultrouter, etc.) you'll want to use one of the scripts; that could be what you meant, I guess ... although there are other ways to do most of those things as well Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Except that the man page for ifconfig will tell you nothing about the correctness of your entries in rc.conf. For that you have to reboot. Most of us here can glance at them and say yea or nay, but most new users can't. And the ifconfig man page is not really newbie material either. Charles Ulrich Subhro said: Read the manual pages for ifconfig. Regards S. On Fri, 27 Aug 2004 08:48:19 -0400, Bill Moran [EMAIL PROTECTED] wrote: Soo-Hyun Choi [EMAIL PROTECTED] wrote: Hi, When I need to change the IP settings, I usually go over the rc.conf directly (as root) to change the IP settings. The question is that once I change the settings I need to re-boot the system in order to the change be working. Is there any way that I can apply the changes without re-booting the system? man ifconfig -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- System Administrator Ideal Solution - http://www.idealso.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
On Fri, Aug 27, 2004 at 05:04:08PM +0100, Soo-Hyun Choi wrote: A couple of people suggested to read the ifconfig man page. I do understand the ifconfig, and I can change the IP settings using ifconfig without re-booting the system. What I wondered was a way of editing rc.conf directly and how I can it be working without re-boot the system. As Nikos suggested, it would not be a good way if there is only one way to go for it by using 'shutdown now' command; as it kills all the running processes. Cheers, You could simply rerun one/some/all of the /etc/rc-scripts, e.g. sh /etc/rc.network in your case. But I don't think this is recommended. However, you can learn alot about the initialization of the system just by reading this scripts. GH ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: editing the rc.conf
Geert Hendrickx writes: You could simply rerun one/some/all of the /etc/rc-scripts, e.g. sh /etc/rc.network in your case. But I don't think this is recommended. Let me second this. It is entirely possible that a script expecting to start networking makes assumptions about the status quo that will prove very damaging to restarting network services. (And vice-versa.) However, you can learn a lot about the initialization of the system just by reading this scripts. An excellent idea, especially for those who haven't done it already. Robert Huff ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]