Home/Catalog/HUAWEI-L2IF-MIB

HUAWEI-L2IF-MIB

AI MIB Summary

The HUAWEI-L2IF-MIB enables monitoring and management of Layer 2 interface states, port operational modes, and configuration parameters for hybrid and trunk ports on Huawei network devices. It provides specific counters and status indicators for Ethernet interface traffic, error statistics, and VLAN tagging behavior to facilitate granular Layer 2 troubleshooting and policy enforcement.

information of layer2 interface and information of hybrid port and information of trunk port
Main OID:
hwL2IfMib.1.3.6.1.4.1.2011.5.25.42.1
117
Objects
Active
Status
7
Dependencies

Imported Objects

Objects

117 total
Object Name
hwL2Mgmt
OBJECT IDENTIFIER
.1.3.6.1.4.1.2011.5.25.42
hwL2IfMib
MODULE-IDENTITY
.1.3.6.1.4.1.2011.5.25.42.1
hwL2IfObjects
OBJECT IDENTIFIER
.1.3.6.1.4.1.2011.5.25.42.1.1
hwL2Interface
OBJECT IDENTIFIER
.1.3.6.1.4.1.2011.5.25.42.1.1.1
hwL2IfPortMaxro
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.1
hwL2TopologyDetectrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.2
hwL2IfTable
SEQUENCE OF HwL2IfEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3
hwL2IfEntry
HwL2IfEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1
hwL2IfPortNum
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.1
hwL2IfPortIfIndexro
InterfaceIndex (IF-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.2
hwL2IfPortTyperw
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.3
hwL2IfPVIDrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.4
hwL2IfIsSrcMacFilterro
TruthValue (SNMPv2-TC)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.5
hwL2IfMacAddrLearnModero
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.6
hwL2IfMacAddressLearnrw
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.7
hwL2IfBcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.8
hwL2IfMcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.9
hwL2IfUcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.10
hwL2IfOutBcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.11
hwL2IfOutMcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.12
hwL2IfOutUcastRatiorw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.13
hwL2IfDiscardBcastrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.14
hwL2IfDiscardUnknownMcastrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.15
hwL2IfDiscardUnknownUcastrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.16
hwL2IfBpdurw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.17
hwL2IfPortPriorityrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.18
hwL2IfPortNamero
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.19
hwL2IfInInvalidVlanPktsro
Counter64
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.20
hwL2IfFlushEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.21
hwL2IfFlushControlVlanrw
Integer32 (1..4094 | 65535)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.22
hwL2IfCurrentInBcastPercentrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.23
hwL2IfCurrentOutBcastPercentrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.24
hwL2IfQinqVlanTransEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.25
hwL2IfQinqVlanTransMissDroprw
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.26
hwL2IfIpSubnetVlanEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.27
hwL2IfMacVlanEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.28
hwL2IfPolicyVlanEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.29
hwL2IfVlanPrecedencerw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.30
hwL2IfIsolateGroupEnablerw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.31
hwL2IfActivePortTypero
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.32
hwL2IfHybridPortTable
SEQUENCE OF HwL2IfHybridPortEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9
hwL2IfHybridPortEntry
HwL2IfHybridPortEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1
hwL2IfHybridPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.1
hwL2IfHybridTaggedVlanListLowrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.2
hwL2IfHybridTaggedVlanListHighrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.3
hwL2IfHybridUnTaggedVlanListLowrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.4
hwL2IfHybridUnTaggedVlanListHighrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.5
hwL2IfTrunkPortTable
SEQUENCE OF HwL2IfTrunkPortEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10
hwL2IfTrunkPortEntry
HwL2IfTrunkPortEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1
hwL2IfTrunkPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.1
hwL2IfTrunkAllowPassVlanListLowrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.2
hwL2IfTrunkAllowPassVlanListHighrw
VlanList
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.3
hwL2IfPortIsolateTable
SEQUENCE OF HwL2IfPortIsolateEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11
hwL2IfPortIsolateEntry
HwL2IfPortIsolateEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11.1
hwL2IfPortIsolatePortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11.1.1
hwL2IfPortIsolateSIName
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11.1.2
hwL2IfPortIsolateRowStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11.1.3
hwL2IfSuppressionTable
SEQUENCE OF HwL2IfSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12
hwL2IfSuppressionEntry
HwL2IfSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1
hwL2IfSuppressionPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1.1
hwL2IfSuppressionType
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1.2
hwL2IfSuppressionCirrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1.3
hwL2IfSuppressionCbsrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1.4
hwL2IfSuppressionRowStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12.1.5
hwL2IfVlanSuppressionTable
SEQUENCE OF HwL2IfVlanSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13
hwL2IfVlanSuppressionEntry
HwL2IfVlanSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1
hwL2IfVlanSuppressionPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.1
hwL2IfVlanSuppressionStartVlan
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.2
hwL2IfVlanSuppressionEndVlan
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.3
hwL2IfVlanSuppressionCirrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.4
hwL2IfVlanSuppressionCbsrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.5
hwL2IfVlanSuppressionRowStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13.1.6
hwL2IfPortTcnTable
SEQUENCE OF HwL2IfPortTcnEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14
hwL2IfPortTcnEntry
HwL2IfPortTcnEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14.1
hwL2IfTcnPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14.1.1
hwL2IfTcnStprw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14.1.2
hwL2IfTcnVlanListLowrw
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14.1.4
hwL2IfTcnVlanListHighrw
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14.1.5
hwL2IfPortLoopDetectTable
SEQUENCE OF HwL2IfPortLoopDetectEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15
hwL2IfPortLoopDetectEntry
HwL2IfPortLoopDetectEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1
hwL2IfPortLoopDetectPort
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.1
hwL2IfPortLoopDetectEnabledrw
EnabledStatus (P-BRIDGE-MIB)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.2
hwL2IfPortLoopDetectIntervalrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.3
hwL2IfPortLoopDetectActionrw
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.4
hwL2IfPortLoopDetectStatusro
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.5
hwL2IfPortLoopDetectProtocolrw
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15.1.6
hwL2IfPortProtocolVlanDataTable
SEQUENCE OF HwL2IfPortProtocolVlanDataEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16
hwL2IfPortProtocolVlanDataEntry
HwL2IfPortProtocolVlanDataEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16.1
hwL2IfPortProtocolVlanDataPortIndex
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16.1.1
hwL2IfPortProtocolVlanDataVlanrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16.1.2
hwL2IfPortProtocolVlanDataPrirw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16.1.3
hwL2IfPortProtocolVlanDataRowStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16.1.4
hwL2IfPwSuppressionTable
SEQUENCE OF HwL2IfPwSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17
hwL2IfPwSuppressionEntry
HwL2IfPwSuppressionEntry
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1
hwL2IfPwSuppressionVsiName
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1.1
hwL2IfPwSuppressionPwName
OCTET STRING
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1.2
hwL2IfPwSuppressionType
Enumeration
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1.3
hwL2IfPwSuppressionCirrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1.4
hwL2IfPwSuppressionCbsrw
Integer32
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17.1.5
Showing 100 of 117 OID objects

HUAWEI-L2IF-MIB Technical Reference Overview

The HUAWEI-L2IF-MIB SNMP MIB module published by Huawei defines 117 managed OID objects, including 85 scalar/column metrics, 11 SNMP tables, and 2 trap/notification events anchored at base OID .1.3.6.1.4.1.2011.5.25.42.1. Key tabular structures include hwL2IfTable, hwL2IfHybridPortTable, hwL2IfTrunkPortTable, hwL2IfPortIsolateTable, hwL2IfSuppressionTable, hwL2IfVlanSuppressionTable. Monitored SNMP traps/notifications include hwL2IfInvalidVlanPacketAlarm, hwInBcastRisingThreshold.

Key OID Definitions in HUAWEI-L2IF-MIB

hwL2IfMibMODULE-IDENTITYnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1

information of layer2 interface and information of hybrid port and information of trunk port

hwL2IfTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3

This is a table of layer2 interface,so it displays some attribute of layer2 interface.

hwL2IfHybridPortTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.9

Hybrid-port configuration table

hwL2IfTrunkPortTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.10

Trunk-port configuration table. Trunk-port is a logistic port.

hwL2IfPortIsolateTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.11

Port isolate in the same Service-instance table. The Service-instance is used to communicate among different vlans.

hwL2IfSuppressionTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.12

Port suppression configuration table

hwL2IfVlanSuppressionTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.13

Port and Vlan suppression configuration table

hwL2IfPortTcnTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.14

Port TCN in the same Service-instance table. The Service-instance is used to configure TCN.

hwL2IfPortLoopDetectTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.15

A table containing the port external loopback detection information for device. It can protect the port from external loopback.

hwL2IfPortProtocolVlanDataTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.16

The entry of protocol vlan by port.

hwL2IfPwSuppressionTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.17

Pw suppression configuration table

hwL2IfDynamicPortVlanTableSEQUENCEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.19

Table for dynamic relationship of port-vlan.

hwL2IfInvalidVlanPacketAlarmNOTIFICATION-TYPEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.2.1

Warning of receiving invalid VLAN packets in the interface.

hwInBcastRisingThresholdNOTIFICATION-TYPEnot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.2.2

Port status changed because loopback detect.(Normal/Block/Shutdown/Trap)

hwL2IfPortMaxInteger32read-only
.1.3.6.1.4.1.2011.5.25.42.1.1.1.1

Max ports that this device supports,BRIDGE-MIB have a resemble definition.

hwL2TopologyDetectEnabledStatusread-write
.1.3.6.1.4.1.2011.5.25.42.1.1.1.2

Whether to enable layer2 topology detection.

hwL2IfLoopDetectIntervalInteger32read-write
.1.3.6.1.4.1.2011.5.25.42.1.1.1.18

The detect period of system external loopback detection.

hwL2IfEntryHwL2IfEntrynot-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1

Entries of extended Huawei private interface information table

hwL2IfPortNumInteger32not-accessible
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.1

Number of layer2 interface port, a unique value, for each port.It is recommended that values are assigned contiguously starting from 1.

hwL2IfPortIfIndexInterfaceIndexread-only
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.2

A unique value, greater than zero, for each interface or interface sub-layer in the managed system. The value is consistent with the ifIndex in ifTable of IF-MIB.

hwL2IfPortTypeINTEGERread-write
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.3

Layer2 interface Port type, it contains invalid(0), trunk(1), access(2), hybrid(3), fabric(4), qinq(5), desirable(6) and auto(7).Do not support fabric(4) now. invalid(0),which we read only,can't modify.

hwL2IfPVIDInteger32read-write
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.4

Layer2 interface Port VLAN ID

hwL2IfIsSrcMacFilterTruthValueread-only
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.5

Whether to filter source MAC address. We don't support it now.

hwL2IfMacAddrLearnModeINTEGERread-only
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.6

Status indicates mac address learn mode of the interface. IVL(1) means independent VLAN learning.SVL means shared VLAN learning. We only support iVL now.

More MIBs from Huawei

Browse all HuaweiMIBs →
H3C-ENTITY-VENDORTYPE-OID-MIB

SNMP MIB module

1462 objects→
HUAWEI-WLAN-CONFIGURATION-MIB

The HUAWEI-WLAN-CONFIGURATION-MIB facilitates the configuration and monitoring of Huawei Wireless LAN access point parameters, specifically managing AP port link profiles and broadcast suppression settings. This module enables administrators to enforce traffic control policies and optimize wireless network performance by adjusting switch profile associations and limiting broadcast traffic on specific ports.

1280 objects→
HUAWEI-XQoS-MIB

The HUAWEI-XQoS-MIB enables configuration and real-time monitoring of Class Based QoS parameters on Huawei network devices, specifically tracking traffic classification rules, queue states, and policy enforcement metrics. This module facilitates granular control over bandwidth allocation and packet prioritization by exposing objects for policy definitions, interface queue depths, and dropped packet counters associated with QoS classes.

1134 objects→
HUAWEI-ENT-VOICE-PBX-MIB

The HUAWEI-ENT-VOICE-PBX-MIB enables SNMP-based monitoring and configuration of Huawei enterprise PBX systems, specifically tracking voice trunk states, active call session counts, and hardware resource utilization for telephony management.

1011 objects→
HUAWEI-WLAN-DEVICE-MIB

The HUAWEI-WLAN-DEVICE-MIB enables SNMP-based monitoring and configuration of Huawei Access Point hardware, providing granular visibility into device status, radio interface statistics, client association counts, and operational health metrics.

897 objects→
HUAWEI-BRAS-SBC-MIB

The HUAWEI-BRAS-SBC-MIB module provides configuration and status monitoring for Huawei Broadband Remote Access Server (BRAS) Session Border Controllers, specifically tracking session establishment parameters, resource utilization, and protocol state variables. It enables administrators to manage SBC-specific attributes such as call routing policies, media stream limits, and session timeout thresholds within the broadband aggregation network.

848 objects→