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

Exit Print View

Updated: September 2014
 
 

Displaying IP Addresses That Are Associated With VRRP Routers

You can display the IP address associated with a VRRP router by using the ipadm show-addr command. The ROUTER field in the output of the ipadm show-addr command displays the name of the VRRP router that is associated with a specific vrrp type IP address.

For the vrrp type IP address of an L2 VRRP, the name of the VRRP router is derived from the VRRP VNIC over which the IP address is configured. If you issue the ipadm show-addr command before you create the L2 router for a VRRP VNIC, the ROUTER field displays ?. For the vrrp type IP address of an L3 VRRP, the ROUTER field always displays the specified router name. For other types of IP addresses, the ROUTER field is not applicable and -- is displayed.

Example 4-7  Displaying IP Addresses That Are Associated With VRRP Routers
# ipadm show-addr -o addrobj,type,vrrp-router,addr
ADDROBJ              TYPE     VRRP-ROUTER	  ADDR
lo0/v4               static   --               127.0.0.1/8
net1/p1              static   --               192.168.11.10/24
net1/v1              vrrp     l3router1        192.168.81.8/24
vrrp_vnic1/vaddr1    vrrp     l2router1        192.168.82.8/24
lo0/v6               static   --               ::1/128

In this example, l3router1 is associated with the vrrp type IP address 192.168.81.8/24 and l2router1 is associated with the vrrp type IP address 192.168.82.8/24.

The output shows the following information:

ADDROBJ

The name of the address object.

TYPE

The type of the address object, which can be one of the following:

  • from-gz

  • static

  • dhcp

  • addrconf

  • vrrp

VRRP-ROUTER

The name of the VRRP router.

ADDR

The numeric IPv4 or IPv6 address.