From owner-freebsd-net@FreeBSD.ORG Fri Jan 25 17:33:51 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E7461FDE for ; Fri, 25 Jan 2013 17:33:51 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) by mx1.freebsd.org (Postfix) with ESMTP id B706DBE7 for ; Fri, 25 Jan 2013 17:33:51 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id h16so735001oag.5 for ; Fri, 25 Jan 2013 09:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=eRbF9wHtNXFBtm8xhf3nBLgYwr+3ZUJB237stotg0M8=; b=wmbbA4YKwEyakSAq513fOT/xR5to3y+wJfpj9NdEZu+Iflm89X+2ZjmYN5xooUmI7L ySlb3I6CkGMlOKSlgUc9PR6ddD8O624MyLxm3mJrQjNtuo8DjCyK0PkqEsmXxhECGjqF bGJDQqlQbHh3j+x5XixxhkSBwZ+zh+LVjxCj/U8r7MlnepqKrpi4OV3FmGv+qp4rRTed sdXZ9rIWXgJ8UZS26BRe1Q1iDii0e/nwr3lif8l1ze9YW0fao37AnxRRYneuj0Yk/hf+ AwRMsougAwjLr56brTM2jySYhNDuhQYJMv64sL1aGgOGWaEQPWeWKjADGBiKyFFcCddJ nLww== X-Received: by 10.182.118.106 with SMTP id kl10mr5143176obb.10.1359135224859; Fri, 25 Jan 2013 09:33:44 -0800 (PST) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.76.153.3 with HTTP; Fri, 25 Jan 2013 09:33:24 -0800 (PST) In-Reply-To: <20130124195056.GB1410@funkthat.com> References: <20130124195056.GB1410@funkthat.com> From: h bagade Date: Fri, 25 Jan 2013 21:03:24 +0330 X-Google-Sender-Auth: DXsRJ7w7DMYc0bc490MWazbtQ9Q Message-ID: Subject: Re: how to completely makes an interface down? To: John-Mark Gurney , freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 25 Jan 2013 17:33:52 -0000 On Thu, Jan 24, 2013 at 11:20 PM, John-Mark Gurney wrote: > h bagade wrote this message on Thu, Jan 24, 2013 at 16:59 +0330: > > I'm searching for a method or configuration which when I make the > interface > > down, the led goes off. Currently the led still remains on when I > shutdowns > > the interface! Is there any way to do this? > > Not all ethernet drivers disable the PHY when you down the interface... > You can try to use: > ifconfig media none > > to shutdown the PHY, but the em driver on 9.1 doesn't have it, but re > (7.2-R and -current) and msk (-current) seems to have it... > > Also, why do you want the led to go off? Remeber, the led is just an > indication if there is a link established, not what will happen to the > packets that are received... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > Thanks for your comments. What I wanna to do is informing the other end that the interface is down and also be able to find out that the other neighbors are also down or not! So firstly, I need to find a way to make the led go off like when the cable is not connected. Then I also need to know how to find out the other end is going off!