# Configuring VRRP

Before you configure VRRP, we recommend that you review the following VRRP configuration examples:

- Example: Basic VRRP Configuration
- Example: Commonly Used VRRP Configuration
- Example: VRRP Configuration Without the Real Address Owner

To configure VRRP parameters:

1. (Optional) Create a VRID instance.
   host1(config-if)#ip vrrp 25
2. (Optional) Set a VRRP advertisement interval for the same VRID.
   host1(config-if)#ip vrrp 25 advertise-interval 50
3. Set the VRRP router priority for owner or backup routers.

   This step is mandatory to configure priority for the owner VRID (255). This step is optional to configure priority for a backup VRID (1–254). The default value is 100.

   host1(config-if)#ip vrrp 25 priority 255 host1(config-if)#ip vrrp 22 priority 254
4. (Optional) Enable the backup router to learn the VRRP advertisement interval.
   host1(config-if)#ip vrrp 22 timers-learn
5. (Optional) Specify that the backup router can process packets with an IP destination address of the virtual address.
   host1(config-if)#ip vrrp 22 accept-data
6. (Optional) Set the preempt option. This example creates a new VRID.
   host1(config-if)#ip vrrp 10 preempt
7. Associate an IP address with a VRID.
   host1(config-if)#ip vrrp 25 virtual-address 194.2.1.63

   | Note: If you configure VRRP on a virtual router and associate the IP address with the VRRP instance ID (VRID) so that the virtual address becomes the interface address of the router, the priority of the router automatically changes to 255 making it the master router. This change of priority occurs in JunosE Software Releases 11.0.0 and higher-numbered releases and later to enable full compliance with RFC-Virtual Router Redundancy Protocol (VRRP) (April 2004). Also, you cannot configure the priority of the VRRP router as 255 by using the ip vrrp priority command, unless you configured the router to automatically learn associated addresses by using the auto keyword with the ip vrrp virtual-address command. In addition, if you change the virtual address of the VRRP router, which is operating as the IP address owner, to an IP address that is no longer the IP address owner, the priority changes automatically to the default value of 100.

8. (Optional) Set the VRRP authentication type to either text or none.
   host1(config-if)#ip vrrp 25 authentication-type none
9. (Optional) Configure the VRRP authentication key.
   host1(config-if)#ip vrrp 25 authentication-key dublin
10. Enable the VRID instance.
    host1(config-if)#ip vrrp 25 enable

#### Related Documentation

- Before You Configure VRRP
- VRRP Overview
- VRRP Implementation in E Series Routers
- ip vrrp
- ip vrrp accept-data
- ip vrrp advertise-interval
- ip vrrp authentication-key
- ip vrrp authentication-type
- ip vrrp enable
- ip vrrp preempt
- ip vrrp priority
- ip vrrp timers-learn
- ip vrrp virtual-address