Hello I have been trying to work this out for some time with no luck.
We have a lot of TRB 140's we are trying to deploy and we have number of static routes to add to each device, we are having no luck being able to do this from the CLI so we can automate the process.
When using a CLI command previously suggested I keep getting an error.
Example:
root@Teltonika-TRB140:~# ip route add 172.17.0.0/16 via 172.17.249.254 dev br-lan
RTNETLINK answers: File exists
root@Teltonika-TRB140:~# ip route list
172.17.0.0/16 via 172.17.249.254 dev br-lan
it exists in the CLI but does not show via the web interface.
also after a reboot the above route is gone, how do you commit this and also make it show in the gui
If I try using UCI commands it completely fails as well
root@Teltonika-TRB140:~# uci set network.@route[0]=route
root@Teltonika-TRB140:~# uci set network.@route[0].table='254'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].interface='lan'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].target='172.17.0.0'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].netmask='255.255.0.0'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].gateway='192.168.2.1'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].metric='0'
uci: Invalid argument
root@Teltonika-TRB140:~# uci set network.@route[0].mtu='1500'
uci: Invalid argument
I need to add 6 static routes to 70 devices so a cli entry of the config is the easiest way forward IF we can work a way of doing this as it willt ake some time on each device and the GUI