Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

"show mac-address-table" and dot1dTpFdbAddress are different

Hi, I'm snmpwalk'ing dot1dTpFdbAddress on my Catalyst 3524 to retrieve its MAC address table, but it doesn't seem to give me all MAC addresses... Some MAC addresses, that I can see when I do "show mac-address-table", are missing from the output of snmpwalk. Please help. Tatsuo

I'll try and demonstrate the problem here. Below, "show mac-address-table" gives me the following two MAC addresses on FastEthernet0/8:

0006.296f.77c4 Dynamic 103 FastEthernet0/8

0006.298f.2e6b Dynamic 103 FastEthernet0/8

However, I can't find these MAC addresses when I do the snmpwalk (below).

MY_CAT3524>sh mac-address-table

Dynamic Address Count: 39

Secure Address Count: 0

Static Address (User-defined) Count: 0

System Self Address Count: 52

Total MAC addresses: 91

Maximum MAC addresses: 8192

Non-static Address Table:

Destination Address Address Type VLAN Destination Port

------------------- ------------ ---- --------------------

0000.0c07.ac00 Dynamic 102 GigabitEthernet0/1

0000.0c07.ac00 Dynamic 103 GigabitEthernet0/1

0000.0c07.ac00 Dynamic 117 GigabitEthernet0/1

0000.0c07.ac00 Dynamic 120 GigabitEthernet0/1

0000.0c07.ac65 Dynamic 1 GigabitEthernet0/1

0000.0c07.ac79 Dynamic 1 GigabitEthernet0/1

0000.0c07.ac7a Dynamic 1 GigabitEthernet0/1

0000.0c07.ac83 Dynamic 1 GigabitEthernet0/1

0000.0c07.accb Dynamic 203 GigabitEthernet0/2

0001.63f0.e920 Dynamic 1 GigabitEthernet0/1

0001.c9b0.27a8 Dynamic 102 GigabitEthernet0/1

0001.c9b0.27a8 Dynamic 103 GigabitEthernet0/1

0001.c9b0.27a8 Dynamic 120 GigabitEthernet0/1

0001.c9b0.27a8 Dynamic 203 GigabitEthernet0/2

0001.c9b0.30ac Dynamic 1 GigabitEthernet0/1

0001.c9b0.30ac Dynamic 102 GigabitEthernet0/1

0001.c9b0.30ac Dynamic 103 GigabitEthernet0/1

0001.c9b0.30ac Dynamic 117 GigabitEthernet0/1

0001.c9b0.30ac Dynamic 120 GigabitEthernet0/1

0001.c9b0.30ac Dynamic 203 GigabitEthernet0/2

0002.7e23.e276 Dynamic 1 GigabitEthernet0/1

0002.7e23.e276 Dynamic 102 GigabitEthernet0/1

0002.7e23.e276 Dynamic 103 GigabitEthernet0/1

0002.7e23.e276 Dynamic 117 GigabitEthernet0/1

0002.7e23.e276 Dynamic 120 GigabitEthernet0/1

0006.296f.77c4 Dynamic 103 FastEthernet0/8

0006.296f.8c6a Dynamic 103 GigabitEthernet0/1

0006.298f.2e6b Dynamic 103 FastEthernet0/8

0006.298f.31b3 Dynamic 117 FastEthernet0/13

0006.29af.9156 Dynamic 117 GigabitEthernet0/1

0006.29d5.1c68 Dynamic 120 FastEthernet0/21

0006.29d5.2869 Dynamic 103 FastEthernet0/11

0006.29de.6f8b Dynamic 102 GigabitEthernet0/1

0006.29de.8cd5 Dynamic 203 FastEthernet0/5

0006.29de.8d33 Dynamic 102 FastEthernet0/3

0006.29de.8db7 Dynamic 1 GigabitEthernet0/1

0006.29de.8e13 Dynamic 102 FastEthernet0/1

0010.a4af.d93e Dynamic 1 GigabitEthernet0/1

0030.b63f.3cfa Dynamic 203 GigabitEthernet0/2

$ snmpwalk -c foo -On 210.57.170.42 .1.3.6.1.2.1.17.4.3.1.1

.1.3.6.1.2.1.17.4.3.1.1.0.0.12.7.172.101 = Hex: 00 00 0C 07 AC 65

.1.3.6.1.2.1.17.4.3.1.1.0.0.12.7.172.121 = Hex: 00 00 0C 07 AC 79

.1.3.6.1.2.1.17.4.3.1.1.0.0.12.7.172.122 = Hex: 00 00 0C 07 AC 7A

.1.3.6.1.2.1.17.4.3.1.1.0.0.12.7.172.131 = Hex: 00 00 0C 07 AC 83

.1.3.6.1.2.1.17.4.3.1.1.0.1.99.240.233.32 = Hex: 00 01 63 F0 E9 20

.1.3.6.1.2.1.17.4.3.1.1.0.1.201.176.48.172 = Hex: 00 01 C9 B0 30 AC

.1.3.6.1.2.1.17.4.3.1.1.0.2.126.35.226.118 = Hex: 00 02 7E 23 E2 76

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.64 = Hex: 00 04 9A 9A EC 40

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.65 = Hex: 00 04 9A 9A EC 41

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.66 = Hex: 00 04 9A 9A EC 42

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.67 = Hex: 00 04 9A 9A EC 43

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.68 = Hex: 00 04 9A 9A EC 44

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.69 = Hex: 00 04 9A 9A EC 45

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.70 = Hex: 00 04 9A 9A EC 46

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.71 = Hex: 00 04 9A 9A EC 47

p.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.72 = Hex: 00 04 9A 9A EC 48

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.73 = Hex: 00 04 9A 9A EC 49

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.74 = Hex: 00 04 9A 9A EC 4A

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.75 = Hex: 00 04 9A 9A EC 4B

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.76 = Hex: 00 04 9A 9A EC 4C

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.77 = Hex: 00 04 9A 9A EC 4D

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.78 = Hex: 00 04 9A 9A EC 4E

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.79 = Hex: 00 04 9A 9A EC 4F

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.80 = Hex: 00 04 9A 9A EC 50

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.81 = Hex: 00 04 9A 9A EC 51

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.82 = Hex: 00 04 9A 9A EC 52

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.83 = Hex: 00 04 9A 9A EC 53

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.84 = Hex: 00 04 9A 9A EC 54

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.85 = Hex: 00 04 9A 9A EC 55

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.86 = Hex: 00 04 9A 9A EC 56

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.87 = Hex: 00 04 9A 9A EC 57

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.88 = Hex: 00 04 9A 9A EC 58

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.89 = Hex: 00 04 9A 9A EC 59

.1.3.6.1.2.1.17.4.3.1.1.0.4.154.154.236.90 = Hex: 00 04 9A 9A EC 5A

.1.3.6.1.2.1.17.4.3.1.1.0.6.41.222.141.183 = Hex: 00 06 29 DE 8D B7

.1.3.6.1.2.1.17.4.3.1.1.0.16.164.175.217.62 = Hex: 00 10 A4 AF D9 3E

END

  • Other Network Infrastructure Subjects
1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: "show mac-address-table" and dot1dTpFdbAddress are different

Hi, keep in mind that your snmp-query only retreives the vlan1 members, If you want for e.g. retreive vlan2 members use public@2 for community name.

Are the ports in a different vlan?

4 REPLIES
New Member

Re: "show mac-address-table" and dot1dTpFdbAddress are different

Hi, keep in mind that your snmp-query only retreives the vlan1 members, If you want for e.g. retreive vlan2 members use public@2 for community name.

Are the ports in a different vlan?

New Member

Re: "show mac-address-table" and dot1dTpFdbAddress are different

vergeerf, thanks. It works! I didn't know this community@vlan trick... Tatsuo

New Member

Re: "show mac-address-table" and dot1dTpFdbAddress are different

Hi, May I ask for the exact syntax for this. I am trying to write a script to list out MAC address of user ports from a switch. Thanks in advance.

Blue

Re: "show mac-address-table" and dot1dTpFdbAddress are different

1332
Views
5
Helpful
4
Replies