From owner-freebsd-net@FreeBSD.ORG Fri Jul 13 07:57:58 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23BDD106564A for ; Fri, 13 Jul 2012 07:57:57 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A399A8FC15 for ; Fri, 13 Jul 2012 07:57:57 +0000 (UTC) Received: by obbun3 with SMTP id un3so5545974obb.13 for ; Fri, 13 Jul 2012 00:57:57 -0700 (PDT) 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 :content-type; bh=cWrIWuE2/SucDUf2Gt8nA5r7U0TW0GuEEfFLRtYugYM=; b=arNRLX4yNd5N6VZfU8ZWcUeepdcTTGb26RyoNNBXDvHbTxyv5UYIa3CfNf+AiKnc4W qUYIk4zCPPBMgCWkzKC0C1bLuaZRZEQhKsIq75b3tzhMcjnFTJdiLwNErO5Jjm8TTKWb Y4YpkEd9Oviu2NA6wZIjLMRaqgsmwBwVCOwTGbcVafERbBOevgfCM05vzXGm439KSyOm m3tPvX7qwRxdzOTvvaVw0pri2BDfBtG9unSjPrafZKDB7t/yC7SHnvjQRpRvfsXB6Dkc hfMbNKFmlbVfRZn5d2eXl9eeC2yaDiZCY7R7gkM8ppgS3JjAw1QeblRaGhH93H1w144Y srKQ== MIME-Version: 1.0 Received: by 10.182.207.39 with SMTP id lt7mr117208obc.67.1342166277127; Fri, 13 Jul 2012 00:57:57 -0700 (PDT) Received: by 10.182.32.234 with HTTP; Fri, 13 Jul 2012 00:57:57 -0700 (PDT) In-Reply-To: <1342143769.2250.3.camel@nsl> References: <4FFF3683.7020107@rawbw.com> <1342143769.2250.3.camel@nsl> Date: Fri, 13 Jul 2012 10:57:57 +0300 Message-ID: From: Alexander Yerenkow To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 07:57:58 -0000 > > Add the following lines to /etc/devd.conf: > > notify 0 { > match "system" "IFNET"; > match "type" "LINK_DOWN"; > media-type "ethernet"; > action "/etc/rc.d/dhclient quietstop $subsystem; ifconfig > $subsystem inet 0.0.0.0"; > }; > > Then restart devd(8). > 1. Is this rule will do nothing if interface wasn't configured as DHCP? 2. Can such primer be added (but commented) to /etc/devd.conf in CURRENT, so FreeBSD will be a bit more flexible for all kind of users? -- Regards, Alexander Yerenkow