VRRP protocol
U
SER
G
UIDE
198
the VRRP service decrease or increase the priority of the specified service. The command is useful
when you need to modify the VRRP state in conjunction of external events (Tracking). Typical
examples of use are:
set trigger adsl down vrrp decrement-priority 50
set trigger adsl up vrrp increment-priority 50
Here are some examples of use.
To make possible that the VRRP service can change its state depending on the state of the ADSL
connection, you can use:
set trigger adsl down vrrp decrement-priority 50
set trigger adsl up vrrp increment-priority 50
In case of multiple instances of the service VRRP, the command takes the form:
vrrp ID decrement-priority N
vrrp ID increment-priority N
where
ID
identify the service.
You find another example of use in the backup mechanism section.
VRRP
CONFIGURATION THROUGH THE VRRPD COMMAND
In addition to the
set vrrp
command,
the
vrrpd
command can be directly used, which can also
be used to create the required number of VRRP groups. For example the commands:
vrrpd
–
i eth1
–
n
–
v 12
–
p 120 12.12.1.1
vrrpd
–
i eth1
–
n
–
v 13
–
p 130 13.13.1.1
activate two VRRP services on the eth1 interface respectively with:
group
12
, priority
120
and virtual address
12.12.1.1
group
13
, priority
130
and virtual address
13.13.1.1
The
-n
parameter is mandatory when more than one VRRP group is defined. Services activated with
the
vrrpd
command co-exist with the instance configured through the
set VRRP
command.
In order to stop a service the command
no-vrrpd
is used. For example:
no-vrrpd
–
i eth1
–
v 12
no-vrrpd –i eth1 –v 13
The
vrrpd
command has no effects on Imola configuration, i.e. the VRRP group will not be
automatically activated at the next reboot. The command is generally used together with
trigger
commands. For example, in order to activate the two groups at rooter boot:
set autocmd vrrpd
–
i eth1
–
n
–
v 12
–
p 120 12.12.1.1
set autocmd vrrpd
–
i eth1
–
n
–
v 13
–
p 130 13.13.1.1
or the service can be activated when the GPRS session is activated and deactivated when the session
is terminated:
set trigger gprs up vrrpd
–
i eth1
–
n
–
v 12
–
p 120 12.12.1.1
set trigger gprs down no-vrrpd
–
i eth1
–
v 12
or when back-up functionality is activated: