sbyx / hnetd

HomeNet-CP implementation (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Built-in OpenWrt ULA handling overlapping with hnetd's

toreanderson opened this issue · comments

OpenWrt will by default generate a persistent ULA prefix and use it to number its local interfaces - even if they're using the hnet protocol. The value of this prefixcan be seen under Global network options on the Network -> Interfaces page in LuCI.

Howewer hnetd will also generate a distinct ULA prefix. That means we're having two distinct ULA prefixes in play on that router. The hnetd one will be distributed and shared across the entire Homenet, while the OpenWrt one will be local for each router. So the total number of distinct ULA prefixes in use in the network will be equal to the number of routers + 1.

In order to avoid this, I believe that interfaces configured to use the hnet protocol should not be assigned a link prefix from OpenWrt's ULA prefix range.

Note that clearing the box with the generated OpenWrt ULA prefix will successfully work around this issue and make the hnetd-generated prefix the only one used.

Hmm. Is there some configuration option on per-interface basis that would disable this, I wonder.. At least based on http://wiki.openwrt.org/doc/uci/network it does not seem possible unfortunately.

I use this on my systems, which I guess is the "clearing the box with the generated OpenWrt ULA prefix" mentioned above, not the sought "some configuration option on per-interface basis":

uci set network.globals.ula_prefix=''