cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
341
Views
4
Helpful
2
Replies

Monitoring changes to static routes

mlinzbach
Level 1
Level 1

I've recently begun utilizing ip sla monitoring and track statements on my routers to watch the availability of the next hop past my firewall. If the next hop is not available, the static route is updated per the following:

ip route 0.0.0.0 0.0.0.0 1.2.3.4 track 10

ip route 0.0.0.0 0.0.0.0 5.6.7.8 200 track 20

So when all is well and my local ISP is reachable, the 0.0.0.0 route points to my local firewall 1.2.3.4. If my local ISP is not reachable, the 0.0.0.0 route points to a different firewall located at 5.6.7.8. Because it has a higher administrative distance (200) if the primary comes back online, the primary takes over.

The question I have is there a way for me to send an SNMP trap or log to a syslog server if there is a change in what is considered to be the 0.0.0.0 route?

Searching these forums I learned that OID 1.3.6.1.2.1.4.21 will have all my route entries in it so I might be able to gather this from some sort of script but my preference would be to send a syslog or SNMP trap.

IOS is Version 12.4(4)T1

Thanks for your input.

2 Replies 2

Hi,

Looks like you can enable traps for RTR events:

R1(config)#snmp-server enable traps ?

(output removed)

rtr Enable SNMP Response Time Reporter traps

BTW, the output is from a 2611 running version 12.3(17a).

Pls. rate all helpful posts.

Sundar

Thanks for the reply. I'll dig into this tomorrow.

I've also been able to pull some information via a snmp command:

[matt@fc4]$ snmpwalk -c ######### -v1 172.16.1.1 1.3.6.1.2.1.4.21.1.7.0.0.0.0 | awk -F: '{print $4 }'

172.16.1.254

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: