VRRP groups configuration

VRRP group is used to group VRRP interfaces from a given VRF that should failover together.

  • To create a VRRP group, enter the vrrp-group-X context.

    router{conf:myconfig}vrrp-group-X
    
    vrrp-group-X

    X is the VRRP group identifier (string).

  • To move a VRRP group in a VRF, from the vrrp-group-X context, enter:

    router{conf:myconfig-vrrp-group-X}vrf-id 1
    
  • To delete a VRRP group, enter:

    router{conf:myconfig}delete vrrp-group-X
    
    vrrp-group-X

    VRRP group name to remove.

Managing groups of VRRP interfaces

  • Add a VRRP interface in a group, this interface must be configured in the same VRF as the VRRP group:

    router{conf:myconfig-vrrp-group-X}bind vrrp1
    
  • Remove a VRRP interface from a group:

    router{conf:myconfig-vrrp-group-X}delete bind vrrp1
    
  • Remove all VRRP interface from a group:

    router{conf:myconfig-vrrp-group-X}delete bind all
    

Displaying VRRP configuration

VRRP group configuration can be displayed using the following commands:

router{conf:myconfig}display vrrp-group-X

or

router{conf:myconfig-vrrp-group-X}display

VRRP configuration example

dut-vm{myconfig}eth1
dut-vm{myconfig-eth1}ipaddress 10.0.0.1/24
dut-vm{myconfig-eth1}eth2
dut-vm{myconfig-eth2}ipaddress 20.0.0.1/24
dut-vm{myconfig-eth2}vrrp1
dut-vm{myconfig-vrrp1}virtual-ipaddress 1.0.0.1/24
dut-vm{myconfig-vrrp1}bind eth1
dut-vm{myconfig-vrrp1}vrrp2
dut-vm{myconfig-vrrp2}virtual-ipaddress 2.0.0.1/24
dut-vm{myconfig-vrrp2}bind eth2
dut-vm{myconfig-vrrp2}vrrp-group-mygrp
dut-vm{myconfig-vrrp-group-mygrp}bind vrrp1
dut-vm{myconfig-vrrp-group-mygrp}bind vrrp2
dut-vm{myconfig-vrrp-group-mygrp}display
bind vrrp1
bind vrrp2
dut-vm{myconfig-vrrp-group-mygrp}exit