cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a "Juniper Monitor" or "Cisco Track" function in XOS

Is there a "Juniper Monitor" or "Cisco Track" function in XOS

EtherNation_Use
Contributor II
Create Date: May 29 2013 11:47AM

Hi,
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?
eg

conf ipr add default 10.1.1.1 (normal default route)
conf ipr add route 8.8.8.8/32 10.1.1.1 (this is the normal default route)
while(true)
{
if (ping 8.8.8.8 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 8.8.8.8 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
}
}

Many thanks
ben... (from ben_anrep)
0 REPLIES 0
GTM-P2G8KFN