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 126.96.36.199/32 10.1.1.1 (this is the normal default route)
if (ping 188.8.131.52 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 184.108.40.206 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)