How to get the ARP and MAC address table via SNMP on Edgecore switch ?

Steven_zhangCreated at:Dec 11, 2019 14:01:22Updated at:Dec 11, 2019 14:01:26

Models: ECS4620 series, ECS4510 series, ECS4120 series, ECS4100 series, ECS4110 series, ECS4210 series, ECS3510-28T/52T, ES3528Mv2, ES3510MA, ECS2100 series

 

ARP Table OID:

1. ipNetToMediaIfIndex:1.3.6.1.2.1.4.22.1.1

2. ipNetToMediaPhysAddress:1.3.6.1.2.1.4.22.1.2

3. ipNetToMediaNetAddress:1.3.6.1.2.1.4.22.1.3

4. ipNetToMediaType:1.3.6.1.2.1.4.22.1.4

 

For example:

mceclip1.png

mceclip2.png

 

1. ipNetToMediaIfIndex:1.3.6.1.2.1.4.22.1.1

C:\Documents and Settings\Administrator>snmpwalk.exe -v 2c -c private 192.168.1.1 1.3.6.1.2.1.4.22.1.1
IP-MIB::ipNetToMediaIfIndex.1001.192.168.1.20 = INTEGER: 1001
IP-MIB::ipNetToMediaIfIndex.1001.192.168.1.100 = INTEGER: 1001

※Note – The value of '1001' indicates the VLAN 1 in Edgecore switch.

 

2. ipNetToMediaPhysAddress:1.3.6.1.2.1.4.22.1.2

C:\Documents and Settings\Administrator>snmpwalk.exe -v 2c -c private 192.168.1.1 1.3.6.1.2.1.4.22.1.2
IP-MIB::ipNetToMediaPhysAddress.1001.192.168.1.20 = STRING: cc:5d:4e:39:8a:a2
IP-MIB::ipNetToMediaPhysAddress.1001.192.168.1.100 = STRING: e0:cb:4e:e8:f3:6d

 

3. ipNetToMediaNetAddress:1.3.6.1.2.1.4.22.1.3

C:\Documents and Settings\Administrator>snmpwalk.exe -v 2c -c private 192.168.1.1 1.3.6.1.2.1.4.22.1.3
IP-MIB::ipNetToMediaNetAddress.1001.192.168.1.20 = IpAddress: 192.168.1.20
IP-MIB::ipNetToMediaNetAddress.1001.192.168.1.100 = IpAddress: 192.168.1.100

 

4. ipNetToMediaType:1.3.6.1.2.1.4.22.1.4

C:\Documents and Settings\Administrator>snmpwalk.exe -v 2c -c private 192.168.1.1 1.3.6.1.2.1.4.22.1.4
IP-MIB::ipNetToMediaType.1001.192.168.1.20 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.1001.192.168.1.100 = INTEGER: dynamic(3)

※Value list - 1: other(1), 2: invalid(2), 3: dynamic(3), 4: static(4)

 

 

Mac Address Table OID:

1. dot1dTpFdbAddress:1.3.6.1.2.1.17.4.3.1.1

2. dot1dTpFdbPort:1.3.6.1.2.1.17.4.3.1.2

3. dot1dTpFdbStatus:1.3.6.1.2.1.17.4.3.1.3

 

For example:

mceclip3.png

mceclip4.png

 

1. dot1dTpFdbAddress:1.3.6.1.2.1.17.4.3.1.1

C:\usr\bin>snmpwalk.exe -v 2c -c private 192.168.1.1  1.3.6.1.2.1.17.4.3.1.1
SNMPv2-SMI::mib-2.17.4.3.1.1.204.55.171.95.132.240 = Hex-STRING: CC 37 AB 5F 84 F0
SNMPv2-SMI::mib-2.17.4.3.1.1.204.93.78.57.138.162 = Hex-STRING: CC 5D 4E 39 8A A2
SNMPv2-SMI::mib-2.17.4.3.1.1.224.203.78.232.243.109 = Hex-STRING: E0 CB 4E E8 F3 6D

 

2. dot1dTpFdbPort:1.3.6.1.2.1.17.4.3.1.2

C:\usr\bin>snmpwalk.exe -v 2c -c private 192.168.1.1 1.3.6.1.2.1.17.4.3.1.2
SNMPv2-SMI::mib-2.17.4.3.1.2.204.55.171.95.132.240 = INTEGER: 0
SNMPv2-SMI::mib-2.17.4.3.1.2.204.93.78.57.138.162 = INTEGER: 2
SNMPv2-SMI::mib-2.17.4.3.1.2.224.203.78.232.243.109 = INTEGER: 1

※Note – This value indicates the port number of switch, and the value of '0' is switch own MAC address.

 

3. dot1dTpFdbStatus:1.3.6.1.2.1.17.4.3.1.3

C:\usr\bin>snmpwalk.exe -v 2c -c private 192.168.1.1  1.3.6.1.2.1.17.4.3.1.3
SNMPv2-SMI::mib-2.17.4.3.1.3.204.55.171.95.132.240 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.204.93.78.57.138.162 = INTEGER: 3
SNMPv2-SMI::mib-2.17.4.3.1.3.224.203.78.232.243.109 = INTEGER: 3

※Value list - 1: other(1), 2: invalid(2), 3: learned(3), 4: self(4), 5: mgmt(5)