From owner-freebsd-arch@FreeBSD.ORG Thu Dec 26 16:29:14 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61893EED for ; Thu, 26 Dec 2013 16:29:14 +0000 (UTC) Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [IPv6:2607:f8b0:4003:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2C01F1E3D for ; Thu, 26 Dec 2013 16:29:14 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id i7so8753590oag.38 for ; Thu, 26 Dec 2013 08:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7vGPHpIhF00hlrevybUe0V2DAqScrFCWwq4v4P+uags=; b=cCUcJBHrcTdzq5a9q/3wlWAHDFMyqzsaF6+uNEzVGap4+VhqnlMDHFQrRqcgmAauyU Lc0/Vbt8YSO3vHnETDlRgmrUV5KuJFvv8+HVAm1sazxLHOFGPedgX6E6HETDimgmh1u8 CHqeXNvAE7CFwMMNRHj0EdbQH+N4Th7MeppWrdG2QtkYagkEAJUtZcmdJv2lF/Jen/UX ii7+JUzNtud2KUpbFQ8iVN7+h/boXkGvkYGXFJrOqVUJY/QATmgj/GrMeo8KZ/xdS0ej p3iYE1cCnw3Lh+tFeNMoVNq9SFdW0cd1wcayxp30oLc/Q0LxsXZGp5aUWe977o84QtN1 F/fg== MIME-Version: 1.0 X-Received: by 10.60.54.168 with SMTP id k8mr2354632oep.56.1388075353428; Thu, 26 Dec 2013 08:29:13 -0800 (PST) Received: by 10.182.80.7 with HTTP; Thu, 26 Dec 2013 08:29:13 -0800 (PST) In-Reply-To: <52BC5177.70903@hostek.com> References: <52BC5177.70903@hostek.com> Date: Thu, 26 Dec 2013 17:29:13 +0100 Message-ID: Subject: Re: Default gateway lost after netif restart From: Oliver Pinter To: Alex Long Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 16:29:14 -0000 Hi! Try to use screen or tmux. ;) screen service netif restart; service routing restart or when you must restart only one interface, then try this command: service netif restart _if_name_ e.g.: service netif restart em0 when you have intel network card. On 12/26/13, Alex Long wrote: > I am new to FreeBSD so I apologize if this is the wrong place to post > this. But there is a flaw in the logic regarding restart of the netif > service. I understand that after restarting the netif service, you have > to manually restart the routing service. The problem is that if you are > configuring a machine remotely and you have to restart the netif service > for whatever reason, your defaut gateway is lost, thus preventing you > from restarting the routing service and you lose connectivity to the > machine. > > Now I get around this by creating a shell script that does both and just > executing that script. This works but it is sloppy in my opinion. It > does not makes sense to restart a network service and lose ANY network > functionality (i.e. your routes) once it comes back up. > > Regards, > Alex Long > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >