On Fri, 2019-11-29 at 16:07 +0000, Drew Weaver wrote: > Was just doing some SNMP poking around on IOS 15 and noticed that > RFC1213 seems to not be there anymore. > > Is there a direct replacement for RFC1213-MIB::ipRouteType that is > accessible like this: ipRouteType.NetworkAddr ?? > > I see that there is a IP-FORWARD-MIB::ipCidrRouteType but it's much > less convenient to use that with snmpget.
I had that exact same problem recently. I found that most recent IOS versions support CISCO-CEF-MIB::cefPathType that does what I need: Output is something like this: CISCO-CEF-MIB::cefPathType.3016.ipv4."10.86.65.0".24.1 = INTEGER: attachedNexthop(5) CISCO-CEF-MIB::cefPathType.3016.ipv4."10.86.65.0".24.2 = INTEGER: attachedNexthop(5) CISCO-CEF-MIB::cefPathType.3016.ipv4."100.64.0.0".30.1 = INTEGER: connectedPrefix(2) CISCO-CEF-MIB::cefPathType.3016.ipv4."100.64.0.0".32.1 = INTEGER: receive(1) CISCO-CEF-MIB::cefPathType.3016.ipv4."100.64.0.1".32.1 = INTEGER: adjacencyPrefix(7) Routes with multiple entries in the RIB have multiple entries in this table. If you're looking for "connected" networks it would be the types "attachedNexthop(5)" and "connectedPrefix(2)" you need. -- Peter _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
