From owner-freebsd-net@FreeBSD.ORG Thu Sep 23 18:05:09 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 8CB841065694 for ; Thu, 23 Sep 2010 18:05:09 +0000 (UTC) (envelope-from sushanth_rai@yahoo.com) Received: from web180001.mail.gq1.yahoo.com (web180001.mail.gq1.yahoo.com [67.195.8.65]) by mx1.freebsd.org (Postfix) with SMTP id 547088FC1A for ; Thu, 23 Sep 2010 18:05:08 +0000 (UTC) Received: (qmail 16757 invoked by uid 60001); 23 Sep 2010 18:05:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1285265108; bh=vllQfPnmY1/9z7f/AhzTawRqjGRkgl3P8gFHJDRegAQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=EG7M+vWztvTIh3J3Aceiq42ynX5cN2Rn48lB5Pon4C8avk13avDEdtBCr4282hi6uqs/Mkaa2qpa93At7K1Wgg+bl3Xsg/2JmHjl3vV/lmxv0thjK8OUsSMmkxLjTZoT+xE+EEzjgLWy+8DvFnK9+T4/jCEXczoQCPyG80vKmN4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=UDHfMBSrX+CJ9u92BNRiocn8dhqt5YLeeBY5bUEK7LDmQhwrOxidm6UbP8szWOPmtcWG0dgTyHL4CxYhZXVmWazbL2W9J2FCSF8dgEa8e7Uf3UDCKAcDACRegmTil/lKqzdPqi4AFuTDvjQLWqvLx+9frfuGInTO86y3YCL9DNk=; Message-ID: <580411.14417.qm@web180001.mail.gq1.yahoo.com> X-YMail-OSG: muD8fagVM1kuNH.xOip_2R5OzIUn0AEU89_WEfWtxWNY.R6 9dnZCKLnBZqN0KjhyG0zBs.gB0_OJiDbsVLBQmdfNbGG_.HCyBLnhJ.8fudt hEoSFUB_fEfM9aQ9k_PXioXiovGTU2WXyW2kg4KEXMh9KnY1_rggglP7TOVm JygY7Fyur2m9YzlJyaAVTEgi.a7kZiNaBxWTXnEGpjQ0eXB.CaV3lj3p24yB BRAPhgB07B8.vPYLlikTGi8BwL2P1_vpB2wYQqLIFpDn2U3t7HAv81v_gnn0 BYA1Aw11UE.8wO6yIk41zTH.oGkbp_7lLgSGoQBp2wNT1_r4LpCLwNAf_CnG zD1JvedVyLObIV140sgmLiCWelg-- Received: from [209.116.51.67] by web180001.mail.gq1.yahoo.com via HTTP; Thu, 23 Sep 2010 11:05:08 PDT X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.105.279950 Date: Thu, 23 Sep 2010 11:05:08 -0700 (PDT) From: Sushanth Rai To: Luiz Otavio O Souza In-Reply-To: <748672F0-DFF8-48A4-A4AC-AC9BA698584C@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-net@freebsd.org Subject: Re: Changing link status in bge driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Sep 2010 18:05:09 -0000 "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. --- 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