News: This forum is now permanently frozen.
Pages: [1]
Topic: MAC addresses for WAN and LAN in SNMP  (Read 1709 times)
« on: April 18, 2012, 18:27:40 »
mheartwood *
Posts: 14

All my other devices have it, but m0n0wall is missing it. I'm not sure if this is a FreeBSD issue or not, but if it can be fixed, it would be very nice.

I run an ALIX-2D1. An snmpwalk -v 1 produces the following:
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "vr0"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "vr1"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "lo0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "enc0"

That's a good start.

Everything else produces:
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "ether1"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "ether2"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "ether3"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "ether4"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "ether5"
iso.3.6.1.2.1.2.2.1.6.1 = Hex-STRING: 00 0C 42 53 73 E4
iso.3.6.1.2.1.2.2.1.6.2 = Hex-STRING: 00 0C 42 53 73 E5
iso.3.6.1.2.1.2.2.1.6.3 = Hex-STRING: 00 0C 42 53 73 E6
iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: 00 0C 42 53 73 E7
iso.3.6.1.2.1.2.2.1.6.5 = Hex-STRING: 00 0C 42 53 73 E8
 
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "tunl0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "eth0"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "wifi0"
iso.3.6.1.2.1.2.2.1.2.6 = STRING: "ath0"
iso.3.6.1.2.1.2.2.1.6.1 = ""
iso.3.6.1.2.1.2.2.1.6.2 = ""
iso.3.6.1.2.1.2.2.1.6.3 = ""
iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: 00 15 6D 61 52 81
iso.3.6.1.2.1.2.2.1.6.5 = Hex-STRING: 00 15 6D 60 52 81
iso.3.6.1.2.1.2.2.1.6.6 = Hex-STRING: 00 15 6D 60 52 81

iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "eth0_real"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "eth1_real"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "eth0"
iso.3.6.1.2.1.2.2.1.2.6 = STRING: "wifi0"
iso.3.6.1.2.1.2.2.1.2.7 = STRING: "ath0"
iso.3.6.1.2.1.2.2.1.6.1 = ""
iso.3.6.1.2.1.2.2.1.6.2 = ""
iso.3.6.1.2.1.2.2.1.6.3 = Hex-STRING: 00 27 22 4B 87 BD
iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: 02 27 22 4B 87 BD
iso.3.6.1.2.1.2.2.1.6.5 = Hex-STRING: 00 27 22 4B 87 BD
iso.3.6.1.2.1.2.2.1.6.6 = Hex-STRING: 00 27 22 4A 87 BD
iso.3.6.1.2.1.2.2.1.6.7 = Hex-STRING: 00 27 22 4A 87 BD

So is it too much to ask for a iso.3.6.1.2.1.2.2.1.6.? set with the MAC for each port? The current MIB doesn't have the MAC addresses for the ports anywhere.

Also, while we're fixing that, how about removing the \" in the following. Not as big a deal but might as well ask for it too. iso.3.6.1.2.1.1.5.0 (host name) has it right. The others for some reason have a \" before and after.

iso.3.6.1.2.1.1.1.0 = STRING: "\"m0n0wall mheartwood.somewhere.net 1.33 alix FreeBSD 6.4-RELEASE-p5 i386\""
iso.3.6.1.2.1.1.4.0 = STRING: "\"support@somewhere.net\""
iso.3.6.1.2.1.1.5.0 = STRING: "mheartwood.somewhere.net"
iso.3.6.1.2.1.1.6.0 = STRING: "\"Somewhere\""

Thanks
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines