From owner-freebsd-net@FreeBSD.ORG Sat Jan 26 13:06:09 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 24169E52 for ; Sat, 26 Jan 2013 13:06:09 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) by mx1.freebsd.org (Postfix) with ESMTP id D3F2FEB0 for ; Sat, 26 Jan 2013 13:06:08 +0000 (UTC) Received: by mail-ob0-f177.google.com with SMTP id wc18so119743obb.36 for ; Sat, 26 Jan 2013 05:06:02 -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:cc:content-type; bh=eoUl6zP7yNpFNPz3jCoWzc0aeuQnOTbRtUe6LIx/UJY=; b=yFjTshyXXj0C+LjANDqqmznp+8zXT70z2IQtey2Ls+2XrnHoAF2T0NC41/XzerDI4t 9EFdfQo/ynZM8jbAUWbUpNtGMiZLDTfM6sxUOooHhI+PvWZmzJhEnrKrsRFxvpbsNR/F zXD19RMoohGcnWtueSTWuIIHaSXgKs8iaHP8I3ZujMHerrXhYjmCLDkolNm54uNSupp2 HhjNpWTavwImZAGKO26v05DkAACmQFOd2w+jv/uhu/k0I+puQoIL31vRQ96A3UXY45HM 5eT9TK8Qwzxjez5HvkzsxHHoPtROZIutk+GPkMSdasCJN5apJYCPalQCYvukBMMcoGmO Y/NQ== X-Received: by 10.60.29.226 with SMTP id n2mr6814837oeh.132.1359205562337; Sat, 26 Jan 2013 05:06:02 -0800 (PST) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.76.153.3 with HTTP; Sat, 26 Jan 2013 05:05:42 -0800 (PST) In-Reply-To: References: <20130124195056.GB1410@funkthat.com> From: h bagade Date: Sat, 26 Jan 2013 16:35:42 +0330 X-Google-Sender-Auth: Syc76uwhE_09_5-IQcjUhnuFFVI Message-ID: Subject: Re: how to completely makes an interface down? To: John-Mark Gurney Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Sat, 26 Jan 2013 13:06:09 -0000 On Sat, Jan 26, 2013 at 11:03 AM, Jack Vogel wrote: > > > 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 > > I've found a patch which is going to do what I really want: http://lists.freebsd.org/pipermail/freebsd-net/2010-December/027196.html but when I apply it on my freebsd 8.2 with em cards, nothing happens! not even sysctl "dev.em.X.down_disables_link", which is supposed to be added after applying patch, exists! what wrong with what I've done?