Snmp
show ip route 的 SNMP 等效項?
我是 SNMP 新手。SNMP 中是否有等效於 Cisco 10K 路由器上的“顯示 ip 路由”的功能?
RFC1213-MIB有一個
ipRouteTable
包含 IP 路由表的樹:[draytm01@mgt03 ~]$ snmpwalk -v 1 192.168.212.45 .1.3.6.1.2.1.4.21 RFC1213-MIB::ipRouteDest.0.0.0.0 = IpAddress: 0.0.0.0 RFC1213-MIB::ipRouteDest.192.168.212.0 = IpAddress: 192.168.212.0 RFC1213-MIB::ipRouteIfIndex.0.0.0.0 = INTEGER: 4 RFC1213-MIB::ipRouteIfIndex.192.168.212.0 = INTEGER: 4 RFC1213-MIB::ipRouteMetric1.0.0.0.0 = INTEGER: 1 RFC1213-MIB::ipRouteMetric1.192.168.212.0 = INTEGER: 0 RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 192.168.212.1 RFC1213-MIB::ipRouteNextHop.192.168.212.0 = IpAddress: 0.0.0.0 RFC1213-MIB::ipRouteType.0.0.0.0 = INTEGER: indirect(4) RFC1213-MIB::ipRouteType.192.168.212.0 = INTEGER: direct(3) RFC1213-MIB::ipRouteProto.0.0.0.0 = INTEGER: local(2) RFC1213-MIB::ipRouteProto.192.168.212.0 = INTEGER: local(2) RFC1213-MIB::ipRouteMask.0.0.0.0 = IpAddress: 0.0.0.0 RFC1213-MIB::ipRouteMask.192.168.212.0 = IpAddress: 255.255.255.0 RFC1213-MIB::ipRouteInfo.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero RFC1213-MIB::ipRouteInfo.192.168.212.0 = OID: SNMPv2-SMI::zeroDotZero
這實際上來自 Linux 機器,但我希望 Cisco 實施 RFC1213-MIB;我不記得了,我手頭也沒有路由器。