Community discussions

MikroTik App
 
avdlaan1967
just joined
Topic Author
Posts: 1
Joined: Sat Oct 29, 2022 10:25 am

missing zero's in MAC through snmpwalk

Wed Nov 16, 2022 12:45 am

gday, running router OS 6.49.7 on RB750Gr3

snmpwalk results gives missing (starting) zero's in MAC addresses

for example :
IP-MIB::ipNetToMediaPhysAddress.6.192.168.1.5 = STRING: 0:6:78:35:12:5b

The full MAC is (through /ip arp command)
9 DC 192.168.1.5 00:06:78:35:12:5B bridge

Is this a caveat or bug ?

Appreciate any response !
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: missing zero's in MAC through snmpwalk

Wed Nov 16, 2022 3:06 pm

the mac is the same,this is not the Full MAC, just one different representation,

like
0x00FF00 = 0xff00
or
0000132548,50000 = 132548.5
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: missing zero's in MAC through snmpwalk

Wed Nov 16, 2022 5:20 pm

Is this a caveat or bug ?
This is quite normal in SNMP. It may be that the standard requires it, I don't know. But I have had to re-format MAC addresses received via SNMP from other manufacturer's devices as well.

Who is online

Users browsing this forum: Ahrefs [Bot] and 77 guests