Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2003 04:04:17 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        FreeBSD questions List <freebsd-questions@freebsd.org>
Subject:   Re: How to restart my network without reboot?
Message-ID:  <20030708030417.GC51951@users.munk.nu>
In-Reply-To: <3F0A31A8.2050201@users.sourceforge.net>
References:  <3F0A31A8.2050201@users.sourceforge.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 08, 2003 at 11:51:20AM +0900, Rob Lahaye wrote:
> I had to change the netmask of my ethernet card. So I modified 
> /etc/rc.conf. But for that to take
> effect, I should reboot. Now, how can I avoid a reboot for such a small 
> change?
To make this rc.conf setting take effect without rebooting:

ifconfig_fxp0="inet 192.168.0.1 netmask 255.255.255.248"

you would execute:

ifconfig fxp0 inet 192.168.0.1 netmask 255.255.255.248

Try and go through rc.network though and understand exactly what is
happening.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030708030417.GC51951>