Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Configuring VRRP for IPv6

 

This example shows how to configure VRRP properties for IPv6 in one master (Router A) and one backup  (Router B).

Requirements

This example uses the following hardware and software components:

  • Two routers

  • Junos OS Release 11.3 or later

  • Junos OS Release 18.1 R1 or later for SRX Series Services Gateways.

  • Static routing or a dynamic routing protocol enabled on both routers.

Overview

This example uses a VRRP group, which has its own virtual IPv6 address. Devices on the LAN use this virtual IPv6 address as their default gateway. If the master router fails, the backup router takes over for it.

Configuring VRRP

Configuring Router A

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure this example:

  1. Configure the interfaces.
  2. Configure the IPv6 VRRP group identifier.
  3. Configure the virtual IP address of a virtual router that is a member of the VRRP group.
  4. Configure the virtual link-local address.
  5. Configure the priority for this routing platform to become the master virtual router.
  6. By default, a higher-priority backup router preempts a lower-priority master router. To explicitly enable the master router to be preempted, include the preempt statement.
  7. For VRRP for iPv6, you must configure the interface on which VRRP is configured to send IPv6 router advertisements for the VRRP group. When an interface receives an IPv6 router solicitation message, it sends an IPv6 router advertisement to all VRRP groups configured on it.
  8. Configure router advertisements to be sent only for VRRP IPv6 groups configured on the interface if the groups are in the master state.

Results

From configuration mode, confirm your configuration by entering the show interfaces and show protocols router-advertisement commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

If you are done configuring the device, enter commit from configuration mode.

Configuring Router B

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure this example:

  1. Configure the interfaces.
  2. Configure the IPv6 VRRP group identifier.
  3. Configure the virtual IP address of a virtual router that is a member of the VRRP group.
  4. Configure the virtual link-local address.
  5. Configure the priority for this routing platform to become the master virtual router.
  6. By default, a higher-priority backup router preempts a lower-priority master router. To explicitly enable the master router to be preempted, include the preempt statement.
  7. Configure the interface on which VRRP is configured to send IPv6 router advertisements for the VRRP group. When an interface receives an IPv6 router solicitation message, it sends an IPv6 router advertisement to all VRRP groups configured on it.
  8. Configure router advertisements to be sent only for VRRP IPv6 groups configured on the interface if the groups are in the master state.

Results

From configuration mode, confirm your configuration by entering the show interfaces and show protocols router-advertisement commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

If you are done configuring the device, enter commit from configuration mode.

Verification

Verifying that VRRP Is Working on Router A

Purpose

Verify that VRRP is active on Router A and that its role in the VRRP group is correct.

Action

Use the following command to verify that VRRP is active on Router A and that the router is master for group 3.

user@hostA> show vrrp

Meaning

The show vrrp command displays fundamental information about the VRRP configuration. This output shows that the VRRP group is active and that this router has assumed the master role. The lcl address is the physical address of the interface and the vip address is the virtual address shared by both routers. The Timer value (A .0327) indicates the remaining time (in seconds) in which this router expects to receive a VRRP advertisement from the other router.

Verifying that VRRP Is Working on Router B

Purpose

Verify that VRRP is active on Router B and that its role in the VRRP group is correct.

Action

Use the following command to verify that VRRP is active on Router B and that the router is backup for group 3.

user@hostB> show vrrp

Meaning

The show vrrp command displays fundamental information about the VRRP configuration. This output shows that the VRRP group is active and that this router has assumed the backup role. The lcl address is the physical address of the interface and the vip address is the virtual address shared by both routers. The Timer value (A .0327) indicates the remaining time (in seconds) in which this router expects to receive a VRRP advertisement from the other router.