How to restart my network without reboot?

Eric F Crist ecrist at tech-con-inc.com
Fri Sep 26 16:20:20 PDT 2003


lahaye at users.sourceforge.net wrote:

> 
> 
> Hi,
> 
> 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?
> 
> I had a look at the ifconfig command, to set the interface manually, but I
> was completely lost by the amount of settings and options there.
> 
> I hoped that an easy command as: "/etc/rc.network restart" would do the
> trick, but that didn't work.
> 
> Can someone help me out here?
> 
> Thanks,
> Rob.

Rob,

you can also use the little-recognized /etc/netstart command.

This comes in useful for exactly those changes.  However, the right way to do 
it is with

grog# ifconfig <interface> inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

HTH

Eric



More information about the freebsd-questions mailing list