I have opened a feature request to support static IPv6 routes ( FR: IPv6 static routes for Route10 ). In the meantime, how can I add a static IPv6 route using uci?
Could I please get some assistance with this?
The following assumes you want to route 2001:db8:1234::/64 to fe80::1234 which resides on VLAN 1 (e.g. lan). The interface is the interface where the router resides, which is lan for VLAN 1, and lan_N for VLAN N (e.g. lan_2 for VLAN 2).
uci add network route6
uci set network.@route6[-1].interface='lan'
uci set network.@route6[-1].target='2001:db8:1234::/64'
uci set network.@route6[-1].gateway='fe80::1234'
uci commit network
/etc/init.d/network reload
Then check ip -6 r afterwards to verify.
We will add that support to the UI, but that’ll get you by in the mean time.