31: Configuring a GRE interface
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 296 of 336
31.3
GRE configuration using command line
The configuration file is stored on /etc/config/network
For the examples below tunnel1 is used as the interface logical name.
31.4
GRE configuration using UCI
root@VA_router:~# uci show network
network.tunnel1=interface
network.tunnel1.proto=gre
network.tunnel1.monitored=0
network.tunnel1.ipaddr=172.255.255.2
network.tunnel1.mask_length=24
network.tunnel1.local_interface=wan
network.tunnel1.remote_ip=172.255.255.100
network.tunnel1.ttl=128
network.tunnel1.key=1234
network.tunnel1.mtu=1472
network.tunnel1.auto=1
31.5
GRE configuration using package options
root@VA_router:~# uci export network
config interface 'tunnel1'
option proto 'gre'
option monitored ‘0’
option ipaddr '172.255.255.2'
option mask_length '24'
option local_interface 'wan'
option remote_ip ‘172.255.255.100’
option ttl '128'
option key '1234'
option mtu '1472'
option auto ‘1’
To change any of the above values use
uci set
command.