To display a brief
or detailed status of one or all Virtual Router Redundancy Protocol (VRRP)
virtual routers, use the
show vrrp
command in
XR EXEC mode.
show vrrp [ipv4 | ipv6] [interface type interface-path-id [vrid]] [brief | detail | statistics [all]]
Syntax Description
ipv4
|
(Optional)
Displays the IPv4 information.
|
ipv6
|
(Optional)
Displays the IPv6 information.
|
interface
|
(Optional)
Displays the status of the virtual router interface.
|
type
|
(Optional) Interface type. For more information, use the question mark (?) online help function.
|
interface-path-id
|
Physical
interface or virtual interface.
Note
|
Use the
show interfaces command to see a list of all interfaces currently configured on
the router.
|
For more
information about the syntax for the router, use the question mark (?) online
help function.
|
vrid
|
(Optional) Virtual router identifier, which is the number identifying the virtual router for which status is displayed.
The virtual router identifier is configured with the
vrrp ipv4
command. Range is 1 to 255.
|
brief
|
(Optional)
Provides a summary view of the virtual router information.
|
detail
|
(Optional)
Displays detailed running state information.
|
statistics
|
(Optional)
Displays total statistics.
|
all
|
(Optional)
Displays statistics for each virtual router.
|
Command Modes
XR EXEC mode
Command History
Release
|
Modification
|
Release 6.0.1
|
This command was introduced.
|
Usage Guidelines
If no interface is
specified, all virtual routers on all interfaces are displayed. If no vrid is
specified, all vrids on the given interface are displayed.
Task ID
Task ID
|
Operations
|
vrrp
|
read
|
Examples
The following
sample output is from the
show vrrp
command:
Router# show vrrp
A indicates IP address owner
| P indicates configured to preempt
| |
Interface vrID Prio A P State Master addr VRouter addr
Te0/3/0/0 1 100 P Init unknown 192.168.18.10
Te0/3/0/2 7 100 P Init unknown 192.168.19.1
This table
describes the significant fields shown in the display.
Table 1. show vrrp
Command Field Descriptions
Field
|
Description
|
Interface
|
Interface
of the virtual router.
|
vrID
|
ID of the
virtual router.
|
Prio
|
Priority
of the virtual router.
|
A
|
Indicates
whether the VRRP router is the IP address owner.
|
P
|
Indicates
whether the VRRP router is configured to preempt (default).
|
State
|
State of
the virtual router.
|
Master
addr
|
IP address of the IP address owner router.
|
VRouter
addr
|
Virtual
router IP address of the virtual router.
|
The following
sample output is from the
show vrrp
command with the
detail
keyword:
Router# show vrrp detail
GigabitEthernet0/4/0/0 – IPv4 vrID 1
State is Master, IP address owner
2 state changes, last state change 00:00:59
Virtual IP address is 192.168.10.1
Secondary Virtual IP address is 192.168.10.2
Secondary Virtual IP address is 192.168.11.1
Virtual MAC address is 0000.5E00.0101
Master router is local
Advertise time 1 secs
Master Down Timer 3.609 (3 x 1 + 156/256)
Minimum delay 1 sec, reload delay 5 sec
Current priority 100
Configured priority 110, may preempt
Minimum delay 0 secs
Authentication enabled, string “myauth”
BFD enabled: state Up, interval 15ms multiplier 3 remote IP 192.168.10.3
Tracked items:
Priority
Interface State Decrement
0/5/0/1 Down 10
GigabitEthernet0/4/0/0 – IPv4 vrID 2
State is Backup
3 state changes, last state change 00:01:58
Virtual IP address is 192.168.10.2
Virtual MAC address is 0000.5E00.0102
Master router is IP address owner (192.168.11.1), priority 200
Advertise time 1.500 secs (forced)
Master Down Timer 5.109 (3 x 1 + 156/256)
Minimum delay 1 sec, reload delay 5 sec
Current priority 100
Configured priority 100, may preempt
Minimum delay 20 secs
Bundle-Ether1 – IPv4 vrID 5
State is Init
0 state changes, last state change never
Virtual IP address is unknown
Virtual MAC address is 0000.5E00.0100
Master router is unknown
Advertise time 1 secs
Master Down Timer 3.500 (3 x 1 + 128/256)
Minimum delay 1 sec, reload delay 5 sec
Current priority 128
Configured priority 128
GigabitEthernet0/4/0/0 – IPv6 vrID 1
State is Master
2 state changes, last state change 00:10:01
Virtual Linklocal address is FE80::100
Global Virtual IPv6 address is 4000::100
Global Virtual IPv6 address is 5000::100
Virtual MAC address is 0000.5E00.0201
Master router is local
Advertise time 1 secs
Master Down Timer 3.609 (3 x 1 + 156/256)
Minimum delay 1 sec, reload delay 5 sec
Current priority 100
Configured priority 100, may preempt
Minimum delay 0 secs
This table
describes the significant fields shown in the displays.
Table 2. show vrrp
detail Command Field Descriptions
Field
|
Description
|
TenGigE 0/3/0/0 - vrID 1
|
Interface
type and number, and VRRP group number.
|
State is
|
Role this interface plays within VRRP (IP address owner router or backup router).
|
Virtual IP
address is
|
Virtual IP
address for this virtual router.
|
Virtual
MAC address is
|
Virtual
MAC address for this virtual router.
|
Master
router is
|
Location of the IP address owner router.
|
Advertise
time
|
Interval (in seconds) at which the router sends VRRP advertisements when it is the IP address owner virtual router. This value
is configured with the
vrrp timer
command.
|
Master
Down Timer
|
Time the backup router waits for the IP address owner router advertisements before assuming the role of IP address owner router.
|
Minimum
delay
|
Time that
the state machine start-up is delayed when an interface comes up, giving the
network time to settle. The minimum delay is the delay that is applied after
any subsequent interface up event (if the interface flaps) and the reload delay
is the delay applied after the first interface up event.
|
Current
priority
|
Priority
of the virtual router.
|
Configured
priority
|
Priority
configured on the virtual router.
|
may
preempt
|
Indication
of whether preemption is enabled or disabled.
|
minimum
delay
|
Delay time
before preemption (default) occurs.
|
Tracked
items
|
Section
indicating the items being tracked by the VRRP router.
|
Interface
|
Interface
being tracked.
|
State
|
State of
the tracked interface.
|
Priority
Decrement
|
Priority
to decrement from the VRRP priority when the interface is down.
|
The following sample output is from the show vrrp command with the interface
keyword
for 10-Gigabit Ethernet interface 0/3/0/0:
Router# show vrrp interface HundredGigE 0/3/0/0
A indicates IP address owner
| P indicates configured to preempt
| |
Interface vrID Prio A P State Master addr VRouter addr
Te0/3/0/0 1 100 P Init unknown 192.168.10.20
Te0/3/0/2 7 100 P Init unknown 192.168.20.0