From owner-freebsd-questions@FreeBSD.ORG Fri Sep 26 16:20:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2072D16A4B3 for ; Fri, 26 Sep 2003 16:20:20 -0700 (PDT) Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 3CBD643FBF for ; Fri, 26 Sep 2003 16:20:19 -0700 (PDT) (envelope-from ecrist@tech-con-inc.com) Received: from c-24-245-12-69.mn.client2.attbi.com (mnslinky@24.245.12.69 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 26 Sep 2003 23:20:18 -0000 From: Eric F Crist Organization: Tech-Con, Inc To: freebsd-questions@freebsd.org Date: Fri, 26 Sep 2003 18:26:12 -0500 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309261826.12128.ecrist@tech-con-inc.com> Subject: Re: How to restart my network without reboot? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ecrist@tech-con-inc.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 23:20:20 -0000 lahaye@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 inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx HTH Eric