# How to manually add static IPv6 route with uci?

**URL:** <https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423>\
**Category:** Routers\
**Tags:** route10, router\
**Created:** [January 26, 2026, 3:51pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423 "2026-01-26T15:51:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaz6](https://forum.alta.inc/user_avatar/forum.alta.inc/chaz6/32/3821_2.png) [@chaz6](https://forum.alta.inc/u/chaz6)\
**Post date:** [January 26, 2026, 3:51pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/1 "2026-01-26T15:51:44Z")

</div>

I have opened a feature request to support static IPv6 routes ( [FR: IPv6 static routes for Route10](https://forum.alta.inc/t/fr-ipv6-static-routes-for-route10/6296) ). In the meantime, how can I add a static IPv6 route using `uci`?

---

<div class="post-metadata">

**Author:** ![chaz6](https://forum.alta.inc/user_avatar/forum.alta.inc/chaz6/32/3821_2.png) [@chaz6](https://forum.alta.inc/u/chaz6)\
**Post date:** [April 20, 2026, 8:09pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/2 "2026-04-20T20:09:05Z")

</div>

Could I please get some assistance with this?

---

<div class="post-metadata">

**Author:** ![Alta-cmb](https://forum.alta.inc/user_avatar/forum.alta.inc/alta-cmb/32/5404_2.png) [@Alta-cmb](https://forum.alta.inc/u/Alta-cmb)\
**Post date:** [April 20, 2026, 9:38pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/3 "2026-04-20T21:38:34Z")

</div>

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).

```auto
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.

---

<div class="post-metadata">

**Author:** ![chaz6](https://forum.alta.inc/user_avatar/forum.alta.inc/chaz6/32/3821_2.png) [@chaz6](https://forum.alta.inc/u/chaz6)\
**Post date:** [April 29, 2026, 10:09am UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/4 "2026-04-29T10:09:15Z")

</div>

Brilliant thank you! Will that survive a reboot?

---

<div class="post-metadata">

**Author:** ![Alta-Jeff](https://forum.alta.inc/user_avatar/forum.alta.inc/alta-jeff/32/56_2.png) [@Alta-Jeff](https://forum.alta.inc/u/Alta-Jeff)\
**Post date:** [April 29, 2026, 2:27pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/5 "2026-04-29T14:27:10Z")

</div>

You can add it to /cfg/post-cfg.sh , and make sure it is executable (chmod +x /cfg/post-cfg.sh), then it will survive reboots.

---

<div class="post-metadata">

**Author:** ![chaz6](https://forum.alta.inc/user_avatar/forum.alta.inc/chaz6/32/3821_2.png) [@chaz6](https://forum.alta.inc/u/chaz6)\
**Post date:** [September 6, 2026, 6:45pm UTC](https://forum.alta.inc/t/how-to-manually-add-static-ipv6-route-with-uci/6423/6 "2026-09-06T18:45:50Z")

</div>

I scheduled a software update for my Route10 overnight, and I had to manually run the `/cfg/post-cfg.sh` file to get the routing back.

`root@GBHNKRT002:~# ls -l /cfg/post-cfg.sh`  
`-rwxr-xr-x 1 root root 241 Sep 5 22:14 /cfg/post-cfg.sh`

`root@GBHNKRT002:~# cat /cfg/post-cfg.sh`  
`uci add network route6`  
`uci set network.@route6[-1].interface='lan_17'`  
`uci set network.@route6[-1].target='64:ff9b::/96'`  
`uci set network.@route6[-1].gateway='2a02:390:5e9a:10:a6bb:6dff:fe9e:686e'`  
`uci commit network`  
`/etc/init.d/network reload`

I logged in and ran `/cfg/post-cfg.sh` and everything was back to normal.
