API Guide

!
interface ethernet1/1/3
switchport access vlan 1
no shutdown
!
interface ethernet1/1/4
switchport access vlan 1
--more--
View VRRP information
When the VRRP process completes initialization, the State field contains either master or backup.
OS10# show vrrp brief
Interface Group Priority Preemption State Master-addr Virtual addr(s)
----------------------------------------------------------------------------
ethernet1/1/1 IPv4 10 100 true master 10.1.1.8 10.1.1.8
View VRRP group 1
OS10# show vrrp 1
Interface : ethernet1/1/1 IPv4 VRID : 1
Primary IP Address : 10.1.1.1 State : master-state
Virtual MAC Address : 00:00:5e:00:01:01
Version : version-3 Priority : 100
Preempt : Hold-time :
Authentication : no-authentication
Virtual IP address :
10.1.1.1
master-transitions : 1 advertise-rcvd : 0
advertise-interval-errors : 0 ip-ttl-errors : 0
priority-zero-pkts-rcvd : 0 priority-zero-pkts-sent : 0
invalid-type-pkts-rcvd : 0 address-list-errors : 0
pkt-length-errors : 0
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.
766
Layer 3