Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mac to switchport

13 views
Skip to first unread message

Reinhold Just

unread,
Feb 21, 2002, 12:46:28 PM2/21/02
to
hi ng,

how or with what (snmp, arp, ?) can i readout the mac address corresponding
to a switch port (for example:nortel device manager) ?!

--
Reinhold Just


Todd H.

unread,
Feb 22, 2002, 2:20:12 PM2/22/02
to
"Reinhold Just" <reinho...@t-online.de> writes:
> hi ng,
>
> how or with what (snmp, arp, ?) can i readout the mac address
> corresponding to a switch port (for example:nortel device manager)
> ?!

Using a suitable snmp command line tool for whatever platform you use,
if you walk the .1.3.6.1.2.1.2* "interface" branch of mib-2.
Specifically, the ifTable is what you want and you'll get this and all
sorts of goodies for every interface on the box.

Search for some tutorials on snmp and a free command line utility for
doing "mibwalks" or snmpwalks .

Best Regards,
--
Todd H.
http://www.toddh.net/

Remo Rickli

unread,
Feb 25, 2002, 5:03:31 AM2/25/02
to
Have a look at http://nedi.web.psi.ch what you are looking for, is part of
what this does (on Cisco switches).


"Reinhold Just" <reinho...@t-online.de> schrieb im Newsbeitrag
news:a563g0$vvv$07$1...@news.t-online.com...

Reinhold Just

unread,
Feb 25, 2002, 4:45:30 PM2/25/02
to
hi todd,

thanks for answer.
i tried what you advised. i came to .1.3.6.1.2.1.2.2.1.6 . but this is just
the mac of the switch. what i want is the mac of the computers which are
connected to the switch ports.
any idea ?

regards Reinhold

--
Reinhold Just
"Todd H." <comp...@toddh.net> schrieb im Newsbeitrag
news:m03cztn...@rcn.com...

Jack Lyons

unread,
Feb 25, 2002, 5:50:41 PM2/25/02
to
I don't know the oid, but you are referring to the CAM table of the
switch....I am pretty sure it is accessible via SNMP.
"Reinhold Just" <reinho...@t-online.de> wrote in message
news:a5ebrs$sq6$00$1...@news.t-online.com...

Remo Rickli

unread,
Feb 26, 2002, 2:41:15 AM2/26/02
to
You need to query the table with community@VLAN if it is a Cisco switch.
Otherwhise you'll only get the MAC addresses of vlan1.


"Reinhold Just" <reinho...@t-online.de> schrieb im Newsbeitrag

news:a5ebrs$sq6$00$1...@news.t-online.com...

Mirko Parthey

unread,
Feb 26, 2002, 5:49:47 AM2/26/02
to
On Tue, 26 Feb 2002 08:41:15 +0100, Remo Rickli wrote:
> > > "Reinhold Just" <reinho...@t-online.de> writes:
> > > > how or with what (snmp, arp, ?) can i readout the mac address
> > > > corresponding to a switch port (for example:nortel device manager)
> > > > ?!
> You need to query the table with community@VLAN if it is a Cisco switch.
> Otherwhise you'll only get the MAC addresses of vlan1.

Try reading the dot1dTpFdbTable, once for each VLAN, using community
indexing as described above.


Mirko

Reinhold Just

unread,
Feb 26, 2002, 12:54:57 PM2/26/02
to
hi all,

thanks. with your help you pointed me to the right way. i found a site
http://www.cisco.com/warp/public/477/SNMP/cam_snmp.shtml.
which helps me.

thanks to all. regards Reinhold Just


raju....@gmail.com

unread,
Aug 21, 2016, 2:15:52 PM8/21/16
to
For Cisco, we need to fetch the CAM table on VLAN Basis if the switch is Cisco using the link http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/13492-cam-snmp.html

But in case of HP Switch, Vlan Tagging is not needed and same OID's will work to fetch the CAM Table.

Incase of Juniper-Ex Switch, the same BRIDGE-MIB oid's wont work and there we can try for Q-BRIDGE-MIB (Working, tested).

The below tutorial explains clearly.

http://networkengineering.stackexchange.com/questions/6070/mac-cam-entries-from-non-cisco-switches-with-q-bridge-mib

Here is My Question:
Now we have 2 Approaches to fetch the CAM table
1. Vlan Based (community@vlan, community-vlan).
2. Direct polling the OID (Either BRIDGE-MIB or QBRIDGE-MIB)

So, Fetching CAM table from the different switches are going to fall above 2 or are there any other ways to get the CAM Table ?

Even a small Help is greatly appreciated.
0 new messages