Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

show vrrp

Syntax

show vrrp<brief | detail | extensive | summary><interface interface-name <group number>><logical-system (all | logical-system-name )><nsr><track <interfaces>>

Release Information

Command introduced before Junos OS Release 7.4.

nsr option added in Junos OS Release 13.2.

Description

Display status information about Virtual Router Redundancy Protocol (VRRP) groups.

Options

none

(Same as brief) Display brief status information about all VRRP interfaces.

brief | detail | extensive | summary

(Optional) Display the specified level of output.

interface interface-name <group number>

(Optional) Display information and status about the specified VRRP interface, and, optionally, group number.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

nsr

(Optional) Display state replication information when graceful Routing Engine switchover (GRES) with nonstop active routing (NSR) is configured. Use only on the backup Routing Engine.

track <interfaces>

(Optional) Display information and status about VRRP track interfaces.

Required Privilege Level

view

 

Related Documentation

 

List of Sample Output

show vrrp
show vrrp brief
show vrrp detail (IPv6)
show vrrp detail (Route Track)
show vrrp extensive
show vrrp interface
show vrrp nsr
show vrrp summary
show vrrp track detail
show vrrp track summary

Output Fields

Table 1 lists the output fields for the show vrrp command. Output fields are listed in the approximate order in which they appear

Table 1: show vrrp Output Fields

Field Name

Field Description

Level of Output

Interface

Name of the logical interface.

brief extensive none summary

Interface index

Physical interface index number, which reflects its initialization sequence.

extensive

Groups

Total number of VRRP groups configured on the interface.

extensive

Active

Total number of VRRP groups that are active (that is, whose interface state is either up or down).

extensive

Interface VRRP PDU statistics

Nonerrored statistics for the logical interface:

  • Advertisement sent—Number of VRRP advertisement protocol data units (PDUs) that the interface has transmitted.
  • Advertisement received—Number of VRRP advertisement PDUs received by the interface.
  • Packets received—Number of VRRP packets received for VRRP groups on the interface.
  • No group match received—Number of VRRP packets received for VRRP groups that do not exist on the interface.

extensive

Interface VRRP PDU error statistics

Errored statistics for the logical interface:

  • Invalid IPAH next type received—Number of packets received that use the IP Authentication Header protocol (IPAH) and that do not encapsulate VRRP packets.
  • Invalid VRRP ttl value received—Number of packets received whose IP time- to-live (TTL) value is not 255.
  • Invalid VRRP version received—Number of packets received whose VRRP version is not 2.
  • Invalid VRRP pdu type received—Number of packets received whose VRRP PDU type is not 1.
  • Invalid VRRP authentication type received—Number of packets received whose VRRP authentication is not none, simple, or md5.
  • Invalid VRRP IP count received—Number of packets received whose VRRP IP count exceeds 8.
  • Invalid VRRP checksum received—Number of packets received whose VRRP checksum does not match the calculated one.

extensive

Physical interface

Name of the physical interface.

detail extensive

Unit

Logical unit number.

All levels

Address

Address of the physical interface.

brief detail extensive none

Index

Physical interface index number, which reflects its initialization sequence.

detail extensive

SNMP ifIndex

SNMP index number for the physical interface.

detail extensive

VRRP-Traps

Status of VRRP traps: Enabled or Disabled.

detail extensive

VRRP-Version

VRRP version: 2 or 3.

detail extensive

Type and Address

Identifier for the address and the address itself:

  • lcl—Configured local interface address.
  • mas—Address of the master virtual router. This address is displayed only when the local interface is acting as a backup router.
  • vip—Configured virtual IP addresses.

brief none summary

Interface state or Int state

State of the physical interface:

  • down—The device is present and the link is unavailable.
  • not present—The interface is configured, but no physical device is present.
  • unknown—The VRRP process has not had time to query the kernel about the state of the interface.
  • up—The device is present and the link is established.

brief extensive none summary

Group

VRRP group number.

brief extensive none summary

State

The state of the interface on which VRRP is running:

  • backup—The interface is acting as the backup router interface.
  • bringup—VRRP is just starting and the physical device is not yet present.
  • idle—VRRP is configured on the interface and is disabled. This can occur when VRRP is first enabled on an interface whose link is established.
  • init—VRRP is initializing.
  • master—The interface is acting as the master router interface.
  • transition—The interface is changing between being the backup and being the master router.

extensive

Priority

Configured VRRP priority for the interface.

detail extensive

Advertisement interval

Configured VRRP advertisement interval.

detail extensive

Authentication type

Configured VRRP authentication type: none, simple, or md5.

detail extensive

Preempt

Whether preemption is allowed on the interface: yes or no.

detail extensive

Accept-data mode

Whether the interface is configured to accept packets destined for the virtual IP address: yes or no.

detail extensive

VIP count

Number of virtual IP addresses that have been configured on the interface.

detail extensive

VIP

List of virtual IP addresses configured on the interface.

detail extensive

Advertisement timer

How long, in seconds, until the advertisement timer expires.

detail extensive

Master router

IP address of the interface that is acting as the master. If the VRRP interface is down, the output is N/A.

detail extensive

Virtual router uptime

How long, in seconds, that the virtual router has been up.

detail extensive

Master router uptime

How long, in seconds, that the master route has been up.

detail extensive

Virtual MAC

MAC address associated with the virtual IP address.

detail extensive

Tracking

Whether tracking is enabled or disabled.

detail extensive

Current priority

Current operational priority for being the VRRP master.

detail extensive

Configured priority

Configured base priority for being the VRRP master.

detail extensive

Priority hold-time

Minimum time interval, in seconds, between successive changes to the current priority. Disabled indicates no minimum interval.

detail extensive

Remaining-time

(track option only) Displays the time remaining in the priority hold-time interval.

detail

Interface tracking

Whether interface tracking is enabled or disabled. When enabled, the output also displays the number of tracked interfaces.

detail extensive

Interface/Tracked interface

Name of the tracked interface.

detail extensive

Int state/Interface state

Current operational state of the tracked interface: up or down.

detail extensive

Int speed/Speed

Current operational speed, in bits per second, of the tracked interface.

detail extensive

Incurred priority cost

Operational priority cost incurred due to the state and speed of this tracked interface. This cost is applied to the configured priority to obtain the current priority.

detail extensive

Threshold

Speed below which the corresponding priority cost is incurred. In other words, when the speed of the interface drops below the threshold speed, the corresponding priority cost is incurred.

An entry of down means that the corresponding priority cost is incurred when the interface is down.

detail extensive

Route tracking

Whether route tracking is enabled or disabled. When enabled, the output also displays the number of tracked routes.

detail extensive

Route count

The number of routes being tracked.

detail extensive

Route

The IP address of the route being tracked.

detail extensive

VRF name

The VPN routing and forwarding (VRF) routing instance that the tracked route is in.

detail extensive

Route state

The state of the route being tracked: up, down, or unknown.

detail extensive

Priority cost

Configured priority cost. This value is incurred when the interface speed drops below the corresponding threshold or when the tracked route goes down.

detail extensive

Active

Whether the threshold is active (*). If the threshold is active, the corresponding priority cost is incurred.

detail extensive

Group VRRP PDU statistics

Number of VRRP advertisements sent and received by the group.

extensive

Group VRRP PDU error statistics

Errored statistics for the VRRP group:

  • Bad authentication type received—Number of VRRP PDUs received with an invalid authentication type. The received authentication can be none, simple, or md5 and must be the same for all routers in the VRRP group.
  • Bad password received—Number of VRRP PDUs received with an invalid key (password). The password for simple authentication must be the same for all routers in the VRRP group
  • Bad MD5 digest received—Number of VRRP PDUs received for which the MD5 digest computed from the VRRP PDU differs from the digest expected by the VRRP instance configured on the router.
  • Bad advertisement timer received—Number of VRRP PDUs received with an advertisement time interval that is inconsistent with the one in use among the routers in the VRRP group.
  • Bad VIP count received—Number of VRRP PDUs whose virtual IP address counts differ from the count that has been configured on the VRRP instance.
  • Bad VIPADDR received—Number of VRRP PDUs whose virtual IP addresses differ from the list of virtual IP addresses configured on the VRRP instance.

extensive

Group state transition statistics

State transition statistics for the VRRP group:

  • Idle to master transitions—Number of times that the VRRP instance transitioned from the idle state to the master state.
  • Idle to backup transitions—Number of times that the VRRP instance transitioned from the idle state to the backup state.
  • Backup to master transitions—Number of times that the VRRP instance transitioned from the backup state to the master state.
  • Master to backup transitions—Number of times that the VRRP instance transitioned from the master state to the backup state.

extensive

VR state

The state of the VRRP:

  • backup—The interface is acting as the backup router interface.
  • bringup—VRRP is just starting, and the physical device is not yet present.
  • idle—VRRP is configured on the interface and is disabled. This can occur when VRRP is first enabled on an interface whose link is established.
  • init—VRRP is initializing.
  • master—The interface is acting as the master router interface.
  • transition—The interface is changing between being the backup and being the master router.

Note: When show vrrp nsr is used on the backup Routing Engine, it displays the current VRRP state on the master Routing Engine, which is the future VRRP state for the backup Routing Engine. Do not use on the master Routing Engine.

brief none summary

NSR

VRRP nonstop active routing is enabled for the configured VRRP group: yes or no.

Note: A yes value means that the new master Routing Engine will immediately start with the VRRP State value from the original master Routing Engine.

A no value means that the VRRP session will:

  • Start afresh.
  • Go through asilent startup period.
  • Move to a backup state.
  • Wait for the D Timer to run out before becoming the master (only if the master has not been configured already).

brief none

RPD-NSR

The routing options have been set to nonstop active routing: yes or no.

brief none

Timer

VRRP timer information:

  • A—How long, in seconds, until the advertisement timer expires.
  • D—How long, in seconds, until the Master is Dead timer expires.

brief none

Sample Output

show vrrp

user@host> show vrrp
Interface        	State        Group 	  VR state    Timer			Type 	Address
fe-0/0/0.121     	up               1 	   master      A 1.052		lcl  	fec0::12:1:1:1
                                                        			vip  	fe80::12:1:1:99
                                                        			vip  	fec0::12:1:1:99
fe-0/0/2.131     up               	1 		master      A 0.364 	lcl  	fec0::13:1:1:1
                                                        			vip  	fe80::13:1:1:99
                                                        			vip  	fec0::13:1:1:99

show vrrp brief

The output for the show vrrp brief command is identical to that for the show vrrp command. For sample output, see show vrrp.

show vrrp detail (IPv6)

user@host> show vrrp detail
Physical interface: fe-0/0/0, Unit: 121, Vlan-id: 212, Address: fec0::12:1:1:1/120
  Index: 67, SNMP ifIndex: 45, VRRP-Traps: enabled
  Interface state: up, Group: 1, State: master
  Priority: 200, Advertisement interval: 1, Authentication type: none
  Preempt: yes, Accept-data mode: no, VIP count: 2, VIP: fe80::12:1:1:99, fec0::12:1:1:99
  Advertisement timer: 1.121s, Master router: fe80::12:1:1:1
  Virtual router uptime: 00:03:47, Master router uptime: 00:03:41
  Virtual MAC: 00:00:5e:00:02:01
  Tracking: disabled

Physical interface: fe-0/0/2, Unit: 131, Vlan-id: 213, Address: fec0::13:1:1:1/120
  Index: 69, SNMP ifIndex: 47, VRRP-Traps: enabled
  Interface state: up, Group: 1, State: master
  Priority: 200, Advertisement interval: 1, Authentication type: none
 Preempt: yes, Accept-data mode: no, VIP count: 2, VIP: fe80::13:1:1:99, fec0::13:1:1:99
  Advertisement timer: 0.327s, Master router: fe80::13:1:1:1
  Virtual router uptime: 00:03:47, Master router uptime: 00:03:41
  Virtual MAC: 00:00:5e:00:02:01
  Tracking: disabled

show vrrp detail (Route Track)

user@host> show vrrp detail
Physical interface: ge-1/2/0, Unit: 0, Address: 30.30.30.30/24
  Index: 67, SNMP ifIndex: 379, VRRP-Traps: enabled, VRRP-Version: 2
  Interface state: up, Group: 100, State: master
  Priority: 150, Advertisement interval: 1, Authentication type: none
  Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 30.30.30.100
  Advertisement timer: 1.218s, Master router: 30.30.30.30
  Virtual router uptime: 00:04:28, Master router uptime: 00:00:13
  Virtual MAC: 00:00:5e:00:01:64
  Tracking: enabled
    Current priority: 150, Configured priority: 150
    Priority hold-time: disabled
    Interface tracking: disabled
    Route tracking: enabled, Route count: 1
      Route                VRF name       Route state   Priority cost
      192.168.40.0/22      default        up            30

show vrrp extensive

user@host> show vrrp extensive
Interface: ge-2/0/0.0, Interface index :65539, Groups: 1, Active :1
  Interface VRRP PDU statistics
    Advertisement sent                       :0
    Advertisement received                   :0
    Packets received                         :0
    No group match received                  :0
  Interface VRRP PDU error statistics
    Invalid IPAH next type received          :0
    Invalid VRRP TTL value received          :0
    Invalid VRRP version received            :0
    Invalid VRRP PDU type received           :0
    Invalid VRRP authentication type received:0
    Invalid VRRP IP count received           :0
    Invalid VRRP checksum received           :0

Physical interface: ge-2/0/0, Unit: 0, Address: 10.10.10.1/24
  Index: 65539, SNMP ifIndex: 648, VRRP-Traps: enabled, VRRP-Version: 3
  Interface state: up, Group: 1, State: backup, VRRP Mode: Active
  Priority: 100, Advertisement interval: 1, Authentication type: none
  Advertisement threshold: 3, Computed send rate: 0
  Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 10.10.10.2
  Dead timer: 3.078s, Master priority: 0, Master router: 10.10.10.1
  Virtual router uptime: 00:00:04
  Tracking: disabled
  Group VRRP PDU statistics
    Advertisement sent                       :0
    Advertisement received                   :0
  Group VRRP PDU error statistics
    Bad authentication Type received         :0
    Bad password received                    :0
    Bad MD5 digest received                  :0
    Bad advertisement timer received         :0
    Bad VIP count received                   :0
    Bad VIPADDR received                     :0
  Group state transition statistics
    Idle to master transitions               :0
    Idle to backup transitions               :1
    Backup to master transitions             :0
    Master to backup transitions             :0

show vrrp interface

user@host> show vrrp interface
Interface: fe-0/0/0.121, Interface index: 67, Groups: 1, Active : 1
  Interface VRRP PDU statistics
    Advertisement sent                       :          205
    Advertisement received                   :            0
    Packets received                         :            0
    No group match received                  :            0
  Interface VRRP PDU error statistics
    Invalid IPAH next type received          :            0
    Invalid VRRP TTL value received          :            0
    Invalid VRRP version received            :            0
    Invalid VRRP PDU type received           :            0
    Invalid VRRP authentication type received:            0
    Invalid VRRP IP count received           :            0
    Invalid VRRP checksum received           :            0

Physical interface: fe-0/0/0, Unit: 121, Vlan-id: 212, Address: fec0::12:1:1:1/120
  Index: 67, SNMP ifIndex: 45, VRRP-Traps: enabled
  Interface state: up, Group: 1, State: master
  Priority: 200, Advertisement interval: 1, Authentication type: none
  Preempt: yes, Accept-data mode: no, VIP count: 2, VIP: fe80::12:1:1:99, fec0::12:1:1:99
  Advertisement timer: 0.789s, Master router: fe80::12:1:1:1
  Virtual router uptime: 00:04:26, Master router uptime: 00:04:20
  Virtual MAC: 00:00:5e:00:02:01
  Tracking: disabled
  Group VRRP PDU statistics
    Advertisement sent              :          205
    Advertisement received          :            0
  Group VRRP PDU error statistics
    Bad authentication type received:            0
    Bad password received           :            0
    Bad MD5 digest received         :            0
    Bad advertisement timer received:            0
    Bad VIP count received          :            0
    Bad VIPADDR received            :            0
  Group state transition statistics
    Idle to master transitions      :            0
    Idle to backup transitions      :            1
    Backup to master transitions    :            1
    Master to backup transitions    :            0

show vrrp nsr

This command is similar to show vrrp. Here, the VR state column displays the current VRRP state on the master Routing Engine, which is the future VRRP state for the backup Routing Engine. Do not use on the master Routing Engine.

NSR is yes if VRRP nonstop active routing is enabled for the configured VRRP group.

RPD-NSR is yes if the routing options have been set to nonstop active routing.

user@host>show vrrp nsr
Interface  State  Group  VR state  VR Mode  Type   NSR  RPD-NSR  Address 
ge-1/0/1.0  up    1       master    Active    lcl  yes    yes    10.0.0.1           
                                              vip                10.0.0.3           
ge-1/0/1.0  up    2       master    Active    lcl  yes    yes    20.0.0.1           
                                              vip                20.0.0.3           
ge-1/0/1.0  up    3       master    Active    lcl  yes    yes    30.0.0.1           
                                              vip                30.0.0.3           
ge-1/0/1.0  up    4       master    Active    lcl  yes    yes    40.0.0.1           
                                              vip                40.0.0.3           
ge-1/0/1.0  up    5       master    Active    lcl  yes    yes    50.0.0.1           
                                              vip                50.0.0.3           
ge-1/0/1.0  up    1       master    Active    lcl  yes    yes    1000::1            
                                              vip                fe80::200:5eff:fe00:1
                                              vip                1000::3            
ge-1/0/1.0  up    2       master    Active    lcl  yes    yes    2000::1            
                                              vip                fe80::200:5eff:fe00:2
                                              vip                2000::3            
ge-1/0/1.0  up    3       master    Active    lcl  yes    yes    3000::1            
                                              vip                fe80::200:5eff:fe00:3
                                              vip                3000::3            
ge-1/0/1.0  up    4       master    Active    lcl  yes    yes    4000::1            
                                              vip                fe80::200:5eff:fe00:4
                                              vip                4000::3            
ge-1/0/1.0  up    5       master    Active    lcl  yes    yes    5000::1            
                                              vip                fe80::200:5eff:fe00:5
                                              vip                5000::3           

show vrrp summary

user@host> show vrrp summary
Interface     State       Group   VR state      Type   Address
ge-4/2/0.0    up              1   backup        lcl    10.57.0.2
                                                vip    10.57.0.100

show vrrp track detail

user@host> show vrrp track detail
Tracked interface: ae1.211
  State: up, Speed: 400m
  Incurred priority cost: 0
  Threshold   Priority cost   Active
  400m        10
  300m        60
  200m        110
  100m        160
  down        190
  Tracking VRRP interface: ae0.210, Group: 1
    VR State: master
    Current priority: 200, Configured priority: 200
    Priority hold-time: disabled,    Remaining-time: 50.351

show vrrp track summary

user@host> show vrrp track summary
Track if      State     Speed       VRRP if   Group   VR State   Current priority
ae1.211       up        400m        ae0.210   	1      master     200

Published: 2014-08-11

 

Related Documentation

 

Published: 2014-08-11