If you can get CDP/LLDP information, that's good. If you can't (not all vendors support this), you can still find these links. Hint: look at the other side instead (the switch). The idea is that if the switch forwarding table has only one entry on a given port, and that entry has a router's interface MAC address, you have a link.
Our Network Documentation Tool (open source) does this pretty well. It analyzes information from CDP/LLDP, Spanning Tree state and forwarding tables. Available at: http://netdot.uoregon.edu cv jaikar gupta wrote: > Thanks peter but i want to Know MAC-addresses. > > > Thanks & Regards > Jaikar Gupta > > > On Thu, May 27, 2010 at 6:16 PM, Peter Rathlev <[email protected]> wrote: > > >> On Thu, 2010-05-27 at 17:57 +0530, jaikar gupta wrote: >> >>> ipNetToMediaTable contains the entry of all the devices which are >>> reachable from the router but i want to know the devices which are >>> directly connected with the router. >>> >> You either want MAC-addresses or CDP neighbor information, right? For >> the latter you can use CISCO-CDP-MIB::cdpCache*. Newer devices might >> support LLDP-MIB instead, which is more cross-platform compatible. >> >> If you're just doing neighbor discovery, what do you need the MAC >> address tables/ARP tables for? >> >> -- >> Peter >> >> >> >> > _______________________________________________ > cisco-nsp mailing list [email protected] > https://puck.nether.net/mailman/listinfo/cisco-nsp > archive at http://puck.nether.net/pipermail/cisco-nsp/ > -- ===================================================================== Carlos Vicente Tel : +1(541) 346-1763 Network Engineer Fax : +1(541) 346-4397 Information Services PGP ID : 8623D99C 1212 University of Oregon Eugene,OR 97403-1205 _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
