
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 162 of 423
To define a named keepalive instance using package options, enter:
config vrrp_group 'g1'
option enabled '1'
18.4.1
VRRP using UCI
To view the configuration in UCI format, enter:
root@VA_router:~# uci show vrrp
vrrp.main=vrrp
vrrp.main.enabled=yes
vrrp.g1=vrrp_group
vrrp.g1.enabled=yes
vrrp.g1.interface=lan
vrrp.g1.track_iface=WAN MOBILE
vrrp.g1.init_state=BACKUP
vrrp.g1.router_id=1
vrrp.g1.priority=100
vrrp.g1.advert_int_sec=120
vrrp.g1.password=secret
vrrp.g1.virtual_ipaddr=10.1.10.150/16
vrrp.g1.garp_delay_sec=5
vrrp.g1.ipsec_connection=Test
vrrp.g1.track_ipsec=conn1 conn2
18.4.2
VRRP using package options
To view the configuration in package option format, enter:
root@VA_router:~# uci export vrrp
package vrrp
config vrrp 'main'
option enabled 'yes'
config vrrp_group 'g1'
option enabled 'yes'
option interface 'lan'
list track_iface 'WAN'
list track_iface 'MOBILE'