Setup guide
• simple - plain text authentication
• ah - Authentication Header using HMAC-MD5-96 algorithm
password (text; default: "") - password required for authentication depending on method used can
be ignored (if no authentication used), 8-character long text string (for plain-text authentication) or
16-character long text string (128-bit key required for AH authentication)
on-backup (name; default: "") - script to execute when the node switch to backup state
on-master (name; default: "") - script to execute when the node switch to master state
Notes
All the nodes of one cluster must have the same vrid, interval, preemption-mode, authentication
and password.
As said before, priority of 255 is reserved for the real owner of the virtual router's IP addresses.
Theoretically, the owner should have the IP address added statically to its IP address list and also to
the VRRP virtual address list, but you should never do this! Any addresses that you are using as
virtual addresses (i.e. they are added in /ip vrrp address) must not appear in /ip address list as they
otherwise can cause IP address conflict, which will not be resolved automatically.
Also You must have an IP address (no matter what) on the interface you want to run VRRP on.
Example
To add a VRRP instance on ether1 interface, forming (because priority is 255) a virtual router with
vrid of 1:
[admin@Wandy] ip vrrp> add interface=ether1 vrid=1 priority=255
[admin@Wandy] ip vrrp> print
Flags: X - disabled, I - invalid, M - master, B - backup
0 I name="vr1" interface=ether1 vrid=1 priority=255 interval=1
preemption-mode=yes authentication=none password="" on-backup=""
on-master=""
[admin@Wandy] ip vrrp>
Virtual IP addresses
ip vrrp address
Property Description
address (IP address) - IP address belongs to the virtual router
network (IP address) - IP address of the network
broadcast (IP address) - broadcasting IP address
virtual-router (name) - VRRP router's name the address belongs to
Notes
The virtual IP addresses should be the same for each node of a virtual router.
Example
To add a virtual address of 192.168.1.1/24 to the vr1 VRRP router:
[admin@Wandy] ip vrrp> address add address=192.168.1.1/24 \
\... virtual-router=vr1