Chapter 7: VRRP Configuration Guide
76
DIGITAL GIGAswitch/Router User Reference Manual
Since Router R1 is the owner of the IP address associated with virtual router
VRID=1
, it has
a priority of 255 (the highest) for virtual router
VRID=1
. Lines 8 and 9 set Router R1’s
priority for virtual routers
VRID=2
and
VRID=3
at 200. If no other routers in the VRRP
configuration have a higher priority, Router R1 will take over as Master for virtual routers
VRID=2
and
VRID=3
, should Router R2 or R3 go down.
The following table shows the priorities for each virtual router configured on Router R1.
Configuration of Router R2
The following is the configuration file for Router R2 in
Figure 6
.
Line 8 sets the backup priority for virtual router
VRID=1
to 200. Since this number is
higher than Router R3’s backup priority for virtual router
VRID=1
, Router R2 is the
primary Backup, and Router R3 is the secondary Backup for virtual router
VRID=1
.
On line 9, the backup priority for virtual router
VRID=3
is set to 100. Since Router R1’s
backup priority for this virtual router is 200, Router R1 is the primary Backup, and Router
R2 is the secondary Backup for virtual router
VRID=3
.
Virtual Router
Default Priority
Configured Priority
VRID=1
– IP address=10.0.0.1/16
255 (address owner)
255 (address owner)
VRID=2
– IP address=10.0.0.2/16
100
200 (see line 8)
VRID=3
– IP address=10.0.0.3/16
100
200 (see line 9)
1: interface create ip test address-netmask 10.0.0.2/16 port et.1.1
!
2: ip-redundancy create vrrp 1 interface test
3: ip-redundancy create vrrp 2 interface test
4: ip-redundancy create vrrp 3 interface test
!
5: ip-redundancy associate vrrp 1 interface test address 10.0.0.1/16
6: ip-redundancy associate vrrp 2 interface test address 10.0.0.2/16
7: ip-redundancy associate vrrp 3 interface test address 10.0.0.3/16
!
8: ip-redundancy set vrrp 1 interface test priority 200
9: ip-redundancy set vrrp 3 interface test priority 100
!
10: ip-redundancy start vrrp 1 interface test
11: ip-redundancy start vrrp 2 interface test
12: ip-redundancy start vrrp 3 interface test