Users Guide

Table Of Contents
Configure virtual IP address in a VRF
You can configure a VRRP group in a non-default VRF instance and assign a virtual address to this group.
To configure VRRP under a specific VRF:
1. Create the non-default VRF in which you want to configure VRRP.
ip vrf vrf-name
CONFIGURATION Mode
2. In the VRF Configuration mode, enter the desired interface.
interface interface-id
VRF CONFIGURATION Mode
3. Remove the interface from L2 switching mode.
no switchport
INTERFACE CONFIGURATION Mode
4. Assign the interface to the non-default VRF that you have created.
ip vrf forwarding vrf-name
INTERFACE CONFIGURATION Mode
5. Assign an IP address to the interface.
ip address ip-address
INTERFACE CONFIGURATION Mode
6. Configure a VRRP group.
vrrp-group group-id
INTERFACE CONFIGURATION Mode
7. Configure virtual IP address for the VRRP ID.
virtual-address ip-address
INTERFACE VRRP Mode
OS10(config)# ip vrf vrf-test
OS10(config-vrf)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no switchport
OS10(conf-if-eth1/1/1)# ip vrf forwarding vrf-test
OS10(conf-if-eth1/1/1)# ip address 10.1.1.1/24
OS10(conf-if-eth1/1/1)# vrrp-group 10
OS10(conf-eth1/1/1-vrid-10)# virtual-address 10.1.1.8
Before removing an interface from a VRF, delete the configured VRRP groups from the interface associated with the VRF. If you do not
delete the configured VRRP groups, these groups remain active on the default VRF resulting in duplicate virtual IP address configurations.
Set group priority
The router that has the highest primary IP address of the interface becomes the master. The default priority for a virtual router is 100. If
the master router fails, VRRP begins the election process to choose a new master router based on the next-highest priority. The virtual
router priority is automatically set to 255, if any of the configured virtual IP addresses matches the interface IP address.
1. Create a virtual router for the interface with the VRRP identifier in INTERFACE mode, from 1 to 255.
vrrp-group vrrp-id
2. Configure the priority number for the VRRP group in INTERFACE-VRRP mode, from 1 to 254, default 100.
priority number
Set VRRP group priority
OS10(config)# interface ethernet 1/1/5
OS10(conf-if-eth1/1/5)# vrrp-group 254
OS10(conf-eth1/1/5-vrid-254)# priority 200
Layer 3
685