Chapter 14: VRRP Configuration Guide
202 SmartSwitch Router User Reference Manual
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 19.
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
.
The following table shows the priorities for each virtual router configured on Router R2.
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
Virtual Router Default Priority Configured Priority
VRID=1
– IP address=10.0.0.1/16 100 200 (see line 8)
VRID=2
– IP address=10.0.0.2/16 255 (address owner) 255 (address owner)
VRID=3
– IP address=10.0.0.3/16 100 100 (see line 9)