SNMPing the route entried of a cisco switch or router is right?

Unanswered Question
Mar 24th, 2009
User Badges:

Dear everyone:

There are two routes to a same destination,but snmp can just identify only one

of them,exactly the bigger on,for instance:

GZ-THRJY-DSW-1.I>sh ip route

Routing entry for

Known via "ospf 100", distance 110, metric 21, type extern 1

Last update from on Vlan5, 1w4d ago

Routing Descriptor Blocks:, from, 1w4d ago, via Vlan2

Route metric is 21, traffic share count is 1

*, from, 1w4d ago, via Vlan5

Route metric is 21, traffic share count is 1, from, 1w4d ago, via Vlan25

Route metric is 21, traffic share count is 1


But I use snmp to walk everything on this switch and redirect the result to a file. I searched the file afterwards and found that snmp only gave me one result:

RFC1213-MIB::ipRouteNextHop. = IpAddress:

,which is not in use(marked "*"),anyway.

Could you help me to solve the problem?

Can I trust the snmp to do sth like topology discovery?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 1 (1 ratings)
MICHEL.HEGERAAT Tue, 03/24/2009 - 05:06
User Badges:

The topology discovery won't rely on this.

In fact it relies only on the CDP tables.

So any connection between 2 cisco devices where CDP is active will be shown in the topology.

(except phones)



zhangstones Tue, 03/24/2009 - 05:33
User Badges:

You might be right.

But consider a cisco and Huawei(and some Nokia fw ...) network environment.CDP is only used among cisco's,but snmp looks like a standard protocol and it can help finding some information which can be "show"(or "display")in a switch.I've tried that HuaWeis' can display all route by using snmp,but cisco can't.

That's what I'm looking for.

I actually want to get the routing information from devices , not only want to discover the topology,which I mentioned before is not excactly.


This Discussion