[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring VRRP Route Tracking

Configure routers R1 and R2 to run VRRP. Configure static routes and a policy for exporting the static routes on R3. The VRRP routing instances on R2 track the routes that are advertised by R3.

R1 Configuration

[edit interfaces]
ge-1/0/3 {
unit 0 {
vlan-id1;
family inet {
address 200.100.50.2/24 {
vrrp-group 0 {
virtual-address 200.100.50.101;
priority 195;
}
}
}
}
}

R2 Configuration

[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/22 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
}
}
}
}
}
}

R3 Configuration

[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;
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]