I am working on a multihomed network. There's a BGP session with ISP1 and I'm on the point of setting up a BGP session with another ISP2. I'll like ISP2 to be a Backup link and must only be used when ISP 1 is down.
In fact , i'll like to use ISP 2 when the ping on some internet address goes down. Cos at times the prob is not with ISP 1 but further upstream.
I intend to use PBR and IP SLA. Below is my configuration
description Connected to ISP 2
ip address 192.168.3.1 255.255.255.0
description Connected to ISP 1
ip address 192.168.2.1 255.255.255.0
ip address 192.168.20.1 255.255.255.0
ip policy route-map BACKUP
router bgp 37034
neighbor 192.168.2.2 remote-as 15964
neighbor 192.168.2.2 description ISP 1
neighbor 192.168.2.2 ebgp-multihop 255
neighbor 192.168.2.2 weight 100
neighbor 192.168.2.2 route-map Permit_default_route in
neighbor 192.168.3.2 remote-as 8513
neighbor 192.168.3.2 description ISP 2
neighbor 192.168.3.2 ebgp-multihop 255
neighbor 192.168.3.2 route-map Permit_default_route in
route-map BACKUP permit 10
match ip address 101
set ip next-hop verify-availability 192.168.2.2 1 track 30
ip sla monitor 3
type echo protocol ipIcmpEcho 192.168.4.1
ip sla monitor schedule 3 life forever start-time now
track 30 rtr 3 reachability
access-list 101 permit ip any any
route-map Permit_default_route permit 10
match ip address 12
My real problem now is causing the router to remove the default route through ISP 1 from the routing table when the ping on 192.168.4.1 goes down so as to use the route throught ISP 2.
Thanks for your help in advance.