We are trying to retrieve part of the routing table via SNMP.
However, we encountered the following problem:
We place two static routes: one to network 192.168.168.0/28 and another to
192.168.168.0/24
c751e1#sh ip ro
S 192.168.168.0/28 [1/0] via x.90.64.135
S 192.168.168.0/24 [1/0] via x.90.64.137
When I try to find 192.168.168.0/24, I could not see it in the SNMP table,
(tried snmpwalk as well). Only the more specific appears.
snmpget router-ip public .1.3.6.1.2.1.4.21.1.7.192.168.168.0
ip.ipRouteTable.ipRouteEntry.ipRouteMask.192.168.168.0 = IpAddress:
255.255.255.240
Here is snmpwalk:
ip.ipRouteTable.ipRouteEntry.ipRouteDest.192.168.168.0 = IpAddress:
192.168.168.0
with only
ip.ipRouteTable.ipRouteEntry.ipRouteMask.192.168.168.0 = IpAddress:
255.255.255.240
In RFC 1213 ( Management Information Base for Network Management of
TCP/IP-based internets: MIB-II ) I found the following:
ipRouteDest OBJECT-TYPE
SYNTAX IpAddress
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The destination IP address of this route. An
entry with a value of 0.0.0.0 is considered a
default route. Multiple routes to a single
destination can appear in the table, but access to
such multiple entries is dependent on the table-
access mechanisms defined by the network
management protocol in use."
::= { ipRouteEntry 1 }
Is this a bug, a feature of SNMP or is there a Cisco MIB I am missing?
Thanks,
Hank
This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:28 EDT