Gateway Monitoring for Legacy HA

Avi Vantage supports health monitoring of the first-hop gateways connected to Avi Service Engines (SEs). As of release 17.2.3 it can also monitor routers which are not directly connected. ICMP echo packets are used to perform the health monitoring.

Gateway health monitoring is performed from both active and standby Avi SEs.


Enabling Gateway Health Monitoring

Gateway health monitoring is part of the cloud configuration. If and when an IP address to monitor is furnished, then all legacy HA SE groups within the particular cloud perform gateway health monitoring.

Web Interface

  1. Navigate to Infrastructure > Clouds.
  2. Click the edit icon next to the name of the cloud to modify (for example, Default-Cloud).
  3. Click Gateway Monitor.
  4. Click Create.
  5. Enter the gateway information, including IP address, and click Save.



Use the following commands to configure monitoring for a gateway:

:> configure vrfcontext global
vrfcontext> gateway_mon

Make sure to use the IP address of the gateway where this example shows “”

Enhancements in Avi Vantage release 16.2.3

Beginning with the 16.2.3 release, it is possible to configure multiple gateway monitors.  This is typically useful in two-armed deployment where the first-hop gateway used for front-end and back-end connections are different.

Switchover of the virtual service is triggered if failure is detected in at least one gateway.

Monitoring of Routers Not Directly Connected

Starting with Avi Vantage 17.2.3, gateway monitoring can be extended to routers which are not directly connected. The administrator must take these steps:

  1. Ensure there is an appropriate route in Avi Vantage to provide reachability to the indirectly connected router via Infrastructure > Routing > Static Route.

    defining a static route

  2. Configure the new subnet field for that gateway monitor to point to the interface network through which the router is reachable. Use these CLI commands:

configure vrfcontext global
gateway_mon index 1


  • In the gateway_mon index command, 1 is the index to the router if it is already configured via the Avi UI.
  • In the subnet command, is the interface network on the SE through which the router being monitored is reachable.