Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Basic VRRP Support

    An interface can be a member of one or more VRRP groups. To configure basic VRRP support, configure VRRP groups on interfaces by including the vrrp-group statement:

    vrrp-group group-id {
    priority number;
    virtual-address [ addresses ];
    }

    You can include this statement at the following hierarchy level:

    • [edit interfaces interface-name unit logical-unit-number family inet address address]

    Within a VRRP group, the master virtual router and the backup virtual router must be configured on two different routers.

    For each VRRP group, you must configure the following:

    • Group identifier—Assign a value from 0 through 255.
    • Address of one or more virtual routers that are members of the VRRP group—Normally, you configure only one virtual IP address per group. However, you can configure up to eight addresses. Do not include a prefix length in a virtual IP address. The following considerations apply to configuring a virtual IP address:
      • The virtual router IP address must be the same for all routers in the VRRP group.
      • If you configure a virtual IP address to be the same as the physical interface’s address, the interface becomes the master virtual router for the group. In this case, you must configure the priority to be 255, and you must configure preemption by including the preempt statement.
      • If the virtual IP address you choose is not the same as the physical interface’s address, you must ensure that the virtual IP address does not appear anywhere else in the router’s configuration. Verify that you do not use this address for other interfaces, for the IP address of a tunnel, or for the IP address of static ARP entries.
      • You cannot configure the same virtual IP address on interfaces that belong to the same logical system and routing instance combination. However, you can configure the same virtual IP address on interfaces that belong to different logical system and routing instance combinations.
    • Priority for a router to become the master virtual router—Configure the value used to elect the master virtual router in the VRRP group. It can be a number from 1 through 255. The default value for backup routers is 100. A larger value indicates a higher priority. The router with the highest priority within the group becomes the master router.

      Note: If there are two or more backup routers with the same priority, the router that has the highest primary address becomes the master.

    Note: Mixed tagging (configuring two logical interfaces on the same Ethernet port, one with single-tag framing and one with dual-tag framing) is supported only for interfaces on Gigabit Ethernet IQ2 and IQ PICs. If you include the flexible-vlan-tagging statement at the [edit interfaces interface-name] hierarchy level for a VRRP-enabled interface on a PIC that does not support mixed tagging, VRRP on that interface is disabled. In the output of the show vrrp summary command, the interface status is listed as Down.

    Note: If you enable MAC source address filtering on an interface, you must include the virtual MAC address in the list of source MAC addresses that you specify in the source-address-filter statement at the [edit interfaces interface-name] hierarchy level. MAC addresses ranging from 00:00:5e:00:01:01 through 00:00:5e:00:01:ff are reserved for VRRP, as defined in RFC 2378. For IPv6, the MAC addresses range from 00:00:5e:00:02:01 through 00:00:5e:00:02:ff. The VRRP group number must be the decimal equivalent of the last hexadecimal byte of the virtual MAC address.

    Note: For faster convergence, RFC recommends better difference of priorities for VRRP routers. For example, if you have three routers in a VRRP group, it is recommended to assign the router priority as:

    • Priority of master router as 254.
    • Priority of backup router 1 as 200.
    • Priority of backup router 2 as 150.

    Modified: 2018-03-08