_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 141 of 336
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'
18.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