From owner-freebsd-net@FreeBSD.ORG Sat Jan 26 07:33:32 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 8C6F851D for ; Sat, 26 Jan 2013 07:33:32 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3B4112AB for ; Sat, 26 Jan 2013 07:33:31 +0000 (UTC) Received: by mail-vc0-f176.google.com with SMTP id fy27so829421vcb.35 for ; Fri, 25 Jan 2013 23:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=DzWlTeDGAPU5/I4VMKLi5S/3Qxh9dqGCM/b8u65Vvmg=; b=qZ5m+tyEOcIL9s3nKzY+0z43pqJRCPt5XWZQrxknrIh5RlxN9LH40mV1a2G7bxh+B4 xJf0ddJhCbj+SE1r87Sf5GNcPVQ9n/373YWe8hNuDoi2UAiFZz5zhqoiicUspphnNaN3 d81BfP/UTIxNNrtjX9bobeFqzp7KYMbBXdgcj3v5XE2VB5dbpuVcL1f4WCezoB+JgyZm dv0p0hLccOaOxyhAj/LUagFNOBGF1h4U4n695PXdFyMzn2cmBjQnJ6VRpy2P8mbiWTio Upi10N4OBmuYR+wtd/342W3jxe/PWEnVnUaPBmmNOVHVXrZNq0XewGRvG18jSd1+jt/6 ge0g== MIME-Version: 1.0 X-Received: by 10.221.11.205 with SMTP id pf13mr8600053vcb.70.1359185609800; Fri, 25 Jan 2013 23:33:29 -0800 (PST) Received: by 10.220.25.13 with HTTP; Fri, 25 Jan 2013 23:33:29 -0800 (PST) In-Reply-To: References: <20130124195056.GB1410@funkthat.com> Date: Fri, 25 Jan 2013 23:33:29 -0800 Message-ID: Subject: Re: how to completely makes an interface down? From: Jack Vogel To: h bagade Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org, John-Mark Gurney 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: Sat, 26 Jan 2013 07:33:32 -0000 On Fri, Jan 25, 2013 at 11:15 PM, h bagade wrote: > 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." > > > > I've tried the command on freebsd 8.2 with em card but doesn't work as you > mentioned. > I need such an operation to disable the connection and yes, not the led but > the link establishment itself. Is there a way to have this option on em and > igb drivers on freebsd 8.2? > _______________________________________________ > Since you have not answered the question John-Mark asked, why should there be a command for something that doesn't need to be done :) You want to make sure the connection is "down", unload the driver, that'll make the hardware pretty non-functional :) Jack