The vrrpadm show-router command shows the configuration and status of a specified VRRP router. For more information, see the vrrpadm (1M) man page. The syntax is as follows:
# vrrpadm show-router [-P | -x] [-p] [-o field[,...]] [router-name]Example 4-5 Displaying a Layer 2 VRRP Router Configuration
The following examples show the vrrpadm show-router command output.
# vrrpadm show-router vrrp1 NAME VRID TYPE IFNAME AF PRIO ADV_INTV MODE STATE VNIC vrrp1 1 L2 net1 IPv4 100 1000 e-pa- BACK vnic1
Name of the VRRP router.
VRID of the VRRP router.
The type of VRRP router, which is either L2 or L3.
The interface on which the VRRP router is configured. For an L2 VRRP router, the interface can be a physical Ethernet interface, a VLAN, or an aggregation.
The address family of the VRRP router. It can be either IPv4 or IPv6.
The priority of the VRRP router, which is used for master selection.
The advertisement interval displayed in milliseconds.
A set of flags that are associated with the VRRP router and include the following possible values:
e – Specifies that the router is enabled.
p – Specifies that the mode is preempt.
a – Specifies that the mode is accept.
o – Specifies that the router is the virtual address owner.
The current state of the VRRP router. The possible values are: INIT (initialize), BACK (backup), and MAST (master).
In this example, information about the specified VRRP router vrrp1 is displayed.
# vrrpadm show-router -x vrrp1 NAME STATE PRV_STAT STAT_LAST VNIC PRIMARY_IP VIRTUAL_IPS vrrp1 BACK MAST 1m17s vnic1 10.0.0.100 10.0.0.1
The previous state of the VRRP router.
Time since the last state transition.
The primary IP address selected by the VRRP router.
The virtual IP addresses configured on the VRRP router.
In this example, additional information about the router, such as the primary IP address selected by the VRRP router, virtual IP address configured on the VRRP router, and the previous state of the VRRP router is displayed.
# vrrpadm show-router -P vrrp1 NAME PEER P_PRIO P_INTV P_ADV_LAST M_DOWN_INTV vrrp1 10.0.0.123 120 1000 0.313s 3609
The primary IP address of the peer VRRP router.
The priority of the peer VRRP router, which is part of the advertisement received from the peer.
The advertisement interval (in milliseconds), which is part of the advertisements received from the peer.
Time since the last received advertisement from the peer.
Time interval (in milliseconds) after which the master router is declared down.
The –P option is used only when the VRRP router is in the backup state.
Example 4-6 Displaying the L3 VRRP Router on a System# vrrpadm show-router NAME VRID TYPE IFNAME AF PRIO ADV_INTV MODE STATE VNIC l3vr1 12 L3 net1 IPv6 255 1000 eopa- INIT –
In this example, the L3 VRRP router l3vr1 is configured over the interface net1.