Configuring an Oracle® Solaris 11.2 System as a Router or a Load Balancer

Exit Print View

Updated: September 2014
 
 

Displaying Layer 2 and Layer 3 VRRP Router Configurations

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

Name of the VRRP router.

VRID

VRID of the VRRP router.

TYPE

The type of VRRP router, which is either L2 or L3.

IFNAME

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.

AF

The address family of the VRRP router. It can be either IPv4 or IPv6.

PRIO

The priority of the VRRP router, which is used for master selection.

ADV_INTV

The advertisement interval displayed in milliseconds.

MODE

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.

STATE

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
PRV_STAT

The previous state of the VRRP router.

STAT_LAST

Time since the last state transition.

PRIMARY_IP

The primary IP address selected by the VRRP router.

VIRTUAL_IPS

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
PEER

The primary IP address of the peer VRRP router.

P_PRIO

The priority of the peer VRRP router, which is part of the advertisement received from the peer.

P_INTV

The advertisement interval (in milliseconds), which is part of the advertisements received from the peer.

P_ADV_LAST

Time since the last received advertisement from the peer.

M_DOWN_INTV

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.