ethIfLearning
NETI-ETH-MIB ·
.1.3.6.1.4.1.2928.2.2.1.3.2.1.18
Object
column r/w
Enumeration
Specifies if MAC learning is enabled on the interface.
on(1). MAC learning is enabled. The forwarding function
learns what interface to use for a destination by looking at
the source MAC address in received frames.
off(2) MAC learning is disabled.
Regardless of the setting, learning is disabled if
ethFwdMACMode is set to nomac(3) or if it is set to auto(1)
and less than three interfaces are connected to the
forwarding function.
Context
- MIB
- NETI-ETH-MIB
- OID
.1.3.6.1.4.1.2928.2.2.1.3.2.1.18- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- ethIfEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETI-ETH-MIB::ethIfLearning'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETI-ETH-MIB::ethIfLearning.<ethDevIndex>.<ethIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NETI-ETH-MIB::ethIfLearning'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | on |
2 | off |