Date: Sat, 26 Jan 2013 16:35:42 +0330 From: h bagade <bagadeh@gmail.com> To: John-Mark Gurney <jmg@funkthat.com> Cc: freebsd-net@freebsd.org Subject: Re: how to completely makes an interface down? Message-ID: <CAARSjE2NWC0JsibYb0Vp6A1d67L6-houfB8DWWhr_rEzd4iPpw@mail.gmail.com> In-Reply-To: <CAFOYbc=HRqPN_3To7o_LomPRLG%2BoFnLBtVQv3U=df8D=FePViw@mail.gmail.com> References: <CAARSjE0-pFR0yf7xbycPkjrZCvokGp=r7Ls=HeP83t60nhGVVg@mail.gmail.com> <20130124195056.GB1410@funkthat.com> <CAARSjE1qZcn0AiMiU5L8Bd0SVFM=f0VvKxMgor56naNFt46hug@mail.gmail.com> <CAFOYbc=HRqPN_3To7o_LomPRLG%2BoFnLBtVQv3U=df8D=FePViw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 26, 2013 at 11:03 AM, Jack Vogel <jfvogel@gmail.com> wrote: > > > On Fri, Jan 25, 2013 at 11:15 PM, h bagade <bagadeh@gmail.com> wrote: > >> On Thu, Jan 24, 2013 at 11:20 PM, John-Mark Gurney <jmg@funkthat.com> >> 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 <int> 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAARSjE2NWC0JsibYb0Vp6A1d67L6-houfB8DWWhr_rEzd4iPpw>