I have the following configuration at present. Router A is our IP clear router on site with Router B as the internet router. Router C is a router at our main site.
I want to route the internet out from site via router B but if the interface/ Router B fails then send traffic to X.X.X.X via router D.
I have the following config which allows the traffic out via Router C and manually removing the statement ip route X.X.X.X 255.255.255.255 B.B.B.B on router A sends the traffic down link D. I want to know how to make the statement dynamic based on the state of router B or link A
router BGP 123
ip route X.X.X.X 255.255.255.255 B.B.B.B
Ip route 0.0.0.0 0.0.0.0 dialer 1
router bgp 123
network X.X.X.X mask 255.255.255.255
ip router X.X.X.X 255.255.255.255 D.D.D.D