On 05/17/10 08:05 PM, Al wrote:
Hello,

For a Solaris system that is connected via ethernet to a router, I'm looking 
for any command or function call on Solaris that would shut down the physical 
link (like turn the NIC power off or anything to the effect that the connection 
from the router side would appear as if the cable to the Solaris box was 
unplugged or the Solaris box itself rebooted or the ethernet signal is gone).

Using ifconfig to mark the interface down seems to be the most likely answer 
but it's not clear what this actually does to the state of the physical 
ethernet link.

I want the router to detect that its physical interface to the solaris machine 
is down (aka line protocol is down) as oppose to any other interface disabling 
method that works on a higher level in the Solaris IP stack and won't be 
detectable on the router side. The intention is to force the router to remove 
routes pointing to the solaris machine (these are static routes, so there is no 
dynamic routing protocol. The latter case is obvious and achievable in many 
different ways)

Thanks for any hints.
Al.

Most NICs won't do this if you ifconfig down ... that just disables the "mac" part of the NIC, and may or may not disable the PHY.

With my "afe" driver, you can turn off all valid link modes using dladm, and the NIC will shut off the PHY entirely, which will look like an unplugged cable to the router. I'm not aware of any NIC drivers besides afe and mxfe that offer this functionality. (Its possible that this may be a function of "mii", and so be possible with other NICs... I don't recall right now... even though I wrote code!)

    - Garrett

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to