Date: Thu, 16 Aug 2012 08:37:49 -0500 From: Dave Duchscher <daved@tamu.edu> To: Eugene Grosbein <egrosbein@rdtc.ru> Cc: hackers@freebsd.org Subject: Re: Disabling ethernet link on an Intel nic? Message-ID: <B3F13242-7615-483E-BD20-E5A13CA9F465@tamu.edu> In-Reply-To: <5029ED51.9000600@rdtc.ru> References: <CDCBD319-C627-449F-9A87-73CEF0E9AB67@tamu.edu> <5029ED51.9000600@rdtc.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_A91C3812-AF82-4830-AAAC-9A3C77211A2C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=koi8-r On Aug 14, 2012, at 1:16 AM, Eugene Grosbein wrote: > 11.08.2012 20:35, David Duchscher =D0=C9=DB=C5=D4: >> Greetings,=20 >>=20 >> I have a need to turn off the link of an ethernet port on a Intel = nic. The issue is not a big deal but one we would like to solve. we = have no way of signaling an upstream router that a path is down but via = turning off the link of the ethernet port. This would only be used when = something goes wrong. The hope is that we could automate some problems = and handle other situations remotely avoiding having to visit the system = in person. >>=20 >> Any thoughts? We can modify the system so if it means modifying the = driver or some other code, I am willing to try. Just need a little = direction. >>=20 >> Thanks for your time, >=20 > I made such patch a couple of years ago and run it in production with = copper-based > em(4) and igb(4) NICs. The patch introduces new sysctls like = dev.em.X.down_disables_link > and dev.igb.X.down.disables_link with default zero values.=20 > Setting sysctl dev.em.0.down_disables_link=3D1 makes "ifconfig em0 = down" bring link down. >=20 > http://www.grosbein.net/freebsd/patches/em_sysctl-8.3.diff.gz > http://www.grosbein.net/freebsd/patches/igb_sysctl-8.3.diff.gz This is exactly what we needed. Thanks for sharing this with us. -- DaveD --Apple-Mail=_A91C3812-AF82-4830-AAAC-9A3C77211A2C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B3F13242-7615-483E-BD20-E5A13CA9F465>