_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 129 of 423
Or using package options:
config route
option 'interface' 'lan'
However, you can give a route a name if desired. For example, a route named ‘myroute’
will be
network.myroute
.
To define a named route using UCI, enter:
network.name_your_route=route
network.name_your_route.interface=lan
To define a named route using package options, enter:
config route 'name_your_route'
option 'interface' 'lan'
15.5
IPv4 routes using UCI
The command line example routes in the subsections below do not have a configured
name.
root@VA_router:~# uci show network
network.@route[0]=route
network.@route[0].interface=lan
network.@route[0].target=3.3.3.10
network.@route[0].netmask=255.255.255.255
network.@route[0].gateway=10.1.1.2
network.@route[0].metric=3
network.@route[0].mtu=1400