ON THIS PAGE
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
- Configuring multiple IPv4 owner groups
- Configuring multiple IPv6 owner groups
- Configuring multiple IPv4 and IPv6 owner groups
- Results
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 inet set address 10.0.0.2/24 vrrp-group 2 virtual-address 10.0.0.4 accept-data set address 20.0.0.2/24 vrrp-group 3 virtual-address 20.0.0.2 priority 255 set 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 inet6 set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-inet6-address 2001:4818:f000:20::1 set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 virtual-link-local-address fe80:4818:f000:20::1 set address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255 set address fe80:4818:f000:13::2/64 set 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::1 set address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255 set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2 set address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2 set 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 0 set family inet address 10.0.0.1/24 vrrp-group 5 virtual-address 10.0.0.1 set family inet address 10.0.0.1/24 vrrp-group 5 priority 255 set 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::1 set family inet6 address 2001:4818:f000:20::1/64 vrrp-inet6-group 1 priority 255 set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-inet6-address 2001:1000:f000:20::1 set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 virtual-link-local-address fe80:1000:f000:20::1 set family inet6 address 2001:1000:f000:20::1/64 vrrp-inet6-group 2 priority 255 set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-inet6-address 2001:2000:f000:20::2 set family inet6 address 2001:2000:f000:20::1/64 vrrp-inet6-group 3 virtual-link-local-address fe80:2000:f000:20::2 set 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:
Create an IPv4 interface on the device
[edit] user@host# edit interfaces ge-1/0/0 unit 0 family inet
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
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
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:
Create an IPv6 interface on the device
[edit] user@host# edit interfaces ge-1/0/0 unit 0 family inet6
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
-
[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
-
[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
-
[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
-
[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
-
[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
-
[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
-
[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
-
[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:
Create an interface on the device
[edit] user@host# edit interfaces ge-1/0/0 unit 0
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
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
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
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
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
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
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
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
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
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
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/0 unit 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/0 unit 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/0 unit 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.