Pinging the virtual IP of a backup router

Enabling the response to a ping request

The backup router can be enabled to respond to pings using the following command. For more information, see Pinging the virtual IP of a backup router.

Syntax:

[no] router vrrp virtual-ip-ping

Enables or disables the response to a ping request for the switch. When enabled, all VRs that are not owners and are not explicitly disabled (see virtual-ip-ping enabled command) respond to ping requests sent to the VIP when the backup VR is acting as master.

Default: Response to virtual IP ping is disabled.

Enabling the response to ping requests

HP-Router1# config
HP-Router1(config)# ip routing
HP-Router1(config)# router vrrp
HP-Router1(config)# router vrrp virtual-ip-ping

Controlling ping responses

Syntax:

[no] virtual-ip-ping enabled

Enables or disables the response to a ping request to a specific VR. The command applies to all VIPs on the VR.

Must be executed in VRRP context (vlan vid vrrp vrid vrid)


[NOTE: ]

NOTE: The VR should be configured as a backup.


Default: Enabled

Disabling a response to ping requests to a VIP

HP Switch-Router1(config)# ip routing
HP Switch-Router1(config)# router vrrp
HP Switch-Router1(config)# router vrrp virtual-ip-ping
HP Switch-Router1(config)# vlan 2 vrrp vrid 1
HP Switch-Router1(vlan-2-vrid-1)# virtual-ip-address 10.0.202.87
HP Switch-Router1(vlan-2-vrid-1)# no virtual-ip-ping enable

HP Switch-Router1(vlan-2-vrid-1)# enable
HP Switch-Router1(vlan-2-vrid-1)# exit
HP Switch-Router1(vlan-2)# exit
HP Switch-Router1(config)#

Viewing VRRP ping information

Display IPv4 global VRRP configuration information by entering the show vrrp config global command. Display IPv6 global VRRP configuration information by entering the show vrrp ipv6 config global command.

Example of VRRP global configuration information

HP Switch(config)# show vrrp config global

VRRP Global Configuration Information

 VRRP Enabled                                   : Yes
 Traps Enabled                                  : Yes
 Virtual Routers Respond to Ping Requests [Yes] : Yes
 Virtual Nonstop enabled                        : No

Use the show vrrp command to display information about VRRP global statistics.

Example

VRRP IPv4 global statistics information

HP Switch(config)# show vrrp

 VRRP Global Statistics Information

  VRRP Enabled           : Yes
  Invalid VRID Pkts Rx   : 0
  Checksum Error Pkts Rx : 0
  Bad Version Pkts Rx    : 0
  Virtual Routers Respond To Ping Requests : Yes


 VRRP Virtual Router Statistics Information

  Vlan ID                  : 2
  Virtual Router ID        : 1
  Protocol Version         : 2
  State                    : master
  Up Time                  : 25 secs
  Virtual MAC Address      : 00005e-000101
  Master's IP Address      : 10.0.102.87
  Associated IP Addr Count : 1          Near Failovers            : 0
  Advertise Pkts Rx        : 0          Become Master             : 1
  Zero Priority Rx         : 0          Zero Priority Tx          : 0
  Bad Length Pkts          : 0          Bad Type Pkts             : 0
  Mismatched Interval Pkts : 0          Mismatched Addr List Pkts : 0
  Mismatched IP TTL Pkts   : 0          Mismatched Auth Type Pkts : 0

Example

VRRP IPv6 global statistics information

HP Switch# show vrrp ipv6 statistics

VRRP Global Statistics Information

  VRRP Enabled               : Yes
  Invalid VRID Pkts Rx      : 0
  Checksum Error Pkts Rx     : 0
  Bad Version Pkts Rx        : 0
  Virtual Routers Respond To Ping Requests  : Yes

VRRP Virtual Router Statistics Information
  VLAN ID                  : 10
  Virtual Router ID        : 1
  Protocol Version         : 3
  State                    : Master
  Up Time                  : 26 mins
  Virtual MAC Address      : 00005e-000101
  Master's IP Address      : 2130::21
  Associated IP Addr Count : 1          Near Failovers            : 0
  Advertise Pkts Rx        : 0          Become Master             : 1
  Zero Priority Rx         : 0          Zero Priority Tx          : 0
  Bad Length Pkts          : 0          Bad Type Pkts             : 0
  Mismatched Interval Pkts : 0          Mismatched Addr List Pkts : 0
  Mismatched IP TTL Pkts   : 0          Mismatched Auth Type Pkts : 0

Display VRRP configuration information using the show vrrp config command.

Example

VRRP IPv4 configuration display showing VIP ping status

HP Switch# show vrrp config

 VRRP Global Configuration Information

  VRRP Enabled                             : Yes
  Traps Enabled                            : Yes
  Virtual Routers Respond To Ping Requests : Yes
  VRRP Nonstop Enabled                     : No


 VRRP Virtual Router Configuration Information

  VLAN ID   2
  Virtual Router ID : 1

  Administrative Status [Disabled] : Enabled
  Mode [Uninitialized] : backup
  Priority [100] : 150
  Advertisement Interval [1]  : 1
  Preempt Mode [True] : True
  Preempt Delay Time [0] : 0
  Respond To Virtual IP Ping Requests [Yes]  : Yes
  Version [2] : 2
  Null authentication compatibility [False] : False
  Primary IP Address : Lowest
  
  IP Address    
  -------------  
  10.0.202.87   

Example

VRRP IPv6 configuration display showing VIP ping status

HP Switch# show vrrp ipv6 config

VRRP Global Configuration Information

VRRP Enabled                                  : Yes
Traps Enabled                                 : Yes
Virtual Routers Respond To Ping Requests      : No
VRRP Nonstop Enabled                          : No

VRRP Virtual Router Configuration Information

VLAN ID                                       : 10
Virtual Router ID                             : 10
Administrative Status [Disabled]              : Enabled
Mode [Uninitialized]                          : Owner
Priority [100]                                : 255
Advertisement Interval [1]                    : 1
Preempt Mode [True]                           : True
Preempt Delay Time [0]                        : 0
Respond To Virtual IP Ping Requests [Yes]     : Yes
Version [2]                                   : 3
RFC2338 authentication compatibility          : True

 IPv6 Address 
 -------------
 fe80::216:b9ff:fed1:5280

Example

VRRP IPv4 configuration for a VLAN and VRID

This example displays the ping response status for a specific VLAN and VRID.

HP Switch(config)# show vrrp vlan 2 vrid 1 config

 VRRP Virtual Router Configuration Information

  VLAN ID : 2
  Virtual Router ID : 1

  Administrative Status [Disabled] : Enabled
  Mode [Uninitialized] : backup
  Priority [100] : 150
  Advertisement Interval [1] : 1
  Preempt Mode [True] : True
  Preempt Delay Time [0] : 0
  Respond To Virtual IP Ping Requests [Yes] : Yes
  Version [2] : 2
  Null authentication compatibility [False] : False
  Primary IP Address : Lowest

  IP Address
  ---------------
  10.0.202.87

Example

VRRP IPv6 configuration for a VLAN and VRID

HP Switch# show vrrp ipv6 vlan 10 vrid 4 config

VRRP Virtual Router Configuration Information

VLAN ID                                   : 10
Virtual Router ID                         : 1
Administrative Status [Disabled]          : Enabled
Mode [Uninitialized]                      : Owner
Priority [100]                            : 255
Advertisement Interval [1]                : 1
Preempt Mode [True]                       : True
Preempt Delay Time [0]                    : 0
Respond To Virtual IP Ping Requests [Yes] : Yes
Version [2]                               : 3

IPv6 Address
---------------------------
fe80::216:b9ff:fed1:5280

Example

IP route information

This example shows the gateway information for IP routes. A designation of "reject" means that the IP traffic for that route is discarded. Blackhole/reject routes are added when a backup VR becomes a Master and takes ownership of all VIPs. The blackhole/reject route ensures that routed packets to the VIP are not forwarded through it. When virtual-ip-ping is enabled, the ping packets to the VIP are responded to with ping replies.

HP Switch(config)# show ip route

   Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
   ------------------ --------------- ---- --------- ---------- ---------- -----
   10.0.0.0/16        DEFAULT_VLAN    1    connected            1          0
   10.0.202.87/32     reject               static               1          1
   127.0.0.0/8        reject               static               0          0
   127.0.0.1/32       lo0                  connected            1          0

Operational notes

  • Jumbo frames are supported if they have been enabled for that VLAN. The VIP responds to ping requests if they are not fragmented and are not larger than the MTU.

  • Fragmented packets are not supported. All fragmented packets sent to a VIP are dropped and no response or error is sent.

  • All packets with IP options are dropped. Any ping options will work as long as they do not change to IP options.

  • ICMP requests other than echo requests are not supported.

  • If there are errors in packets sent to a VIP, for example,"TTL Invalid," no ICMP error packet is sent.