How to restart my network without reboot?

Jez Hancock jez.hancock at munk.nu
Mon Jul 7 20:04:19 PDT 2003


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.


More information about the freebsd-questions mailing list