<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: CourierNewPSMT;" class="">Hullo</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><font face="CourierNewPSMT" class="">I’ve tried this request to openwrt-users and got no response, so I’m trying the developer community in the hope that you’ve got a deeper understanding of how openwrt should work.</font><div class=""><font face="CourierNewPSMT" class=""><br class=""></font></div><div class=""><font face="CourierNewPSMT" class="">I keep losing my openwrt router’s IPv4 configuration when my ISP bounces the link to my home.</font><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><font face="CourierNewPSMT" class="">I’m using commit 1a7b132013 (Jan 9 2016)</font><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">My ISP link is over ADSL. I have a dsl modem attached to the phone line and a WRT1200 attached to that, which connects with pppoe. I’m trying to run homenet, so I’d like to have the WAN interface controlled by homenet (hence, I’m avoiding interfaces called ‘wan’ or ‘lan’ to avoid them being treated as ’special'). Based on advice that I cannot immediately put my finger on, I’m using these stanzas to set up the WAN links:</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">config interface 'e0'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option ifname 'eth0'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option proto 'pppoe'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option username ‘<login username>'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option password ‘<login password>'</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">config interface 'e0ext'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option ifname 'pppoe-e0'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option proto 'hnet'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option mode 'external'</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">option _orig_ifname 'pppoe-e0’ # I think that this line is redundant.</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">The idea is that e0ext is ‘stacked’ on pppoe-e0 (the interface name from e0).</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">The configuration works most of the time. Until the link bounces. What seems to happen is that pppoe is torn down when the link is reset, and then rebuilt correctly. However, the interface e0ext does not seem to receive any notification of the link coming back up (I’m assuming that’s how things are supposed to work). Hnet is designed to keep the ipv6 links up in the event of loss of internet, so I’m assuming that this doesn’t require notification of link restoration.</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">I’m guessing that the events on the links/interfaces should be propagated through ubus (?)</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">If I use ubus to take down e0, e0ext is disabled, but on sending up to e0, e0ext stays down. An explicit up to e0ext creates this error (from ubus call network.interface.e0ext status):</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">root@OpenWrt:~# ubus call network.interface.e0ext status</span><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">{</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"up": false,</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"pending": false,</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"available": false,</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"autostart": true,</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"dynamic": false,</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"proto": "hnet",</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"data": {</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">},</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"errors": [</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">{</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"subsystem": "interface",</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">"code": "NO_DEVICE"</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">}</span><br style="font-family: CourierNewPSMT;" class=""><span class="Apple-tab-span" style="font-family: CourierNewPSMT; white-space: pre;"> </span><span style="font-family: CourierNewPSMT;" class="">]</span><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">}</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">Am I missing something from the configuration, have I stumbled upon a bug, or do I have to live with rebooting the router ~once per week? (and am I posting to the right group?)</span><br style="font-family: CourierNewPSMT;" class=""><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">cheers</span><br style="font-family: CourierNewPSMT;" class=""><span style="font-family: CourierNewPSMT;" class="">Tim</span></div></body></html>