From owner-freebsd-net@FreeBSD.ORG Thu Jan 24 19:51:02 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BE28AB45 for ; Thu, 24 Jan 2013 19:51:02 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9B11311A for ; Thu, 24 Jan 2013 19:51:02 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r0OJouv4029881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 11:50:56 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r0OJouOl029880; Thu, 24 Jan 2013 11:50:56 -0800 (PST) (envelope-from jmg) Date: Thu, 24 Jan 2013 11:50:56 -0800 From: John-Mark Gurney To: h bagade Subject: Re: how to completely makes an interface down? Message-ID: <20130124195056.GB1410@funkthat.com> Mail-Followup-To: h bagade , freebsd-net@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Thu, 24 Jan 2013 11:50:56 -0800 (PST) Cc: freebsd-net@freebsd.org 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: Thu, 24 Jan 2013 19:51:02 -0000 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."