From owner-freebsd-current@freebsd.org Thu Oct 6 16:40:30 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 126FBAF6663 for ; Thu, 6 Oct 2016 16:40:30 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (unknown [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8F9CF1A for ; Thu, 6 Oct 2016 16:40:29 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from la-dgt-31327.usa.tribune.com (nat-192-187-90-113.nat.tribpub.com [192.187.90.113]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 038848d7 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Thu, 6 Oct 2016 09:40:29 -0700 (PDT) Subject: Re: CURRENT: "service netif restart" looses default route To: Oliver Peter , FreeBSD CURRENT References: <20161005184748.01aca03e.ohartman@zedat.fu-berlin.de> <20161006072753.GA11735@mail.opdns.de> From: Pete Wright Message-ID: Date: Thu, 6 Oct 2016 09:40:28 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161006072753.GA11735@mail.opdns.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 16:40:30 -0000 On 10/6/16 12:27 AM, Oliver Peter wrote: > On Wed, Oct 05, 2016 at 06:47:48PM +0200, O. Hartmann wrote: >> >> Today, I checked on two servers of ours running both a recent CURRENT (i.e. FreeBSD >> 12.0-CURRENT #43 r306701: Wed Oct 5 06:40:40 CEST 2016) via "service netif restart" the >> upcoming network and realised that the default route is lost then! >> >> I'm able to config the route via "service routing restart" - or manually as I did >> otherwise. But I recall that I did a simple "service netif restart" in 11-CURRENT >> recently and that worked. >> >> Has there been a change? What is now the official way to restart network? > > Since the past couple of years on every new FreeBSD I put this in motd for my > linux colleagues and coworkers: > > Network: > To apply changes you have made to the network: > # /etc/rc.d/netif restart && /etc/rc.d/routing restart > > Perhaps we could introduce a wrapper to be used with: > # service network restart I think this is a great idea - especially as it would make it easier for dev's and other novice admin's to use freebsd as a development platform. cheers, -pete -- Pete Wright pete@nomadlogic.org nomadlogicLA