03-14-2019 02:17 AM
Friends, desperately need your help
I have a two ISP (ISP1 primary, ISP2 backup) connected to cisco ASA on the edge of my net. I have a task to route DMZ subnet to ISP2, and if the link to ISP2 (backup) is down I have to route it to ISP1 (primary).
I have two static routes like:
route ISP1 0.0.0.0 0.0.0.0 10.1.1.145 1
route ISP2 0.0.0.0 0.0.0.0 20.1.1.158 254
1) I created 2 sla monitors - one to monitor primary ISP1 link (via 8.8.8.8 as remote object); second to monitor ISP2 link as well and created tracks for this two objects
sla monitor 1
type echo protocol ipIcmpEcho 8.8.8.8 interface ISP 1
sla monitor schedule 1 life forever start-time now
track 1 rtr 1 reachability
sla monito 2
type echo protocol ipIcmpEcho 8.8.8.8 interface ISP2
sla monitor schedule 2 life forever start-time now
track 2 rtr 2 reachability
2)created acl DMZ_PBR and used it in PBR
access-list DMZ_PBR extended permit ip object DMZ_LAN any
route-map DMZ_MAP permit 10
match ip address DMZ_PBR
set ip next-hop verify-availability 20.1.1.158 1 track 2
set ip next-hop verify-availability 10.1.1.145 2 track 1
3) applied this map to DMZ interface
interface g0/3
policy-route route-map DMZ_PBR
But when I check the tracks (1 track for primary; 2 for backup)
I see that track 1 is up, but track 2 is down. I believe this is because SLA track 2 for ISP2 backup goes via static default route via ISP1 interface and when the reply comes from 8.8.8.8 it is being dropped.
Does anyone had such issue, or how can I do it or show working configuration for such scenario, cause I'm stuck here. People were suggestion to make redundant interface for OUTSIDE interfaces but I don't think this is the case.
Thank you in advance!
Solved! Go to Solution.
03-14-2019 06:08 AM
03-14-2019 08:59 AM
Hello,
that looks better. I guess you need to configure the SLA to monitor something that actually belongs to the ISP (whereas 8.8.8.8 is not really ISP specific). That is what the DNS servers are, ISP specific.
Anyway, keep monitoring, it should work this way...good luck.
03-14-2019 03:14 AM
Hello,
I recreated your setup in GNS3, using loopbacks on the ISP routers rather than 8.8.8.8, and both tracks are up.
What if you change the SLAs to:
sla monitor 1
type echo protocol ipIcmpEcho 10.1.1.145 interface ISP 1
sla monitor schedule 1 life forever start-time now
track 1 rtr 1 reachability
sla monito 2
type echo protocol ipIcmpEcho 20.1.1.158 interface ISP2
sla monitor schedule 2 life forever start-time now
track 2 rtr 2 reachability
03-14-2019 06:08 AM
03-14-2019 08:59 AM
Hello,
that looks better. I guess you need to configure the SLA to monitor something that actually belongs to the ISP (whereas 8.8.8.8 is not really ISP specific). That is what the DNS servers are, ISP specific.
Anyway, keep monitoring, it should work this way...good luck.
03-14-2019 09:22 AM
03-14-2019 05:26 AM - edited 03-14-2019 05:44 AM
Hello
@Gerorymo wrote:
see that track 1 is up, but track 2 is down
You need to track a destination that is reachable between the source and this case it looks like because your tracking 8.8.8.8 ISP2 interface isn't able to reach 8.8.8.8 via ISP1 which is you default route at present, so track something that is significant to either ISP
May I ask if ISP1 is down I assume you want to route all traffic via ISP 2? - if so you may also need to track both availability's via a boolean
Example:
track 3 list boolean and
object 1
object 2
track 1 rtr 1 reachability
track 2 rtr 2 reachability
route-map DMZ_MAP permit 10
match ip address DMZ_PBR
set ip next-hop verify-availability ISP2 1 track 2
set ip next-hop verify-availability ISP1 2 track 1
set ip next-hop ISP1 ISP2
ip route 0.0.0.0 0.0.0.0 <interface) 10.1.1.145 track 3
ip route 0.0.0.0 0.0.0.0 <interface) 20.1.1.158 254
03-14-2019 06:12 AM - edited 03-14-2019 06:18 AM
Hello Paul,
This is interesting syntax, I've never saw one. To say honestly I'm newbie with cisco devices, especially ASA which has some differencies with other products they've released. I will test this workaround in lab and let you know. Really appreciate your response. And btw I've also added the tracking to the static routes so it is changing both for PBR and other routing, but your option is more interesting to me, I didn't know that you can have boolean for tracks.
I've also shared my conf above your reply. I would really appreciate if you point me some problematic areas, but so far this config is working.
03-14-2019 07:46 AM
Hello
you know what I missed a vital point so apologies - your using ASA ! - however the Boolean should still work but if you any issues with it let me know
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide