Date: Fri, 27 Aug 2004 12:24:38 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz> To: Ruben de Groot <mail25@bzerk.org> Cc: freebsd-questions@freebsd.org Subject: Re: editing the rc.conf Message-ID: <412F6E56.9010701@daleco.biz> In-Reply-To: <20040827165718.GA31477@ei.bzerk.org> References: <34b425c504082705446816dc77@mail.gmail.com> <200408271817.19544.nvass@teledome.gr> <34b425c5040827090448542797@mail.gmail.com> <20040827165718.GA31477@ei.bzerk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?412F6E56.9010701>