Create Date: May 29 2013 11:47AM
I would like to change routing dependent on access to an external IP address, on a Juniper (SSG) they call this "monitor". on Cisco its called track.
Is there a way to do this on extreme.
Could I use script to do it but would prefer some proper config setting?
Can I get a return from ping to an if statement?
conf ipr add default 10.1.1.1 (normal default route)
conf ipr add route 220.127.116.11/32 10.1.1.1 (this is the normal default route)
if (ping 18.104.22.168 and ROUTE_BACKUP) /* i'm testing out via the default route to see if its working and i'm in backup mode*/
conf ipr add default 10.1.1.1 /* set the route back to the main link*/
conf ipr del default 10.1.1.2 /* remove the backup route */
ROUTE_BACKUP = FALSE
ROUTE_MAIN = TRUE
if (NOT ping 22.214.171.124 and ROUTE_MAIN) /* the ping has failed out of the main route so change to backup link*/
conf ipr add default 10.1.1.2 /* set the route to backup link*/
conf ipr del default 10.1.1.1 /* remove the main route */
ROUTE_BACKUP = TRUE
ROUTE_MAIN = FALSE
ben... (from ben_anrep)