cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a ping test of upstream device (more than 1 hop away) to change default route

How to use a ping test of upstream device (more than 1 hop away) to change default route

Tim_Kimball
New Contributor
Using Summit x690s XOS 22. No dynamic routing protocols. Want to change the default route on the switch if a ping test to an upstream router fails. The upstream router is more than one hop away so cannot use the flow redirect.
3 REPLIES 3

Stephane_Grosj1
Extreme Employee
Hi,

I usually do this via a script, executed by a UPM timer. You ping whatever (group of) remote IP(s), add whatever weight for each and do what is needed (change the default, add/remove a PBR, etc).

Tim_Kimball
New Contributor
This only works to test the default gateway IP to see if it is up. We need to test a few hops away.
Thanks

Karthik_Mohando
Extreme Employee
Hi Tim,

Please check if this helps.

configure iproute add [default | ipv4_or_ipv6_network] gateway
{protection [bfd | ping | none]}

Usage Guidelines
For static routes configured with protection type ping, static routes are initially down. Static routes
become "up" for each configured gateway/device IP when a timely ICMP Echo Reply is received from
that IP within the configured ping interval. Static routes transition from up to down when no timely
reply is received for the configured number of missed intervals. Severely delayed ICMP Echo Replies are
ignored if received after the configured interval time elapses, because a new ICMP Echo Request has
already been sent. Static routes with ping protection need not be ECMP routes. Thus when a device is
unresponsive, a different route with a higher cost or shorter prefix length can route packets elsewhere.

This command was first available in ExtremeXOS 22.1.
GTM-P2G8KFN