OpenWrt Forum Archive

Topic: Disable ethernet when no internet connection?

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, i am a newbie to openwrt.

Is it possible to disable ethernet port of the router when internet connections drops? I mean, when no internet exists in router (wan), I want to disable ethernet connection (like cable unplugged in Windows).

It is possible but not supported for newbies.

The solution involves finding the registers that control  power up/power down the port and write values to them so they deactivate (power off) the port. Those register addresses can vary.
Sometimes low level ethernet tools might support this - (mii tool, ethtool)

example: http://www.8devices.com/community/viewt … &t=170

You could probably do something like that using /etc/hotplug.d/iface/

The discussion might have continued from here.