Configuration of Router R1
The following is the configuration file for Router R1 in
1: interface create ip test address-netmask 10.0.0.1/16 port et.1.1
2: ip-redundancy create vrrp 1 interface test
3: ip-redundancy associate vrrp 1 interface test address 10.0.0.1/16
4: ip-redundancy start vrrp 1 interface test
Line 1 adds IP address 10.0.0.1/16 to interface test, making Router R1 the owner of this IP
address. Line 2 creates virtual router
10.0.0.1/16 with virtual router
In VRRP, the router that owns the IP address associated with the virtual router is the
Master. Any other routers that participate in this virtual router are Backups. In this
configuration, Router R1 is the Master for virtual router
10.0.0.1/16, the IP address associated with virtual router
Configuration for Router R2
The following is the configuration file for Router R2 in
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 associate vrrp 1 interface test address 10.0.0.1/16
4: ip-redundancy start vrrp 1 interface test
The configuration for Router R2 is nearly identical to Router R1. The difference is that
Router R2 does not own IP address 10.0.0.1/16. Since Router R2 does not own this IP
address, it is the Backup. It takes over from the Master if the Master becomes unavailable.
Symmetrical Configuration
Figure 5
shows a VRRP configuration with two routers and two virtual routers. Routers
R1 and R2 are both configured with two virtual routers (
Router R1 serves as:
•
Master for
•
Backup for
Router R2 serves as:
•
Master for
•
Backup for
Internet Appliance User Reference Manual
VRID=1
VRID=1
VRID=1
VRID=2
VRID=2
VRID=1
Chapter 5: VRRP Configuration Guide
Figure
on interface test. Line 3 associates IP address
. Line 4 starts VRRP on interface test.
VRID=1
VRID=1
Figure
VRID=1
4:
because it owns
.
4:
and
).
VRID=2
65