Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring Multiple VRRP Owner Groups

These examples show how to configure multiple virtual router redundancy protocol (VRRP) IPv4 and IPv6 owner groups.

Requirements

This example uses the following hardware and software components:

  • A EX-Series, M-Series, MX-Series, or T-Series router.
  • Junos OS release 12.3 or later

Overview

Multiple VRRP owner groups allows users to reuse interface address identifiers (IFAs) as virtual IP addresses (VIPs). You can configure multiple IPv4 owner groups, multiple IPv6 owner groups, or a mix of IPv4 and IPv6 owner groups.

Configuration

CLI Quick Configuration

To quickly configure this section of the 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.

Multiple IPv4 owner groups

edit interfaces ge-1/0/0 unit 0 family inetset address 10.0.0.2/24 vrrp-group 2 virtual-address 10.0.0.4 accept-dataset address 20.0.0.2/24 vrrp-group 3 virtual-address 20.0.0.2 priority 255set address 30.0.0.2/24 vrrp-group 4 virtual-address 30.0.0.2 priority 255

Multiple IPv6 owner groups

edit interfaces ge-1/0/0 unit 0 family inet6set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-inet6-address 2001:4818:f000:20::1set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-link-local-address fe80:4818:f000:20::1set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255set address fe80:4818:f000:13::2/64set address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-inet6-address 2001:1000:f000:20::1 set address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-link-local-address fe80:1000:f000:20::1set address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 priority 250

Multiple IPv4 and IPv6 owner groups

edit interfaces ge-1/0/0 unit 0set family inet address 10.0.0.1/24 vrrp-group 5 virtual-address 10.0.0.1set family inet address 10.0.0.1/24 vrrp-group 5 priority 255set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-inet6-address 2001:4818:f000:20::1 set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-link-local-address fe80:4818:f000:20::1set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-inet6-address 2001:1000:f000:20::1set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-link-local-address fe80:1000:f000:20::1set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 priority 250

Configuring multiple IPv4 owner groups

Step-by-Step Procedure

To configure multiple IPv4 owner groups:

  1. Create an IPv4 interface on the device
    [edit]user@host# edit interfaces ge-1/0/0 unit 0 family inet
  2. Configure the first IPv4 owner group
    [edit interfaces ge-1/0/0 unit 0 family inet]user@host# set address 10.0.0.2/24 vrrp-group 2 virtual-address 10.0.0.4 accept-data
  3. Configure the second IPv4 owner group
    [edit interfaces ge-1/0/0 unit 0 family inet]user@host# set address 20.0.0.2/24 vrrp-group 3 virtual-address 20.0.0.2 priority 255
  4. Configure the third IPv4 owner group
    [edit interfaces ge-1/0/0 unit 0 family inet]user@host# set address 30.0.0.2/24 vrrp-group 4 virtual-address 30.0.0.2 priority 255

Configuring multiple IPv6 owner groups

Step-by-Step Procedure

To configure multiple IPv6 owner groups:

  1. Create an IPv6 interface on the device
    [edit]user@host# edit interfaces ge-1/0/0 unit 0 family inet6
  2. Configure the inet6 address for the first IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-inet6-address 2001:4818:f000:20::1
  3. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-link-local-address fe80:4818:f000:20::1
  4. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255
  5. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-inet6-address 2001:1000:f000:20::1
  6. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-link-local-address fe80:1000:f000:20::1
  7. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255
  8. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2
  9. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2
  10. [edit interfaces ge-1/0/0 unit 0 family inet6]user@host# set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 priority 250

Configuring multiple IPv4 and IPv6 owner groups

Step-by-Step Procedure

To configure multiple IPv4 and IPv6 owner groups:

  1. Create an interface on the device
    [edit]user@host# edit interfaces ge-1/0/0 unit 0
  2. Configure the family inet address and virtual address for the IPv4 owner group
    [edit interfaces ge-1/0/0 unit 0]user@host# set family inet address 10.0.0.1/24 vrrp-group 5 virtual-address 10.0.0.1
  3. Set the priority of the IPv4 owner group to 255
    [edit interfaces ge-1/0/0 unit 0]set family inet address 10.0.0.1/24 vrrp-group 5 priority 255
  4. Configure the inet6 address for the first IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-inet6-address 2001:4818:f000:20::1
  5. Set the virtual link local address for the first IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-link-local-address fe80:4818:f000:20::1
  6. Set the first IPv6 owner group’s priority to 255
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255
  7. Configure the inet6 address for the second IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-inet6-address 2001:1000:f000:20::1
  8. Set the virtual link local address for the second IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-link-local-address fe80:1000:f000:20::1
  9. Set the second IPv6 owner group’s priority to 255
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255
  10. Configure the inet6 address for the third IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2
  11. Set the virtual link local address for the third IPv6 owner group
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2
  12. Set the third IPv6 owner group’s priority to 250
    [edit interfaces ge-1/0/0 unit 0]set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 priority 250

Results

Multiple IPv4 owner groups

[edit interfaces]
ge-1/0/0unit 0 {family inet {address 10.0.0.2/24 {vrrp-group 2 {virtual-address 10.0.0.4;accept-data;}}address 20.0.0.2/24 {vrrp-group 3 {virtual-address 20.0.0.2;priority 255;}}address 30.0.0.2/24 {vrrp-group 4 {virtual-address 30.0.0.2;priority 255;}}}}

Multiple IPv6 owner groups

[edit interfaces]
ge-1/0/0unit 0 {family inet6 {address 2001:4818:f000:20::1/64 {vrrp-inet6-group 1 {virtual-inet6-address 2001:4818:f000:20::1;virtual-link-local-address fe80:4818:f000:20::1;priority 255;}}address fe80:4818:f000:13::2/64;address 2001:1000:f000:20::1/64 {vrrp-inet6-group 2 {virtual-inet6-address 2001:1000:f000:20::1;virtual-link-local-address fe80:1000:f000:20::1;priority 255;}}address 2001:2000:f000:20::1/64 {vrrp-inet6-group 3 {virtual-inet6-address 2001:2000:f000:20::2;virtual-link-local-address fe80:2000:f000:20::2;priority 250;}}}}

Multiple IPv4 and IPv6 owner groups

[edit interfaces]
ge-1/0/0unit 0 {family inet {address 10.0.0.1/24 {vrrp-group 5 {virtual-address 10.0.0.1;priority 255;}}}family inet6 {address 2001:4818:f000:20::1/64 {vrrp-inet6-group 1 {virtual-inet6-address 2001:4818:f000:20::1;virtual-link-local-address fe80:4818:f000:20::1;priority 255;}}address 2001:1000:f000:20::1/64 {vrrp-inet6-group 2 {virtual-inet6-address 2001:1000:f000:20::1;virtual-link-local-address fe80:1000:f000:20::1;priority 255;}}address 2001:2000:f000:20::1/64 {vrrp-inet6-group 3 {virtual-inet6-address 2001:2000:f000:20::2;virtual-link-local-address fe80:2000:f000:20::2;priority 250;}}}}

Verification

To verify the configuration, run the show interfaces ge-1/0/0 command, or use whichever name you assigned to the interface.

Published: 2013-06-18