Viewing statistics for all VRRP instances on the router

Syntax:


show vrrp [statistics]

show vrrp ipv6 statistics

Displays the following VRRP statistics:

  • Global VRRP statistics for the router

  • VRRP statistics for all VRs configured on the router:

State

Indicates whether the router is a backup or the current master of the VR.

Uptime

The amount of time the router has been up since the last reboot.

Virtual MAC Address

The virtual MAC address for the VR instance.

master's IP Address

The IP address used as the source IP address in the last advertisement packet received from the VR master. If this VR is the master, this is the primary IP address of the VR. If the VR is disabled, this value appears as 0.0.0.0 for IPv4, and 0:0:0:0:0:ffff:0:0 for IPv6.

Associated IP Address Count

Number of VIPs.

Advertise Packets Rx

The number of VRRP master advertisements the VR has received from other VRRP routers since the last reboot.

Zero Priority Tx

The number of VRRP advertisement packets received with the priority field set to 0 (zero.)

Bad Length Pkts

The number of VRRp packets received with missing fields of information.

Mismatched Interval Pkts

The number of VRRP packets received from other routers (since the last reboot) with an advertisement interval that is different from the interval configured on the current VR.

VRRP packets received with an interval mismatch are dropped.

Mismatched IP TTL Pkts

The number of VRRP packets received with the IP TTL field not set to 255. Such packets are dropped.

Near Failovers

Tracks the occurrence of "near failovers" on the backup VRRP routers. This makes visible any difficulties the VRRP routers are having receiving the "heartbeat" advertisement from the master router. A "near failover" is one that is within one missed VRRP advertisement packet of beginning the master determination process.

Become master

The number of times the VR has become the master since the last reboot.

Zero Priority Tx

The number of VRRP advertisement packets sent with the priority field set to 0 (zero.)

Bad Type Pkts

The number of VRRP packets received with packet type not equal to 1 (that is, not an advertisement packet.)

Mismatched Addr List Pkts

The number of VRRP packets received wherein the list of VIPs does not match the locally configured VIPs for a VR.

Mismatched Auth Type Pkts

The number of VRRP packets received with the authentication type not equal to 0 (zero, which is no authentication.)

NOTE:

The commands show vrrp and show vrrp statistics result in the same output.

Example

Output for show vrrp command includes global and VR statistics

The following output shows the VRRP statistics on a router having one VR (VR 1 in VLAN 10) configured.

switch(config)# show vrrp

 VRRP Global Statistics Information

  VRRP Enabled           : Yes
  Invalid VRID Pkts Rx   : 0
  Checksum Error Pkts Rx : 0
  Bad Version Pkts Rx    : 0
  Virtual Routers Respond to Ping Requests : No

VRRP Virtual Router Statistics Information

  Vlan ID                  : 10
  Virtual Router ID        : 1
  Protocol Version         : 2
  State                    : Master
  Up Time                  : 31 mins
  Virtual MAC Address      : 00005e-000101
  Master's IP Address      : 10.10.10.2
  Associated IP Addr Count : 1         Near Failovers            : 0
  Advertise Pkts Rx        : 1213      Become Master             : 2
  Zero Priority Rx         : 0         Zero Priority Tx          : 0
  Bad Length Pkts          : 0         Bad Type Pkts             : 0
  Mismatched Interval Pkts : 0         Mismatched Addr List Pkts : 0
  Mismatched IP TTL Pkts   : 0         Mismatched Auth Type Pkts : 0

Output for show vrrp ipv6 statistics command includes global and IPv6 VR statistics

switch# show vrrp ipv6 statistics

VRRP Global Statistics Information

  VRRP Enabled               : Yes
  Invalid VRID Pkts Rx      : 0
  Checksum Error Pkts Rx     : 0
  Bad Version Pkts Rx        : 0
  Virtual Routers Respond To Ping Requests  : Yes

VRRP Virtual Router Statistics Information
  VLAN ID                  : 10
  Virtual Router ID        : 1
  Protocol Version         : 3
  State                    : Master
  Up Time                  : 26 mins
  Virtual MAC Address      : 00005e-000101
  Master's IP Address      : 2130::21
  Associated IP Addr Count : 1          Near Failovers            : 0
  Advertise Pkts Rx        : 0          Become Master             : 1
  Zero Priority Rx         : 0          Zero Priority Tx          : 0
  Bad Length Pkts          : 0          Bad Type Pkts             : 0
  Mismatched Interval Pkts : 0          Mismatched Addr List Pkts : 0
  Mismatched IP TTL Pkts   : 0          Mismatched Auth Type Pkts : 0