Configuring VRRP Route Tracking
Configure Routers R1 and R2 to run VRRP. Configure static routes and a policy for exporting the static routes on Router R3. The VRRP routing instances on R2 track the routes that are advertised by R3.
On Router R1
[edit interfaces] ge-1/0/3 { unit 0 { vlan-id 1; family inet { address 200.100.50.2/24 { vrrp-group 0 { virtual-address 200.100.50.101; priority 195; } } } } }
On Router R2
[edit interfaces] ge-1/0/1 { unit 0 { vlan-id 1; family inet { address 200.100.50.1/24 { vrrp-group 0 { virtual-address 200.100.50.101; priority 200; track { route 59.0.58.153/32 routing-instance default priority-cost 5; route 59.0.58.154/32 routing-instance default priority-cost 5; route 59.0.58.155/32 routing-instance default priority-cost 5; } } } } } }
On Router R3
[edit] policy-options { policy-statement static-policy { term term1 { then accept; } } } protocols { ospf { export static-policy; reference-bandwidth 4g; area 0.0.0.0 { interface all; interface fxp0.0 { disable; } } } } routing-options { static { route 59.0.0.153/32 next-hop 45.45.45.46; route 59.0.0.154/32 next-hop 45.45.45.46; route 59.0.0.155/32 next-hop 45.45.45.46; } }