From owner-freebsd-net@FreeBSD.ORG Sat Jan 26 07:15:45 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 596EE327 for ; Sat, 26 Jan 2013 07:15:45 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-ia0-x229.google.com (ia-in-x0229.1e100.net [IPv6:2607:f8b0:4001:c02::229]) by mx1.freebsd.org (Postfix) with ESMTP id F102E253 for ; Sat, 26 Jan 2013 07:15:44 +0000 (UTC) Received: by mail-ia0-f169.google.com with SMTP id j5so1885774iaf.0 for ; Fri, 25 Jan 2013 23:15: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=neAY+C7DWDzZUZtreLcQptXp10MP4UwRJR6lD95LH8E=; b=UD9TjwygPoLzulAZXk9z7GNjuhKYhkNmyLbnOofYv6KERXiKJRgRF76W91LBJ1NDGC OZ1Hi11lMrF+YGw8E0gV4bhgWGU/LJvdT0GgyeNz9CfqD+e8PK/Gvtmxb1cn8knNGpLu 1WUcAriI7F+1qeGen5531GxpgeFanS7GcGMKkWXaUmkegihM1k88/1vCRKm1EyX88Vyo bgF5CDQz9X3fXIt7jiu7Q3NPH1+kOZx+LqjZUHGZRMJgP6+uHtsZTtjjn9BiAaPgedyq lohrpAT9HUUO9qbU+kDbzeJ6KGKtn3MpErAEtTo6p4PkMqxiaRxLSwGJLxUht2heFwpV 9zUg== X-Received: by 10.50.1.203 with SMTP id 11mr650665igo.63.1359184544448; Fri, 25 Jan 2013 23:15:44 -0800 (PST) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.64.38.65 with HTTP; Fri, 25 Jan 2013 23:15:24 -0800 (PST) In-Reply-To: <20130124195056.GB1410@funkthat.com> References: <20130124195056.GB1410@funkthat.com> From: h bagade Date: Sat, 26 Jan 2013 10:45:24 +0330 X-Google-Sender-Auth: 8JOOutbgbo8XAIZ0qVao0ycZFbE 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: Sat, 26 Jan 2013 07:15:45 -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." > 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?