From owner-freebsd-net@FreeBSD.ORG Thu Sep 23 18:27:29 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3FD4106566C for ; Thu, 23 Sep 2010 18:27:29 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8CF458FC19 for ; Thu, 23 Sep 2010 18:27:29 +0000 (UTC) Received: by pxi17 with SMTP id 17so712805pxi.13 for ; Thu, 23 Sep 2010 11:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=mYvj9kWmUvHUGFHXD1YdWQ1KAI9DIu1qy/ewJDiwB5U=; b=CmdsqMoWoyrIGpneumSUChxiBVC1kI2uIouiH1QmwhB8CLi0EWHmMdXOHtzoA9+NKx bu5OWVIGOxERCpRZLrRmCNbljFfWw00nLpKg9GAx/2fpDvB9f7+nXJMqnUpKnLEQzvPM qLTdHCkYRR+rfCvjOcJouv/YuOlaiVCppZe7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=B2yAoATIp0FemPmTGjfWgD/Htglatf+npWM040KlCfUKn4K2R5vlcdosAxkO9RNEmA 33GXFN3ZA7uO4sLrjYJvv0tKvINAz4yRtzN3frt5L8TJviqbCpHLF/l93+HVryzENRz+ WCs7o5omSb4iJ5sG2kWDccPrdYs3rX2kC1P68= Received: by 10.142.127.16 with SMTP id z16mr1804800wfc.3.1285266448955; Thu, 23 Sep 2010 11:27:28 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e12sm1241817wfh.1.2010.09.23.11.27.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Sep 2010 11:27:27 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 23 Sep 2010 11:26:37 -0700 From: Pyun YongHyeon Date: Thu, 23 Sep 2010 11:26:37 -0700 To: Sushanth Rai Message-ID: <20100923182637.GB15014@michelle.cdnetworks.com> References: <748672F0-DFF8-48A4-A4AC-AC9BA698584C@gmail.com> <580411.14417.qm@web180001.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <580411.14417.qm@web180001.mail.gq1.yahoo.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Luiz Otavio O Souza Subject: Re: Changing link status in bge driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 18:27:29 -0000 On Thu, Sep 23, 2010 at 11:05:08AM -0700, Sushanth Rai wrote: > "ifconfig bge1 media none" does change the PHY status temporarily. I see the following when I run this command: > > bge1: flags=8843 metric 0 mtu 1500 > options=bb > ether 00:40:d0:b8:1e:0b > media: Ethernet none > status: no carrier > > After a few seconds if I do "ifconfig bge1", it's automagically changed to: > > bge1: flags=8843 metric 0 mtu 1500 > options=bb > ether 00:40:d0:b8:1e:0b > media: Ethernet none (1000baseTX ) > status: active > > > I tried playing around with mediaopt, but PHY status doesn't seem to change permanently. > brgphy(4) does not correctly handle IFM_NONE at this moment. In fact, brgphy(4)'s manual media configuration does not seem to work well. See MII_MEDIACHG handler of brgphy_physervice and implement IFM_NONE media type to power down or isolate the PHY. > > --- On Thu, 9/23/10, Luiz Otavio O Souza wrote: > > > From: Luiz Otavio O Souza > > Subject: Re: Changing link status in bge driver > > To: "Sushanth Rai" > > Date: Thursday, September 23, 2010, 2:31 AM > > On Sep 23, 2010, at 4:11 AM, Sushanth > > Rai wrote: > > > > > Hello, > > > > > > I'm using BCM5715C based NIC card on a FreeBSD 7.2 > > system. I would like to simulate condition where the PHY > > layer is powered-off i.e, the link status should show as "no > > carrier". When I do "ifconfig down", it just turns-off the > > driver and the link status is still active. Is there is > > anything I can do in the bge driver or anywhere else in the > > software stack to simulate this condition without physically > > disconnecting the cable ? > > > > > > Thanks, > > > Sushanth > > > > Hi, > > > > ifconfig bgeX media none should do what you need. > > > > Luiz > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"