19: Configuring static routes
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW1000 Series User Manual
Issue: 1.9
Page 142 of 350
19.6
IPv4 routes using package options
root@VA_router:~# uci export network
package network
….
config route
option interface 'lan'
option target '2.2.2.2'
option netmask '255.255.255.255'
option gateway '192.168.100.1'
option metric '1'
option mtu '1500'
19.7
IPv6 routes using UCI
root@VA_router:~# uci show network
network.@route[1]=route
network.@route[1].interface=lan
network.@route[1].target=2001:0DB8:100:F00:BA3::1/64
network.@route[1].gateway=2001:0DB8:99::1
network.@route[1].metric=1
network.@route[1].mtu=1500
19.8
IPv6 routes using packages options
root@VA_router:~# uci export network
package network
….
config route
option interface 'lan'
option target '2001:0DB8:100:F00:BA3::1/64'
option gateway '2001:0DB8:99::1'
option metric ‘1’
option mtu '1500'