Posted on January 23, 2014 12:42 am
 |  Asked by Unknown
 |  29880 views
RESOLVED
0
0
Print Friendly, PDF & Email
0
Posted by Andrei Dvornic
Answered on January 23, 2014 12:45 am

The ARP table can be found by walking the IP-MIB (1.3.6.1.2.1.4.22). The MAC address table can be found by walking Q-BRIDGE-MIB (1.3.6.1.2.1.17.7.1.2). You can walk the table from the switch using the cli show snmp mib walk command, or though the use of the bash snmpwalk command.

Arista(config)#show arp
 Address              Age (min)  Hardware Addr     Interface
 172.22.24.1                 0   001c.7309.9998    Management1
 172.22.24.4                 0   001c.730b.1d15    Management1
 172.22.24.110               0   001c.7301.a803    Management1
 172.22.24.111               0   001c.730f.80a5    Management1
 55.55.55.55                 0   001c.7313.a3d0    Vlan55, not learned
Arista(config)#bash snmpwalk localhost -v3 1.3.6.1.2.1.4.22 -OX
 IP-MIB::ipNetToMediaIfIndex[999001][172.22.24.1] = INTEGER: 999001
 IP-MIB::ipNetToMediaIfIndex[999001][172.22.24.4] = INTEGER: 999001
 IP-MIB::ipNetToMediaIfIndex[999001][172.22.24.110] = INTEGER: 999001
 IP-MIB::ipNetToMediaIfIndex[999001][172.22.24.111] = INTEGER: 999001
 IP-MIB::ipNetToMediaIfIndex[2000055][55.55.55.55] = INTEGER: 2000055
 IP-MIB::ipNetToMediaPhysAddress[999001][172.22.24.1] = STRING: 0:1c:73:9:99:98
 IP-MIB::ipNetToMediaPhysAddress[999001][172.22.24.4] = STRING: 0:1c:73:b:1d:15
 IP-MIB::ipNetToMediaPhysAddress[999001][172.22.24.110] = STRING: 0:1c:73:1:a8:3
 IP-MIB::ipNetToMediaPhysAddress[999001][172.22.24.111] = STRING: 0:1c:73:f:80:a5
 IP-MIB::ipNetToMediaPhysAddress[2000055][55.55.55.55] = STRING: 0:1c:73:13:a3:d0
 IP-MIB::ipNetToMediaNetAddress[999001][172.22.24.1] = IpAddress: 172.22.24.1
 IP-MIB::ipNetToMediaNetAddress[999001][172.22.24.4] = IpAddress: 172.22.24.4
 IP-MIB::ipNetToMediaNetAddress[999001][172.22.24.110] = IpAddress: 172.22.24.110
 IP-MIB::ipNetToMediaNetAddress[999001][172.22.24.111] = IpAddress: 172.22.24.111
 IP-MIB::ipNetToMediaNetAddress[2000055][55.55.55.55] = IpAddress: 55.55.55.55
 IP-MIB::ipNetToMediaType[999001][172.22.24.1] = INTEGER: dynamic(3)
 IP-MIB::ipNetToMediaType[999001][172.22.24.4] = INTEGER: dynamic(3)
 IP-MIB::ipNetToMediaType[999001][172.22.24.110] = INTEGER: dynamic(3)
 IP-MIB::ipNetToMediaType[999001][172.22.24.111] = INTEGER: dynamic(3)
 IP-MIB::ipNetToMediaType[2000055][55.55.55.55] = INTEGER: dynamic(3)
Arista(config)#show mac address-table 
  Mac Address Table
 ------------------------------------------------------------------
 
 Vlan      Mac Address          Type          Ports    Moves      Last Move
 ----      -----------          ----          -----    -----      ---------
  55        001c.7313.a3de      DYNAMIC        Et32        1    0:08:16 ago
 Total Mac Addresses for this criterion: 1
 
  Multicast Mac Address Table
 ------------------------------------------------------------------
 
 Vlan    Mac Address       Type        Ports
 ----    -----------       ----        -----
Arista(config)#bash snmpwalk localhost -v3 1.3.6.1.2.1.17.7.1.2 -OX
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[1] = Counter32: 0-v3 1.3.6.1.2.1.17.7.1.2 -OX 
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[20] = Counter32: 0
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[45] = Counter32: 0
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[55] = Counter32: 1
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[152] = Counter32: 0
 Q-BRIDGE-MIB::dot1qFdbDynamicCount[4094] = Counter32: 0
 Q-BRIDGE-MIB::dot1qTpFdbPort[55][STRING: 0:1c:73:13:a3:de] = INTEGER: 32
 Q-BRIDGE-MIB::dot1qTpFdbStatus[55][STRING: 0:1c:73:13:a3:de] = INTEGER: learned(3)
Marked as spam

Post your Answer

You must be logged in to post an answer.