I have attached the view of my topology.
HO has two paths to reach internet, one from HO-ISP(primary path for HO) & other from Sales(backup path for HO)
Sales branch also has two paths, one from Sales-ISP(Primary path for sales)& other from HO(backup path for sales)
I want my network to auto failover between the links.Will somebody give me an idea either I have to use IP SLA Tracking or some policy map to get this job done.Thanks
IMHO, the easiest scenario would be:
Ask each of your ISPs to advertise the default route via iBGP to your (HO and Sales) routers as long as his Internet connection is Up.
Change the iBGP AD (200 by default) on your routers to beat the OSPF AD (110 by default).
Redistribute the default route from BGP to OSPF on your routers.
Advertise the default route to the OSPF cloud from both your routers.
(If any othe roruter is participating in your OSPF, you might need to tune the OSPF metric to be sure it would be using you preferred (HO?) router as the gateway to the Internet.)
As long as your router (either HO or Sales) would be receiving the default route from his ISP, he would use it.
At the moment the Internet connection is Down, the ISP will stop advertising the default route via iBGP.
Your router will start using the other default route received from OSPF.
At the moment the Internet connection is Up again, your router will get the default route from his ISP again and will start using it (better AD).