02-28-2020 06:23 AM
I have a Cisco 3750 switch with IP services and running IOS 12.2. I am using SLA and tracking objects to handle redundant communications paths. The problem I am having is controlling where the ping issued by the SLA is going. It needs to go out the primary path, but when the primary path is down, it goes out the secondary. Some code snippets:
Port configuration:
!
interface GigabitEthernet1/0/7
description ** Link to Wastewater Radio on Top of Backwash Tower **
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/10
description ** Direct connection to AT&T router for Cellular Telemetry **
no switchport
ip address 10.18.252.1 255.255.255.0
!
port 7 is the secondary and port 10 is the primary.
SLA configuration:
ip sla 152
icmp-echo 10.16.2.52 source-ip 10.18.252.1
ip sla schedule 152 life forever start-time now
track 152 ip sla 152 reachability
ip route 10.16.2.52 255.255.255.255 10.18.252.2 track 152
ip route 10.16.2.52 255.255.255.255 10.15.1.52 201
VLAN configurations:
vlan 15
name WW_RADIO
interface Vlan15
ip address 10.15.1.200 255.255.255.0
The remote has two IP addresses, one for the cellular: 10.16.2.52 (Primary) and a second radio: 10.15.1.52 (secondary).
Any ideas why the ping is being directed to the secondary when the primary goes down? I was told that when a port is configures as a router port, and it issues a ping, that ping always goes out the physical port.
03-01-2020 03:48 PM
Hi,
SLA allows you to configure the source and destination, but not the egress interface, or restricting the egress interface. You can still achieve what you want, but not with that config:
- route the destination of your SLA (10.16.2.252) only towards the primary link, and make it permanent so it stays in the RIB even if the link fails: ip route 10.16.2.252 255.255.255.255 10.18.252.2 permanent; so remove the existing routes for 10.16.2.252
- leave your SLA and tracking as configured
- configure another static route to be tracked by your SLA, with failover; assuming the remote side also has IP of 20.20.20.20, and you would need to have reliable floating route, you would configure: ip route 20.20.20.20 255.255.255.255 10.18.252.2 track 152 and ip route 20.20.20.20 255.255.255.255 10.15.1.52 201
With that config, your SLA packets are only gonna be forwarded out the primary link.
Regards,
Cristian Matei.
03-04-2020 10:59 AM
03-01-2020 04:24 PM
Hello
Try the the below, So when you lose the tracking reachability to that ip will get blackholed
no ip route 10.16.2.52 255.255.255.255 10.15.1.52 201
ip route 10.16.2.52 255.255.255.255 null 0 2
03-04-2020 10:48 AM
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