Date: Tue, 08 Jul 2003 13:23:52 +0930 From: Steven Wiltshire <steven@mig15.net> To: Rob Lahaye <lahaye@users.sourceforge.net> Cc: freebsd-questions@freebsd.org Subject: Re: How to restart my network without reboot? Message-ID: <3F0A4050.4020306@mig15.net> 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
Hi Rob, I suggest using ifconfig to modify the netmask. Try this: "ifconfig device inet ip.address.here netmask netmask.goes.here broadcast your.broadcast.address.here" For example, "ifconfig fxp0 inet 10.0.0.100 netmask 255.255.255.0 broadcast 10.0.0.255" - this should tide you over until the machine is next rebooted. Just in case it doesn't work, though, make sure you have non-ethernet access to the machine (as I've found out the hard way previously :) --Steven Rob Lahaye 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. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F0A4050.4020306>