No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 MIB Reference

This document provides the function overview, relationships between tables, description of single objects, description of MIB tables, and description of alarm objects.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
HUAWEI-L2IF-MIB

HUAWEI-L2IF-MIB

Functions Overview

Huawei defines the HUAWEI-L2IF-MIB. This MIB describes the basic information about the layer 2 port and the VLAN information about hybrid and trunk ports on the layer 2 ports. This MIB can be used to query and set the information on the layer 2 ports, such as the port type, MAC address learning status and mode, suppression percentage of port broadcast, multicast, and unicast, VLAN list of the hybrid and trunk ports.

The OID of root objects is:

iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).huaweiMgmt(5).hwDatacomm(25).hwL2Mgmt(42).hwL2IfMib(1)

Relationship Between the Tables

Figure 67-1  Relationship between the hwL2IfTable, hwL2IfHybridPortTable, and hwL2IfTrunkPortTable

Figure 67-1 shows the relationship between the hwL2IfTable, hwL2IfHybridPortTable, and hwL2IfTrunkPortTable.

The index values in the hwL2IfHybridPortTable and hwL2IfTrunkPortTable correspond to the index value in the hwL2IfTable.

hwL2IfPortIfIndex in hwL2IfTable corresponds to the index of a physical interface, that is, hwL2IfPortIfIndex corresponds to the ifIndex field in IfTable.

Description of Single Objects

hwL2IfPortMax

OID

Object

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.1

hwL2IfPortMax

Integer32

Read-only

This object identifies the maximum number of ports on the device.

At present, the device supports up to ports.

The maximum number of ports on the device.

hwL2TopologyDetect

OID

Object

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.2

hwL2TopologyDetect

EnabledStatus

Read-write

Whether to enable layer2 topology detection.

This object is implemented as defined in the corresponding MIB files.

Description of MIB Tables

hwL2IfTable

hwL2IfTable is used to query and configure the basic attributes of a Layer 2 port, including number, index, type, default VLANID, and the MAC address learning status.

The index of this table is hwL2IfPortNum.

OID

Object Name

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.1

hwL2IfPortNum

Integer32 (1..65535)

Not-accessible

Number of the Layer 2 interface port, a unique value, for each port. It is recommended that values be assigned continuously starting from 1.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.2

hwL2IfPortIfIndex

InterfaceIndex

Read-only

A unique value, greater than zero, for each interface or interface sub-layer in the managed system.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.3

hwL2IfPortType

INTEGER

{

trunk(1),

invalid(0),

access(2),

hybrid(3),

fabric(4),

qinq(5),

desirable(6),

auto(7)

}

Read-write

This object indicates the Layer 2 interface Port type.

Currently, type fabric(4) is not supported by switch. Type invalid(0) is a status only; thus, this type cannot be set.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.4

hwL2IfPVID

Integer32

Read-write

This object indicates the ID of the VLAN where the Layer 2 port is.

The value ranges from 0 to 4094. If the value is 0, the hwL2IfPVID object is restored to the default value.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.5

hwL2IfIsSrcMacFilter

TruthValue

Read-only

This object indicates whether the function of filtering the source MAC address is supported. At present, the function is not supported.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.6

hwL2IfMacAddrLearnMode

INTEGER

{

iVL(1),

sVL(2)

}

Read-only

This object indicates the MAC address learning mode of the port:

  • IVL(1): indicates independent VLAN learning.

  • SVL(2): indicates shared VLAN learning.

Currently, only iVL(1) is supported.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.18

hwL2IfPortPriority

Integer (0..7)

Read-write

This object indicates that the Layer 2 port priority.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.19

hwL2IfPortName

OCTET STRING(SIZE(0..48))

Read-only

This object indicates that the Layer 2 port name.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.31

hwL2IfIsolateGroupEnable

EnabledStatus

Read-write

  • The value enabled(1) indicates that the port is a member of the port-isolate group.

  • The value disabled(2) indicates that the port is not a member of the port-isolate group.

The default value is disabled(2).

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.32

hwL2IfActivePortType

SYNTAX INTEGER

{

invalid(0),

trunk(1),

access(2),

hybrid(3),

fabric(4),

qinq(5)

}

Read-only

This object indicates the active port link-type.

This object is implemented as defined in the corresponding MIB files.

The fabric(4) is not supported.

Creation Restriction

This table cannot be created.

Modification Restriction

If you modify a row of the hwL2IfPortType, the contents of the hwL2IFHybridPortTable and hwL2IfTrunkPortTable are affected.

If you successfully set the value of the hwL2IfPVID of a row, the value of the hwL2VlanPortList of the corresponding VLAN in the hwL2VlanMIBTable in the HUAWEI-L2VLAN-MIB is changed. The port list value of the corresponding VLAN is also changed. The hwL2VlanPortList object contains this port.

In the table, the relevant function of the hwL2IfIsSrcMacFilter is not supported now. You can only access its default value: false.

At present, only the iVL mode of learning the MAC address is supported for the hwL2IfMacAddrLearnMode. You can access its value iVL only.

At present, the hwL2IfMacAddressLearn cannot be modified. You can only access its default value: enable.

Deletion Restriction

This table cannot be deleted.

Access Restriction

This table shows the information about all ports on the current device. When a port is added, a row is created in the table. The index value is allocated from 1 in ascending mode. When a port is removed, the index value of the port can be allocated to the next port added.

The instance of the hwL2IfPortIfIndex corresponds to the instance of the ifIndex in the ifTable.

hwL2IfHybridPortTable

This table shows the VLAN information about the hybrid ports. It describes the VLAN list configured for the port in both tagged and untagged modes.

The index of this table is hwL2IfHybridPortIndex.

OID

Object Name

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.1

hwL2IfHybridPortIndex

Integer(1..65535)

Not-accessible

This object identifies the index of the hybrid port.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.2

hwL2IfHybridTaggedVlanListLow

VlanList(SIZE(256))

Read-write

This object identifies the low 2048 VLANs (0-2047) of the tagged VLAN list on the hybrid ports.

Value 0 is reserved.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.3

hwL2IfHybridTaggedVlanListHigh

VlanList(SIZE(256))

Read-write

This object identifies the high 2048 VLANs (2048-4095) of the tagged VLAN list on the hybrid ports. Value 4095 is reserved.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.4

hwL2IfHybridUnTaggedVlanListLow

VlanList(SIZE(256))

Read-write

This object identifies the low 2048 VLANs (0-2047) of the untagged VLAN list on the hybrid ports.

Value 0 is reserved.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.9.1.5

hwL2IfHybridUnTaggedVlanListHigh

VlanList(SIZE(256))

Read-write

This object identifies the high 2048 VLANs (2048-4095) of the untagged VLAN list on the hybrid ports.

Value 4095 is reserved.

This object is implemented as defined in the corresponding MIB files.

Creation Restriction

This table cannot be created.

Modification Restriction

In this table, the modification of the values of the hwL2IfHybridTaggedVlanListLow and hwL2IfHybridUnTaggedVlanListLow affects each other.

The modification of the values of the hwL2IfHybridTaggedVlanListHigh and hwL2IfHybridUnTaggedVlanListHigh affects each other.

In the two pairs of the preceding objects, the bits that one VLAN ID corresponds to cannot be 1 at the same time.

At present, only the values of the hwL2IfHybridTaggedVlanListLow and hwL2IfHybridTaggedVlanListHigh can be modified. The values of the hwL2IfHybridUnTaggedVlanListLow and hwL2IfHybridUnTaggedVlanListHigh cannot be modified. That is, a hybrid port cannot be added to the VLAN in untagged mode at present.

In a row of this table, the value of an object is a character string with 256 bytes. Eight bits of each byte in the character string correspond to eight VLAN IDs. Therefore, 2048 bits of the low VLAN list and 2048 bits of the high VLAN list correspond to 4096 VLAN IDs. The first bit and the 4096th bit respectively correspond to VLAN 0 and VLAN 4095. Other bits are in one-to-one corresponding to other VLAN IDs. VLAN 0 and VLAN 4095 are reserved, therefore, these two bits are fixedly 0 and cannot be modified.

Deletion Restriction

This table cannot be deleted.

Access Restriction

This table shows the information about all hybrid ports on the current device. The ports are of the hybrid type by default. When a port of another type is successfully set to the hybrid type, a new row is created in the table. The value indicates that the port is added to the VLAN list in tagged mode.

At present, the port cannot be added to the VLAN in untagged mode by switch. Therefore, the values of the hwL2IfHybridUnTaggedVlanListLow and hwL2IfHybridUnTaggedVlanListHigh are a character string of zeros by default.

hwL2IfTrunkPortTable

This table describes the VLAN information through the Layer 2 trunk ports.

The index of this table is hwL2IfTrunkPortIndex.

OID

Object Name

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.1

hwL2IfTrunkPortIndex

Integer32 (1..65535)

Not-accessible

This object identifies the index of the Layer 2 trunk port.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.2

hwL2IfTrunkAllowPassVlanListLow

VlanList(SIZE(0..256))

Read-write

This object identifies the low 2048 VLANs (0-2047) in the VLAN list through the Layer 2 trunk ports. Value 0 is reserved.

This object is implemented as defined in the corresponding MIB files.

1.3.6.1.4.1.2011.5.25.42.1.1.1.10.1.3

hwL2IfTrunkAllowPassVlanListHigh

VlanList(SIZE(0..256))

Read-write

This object identifies the high 2048 VLANs (2048-4095) in the VLAN list through the Layer 2 trunk ports. Value 4095 is reserved.

This object is implemented as defined in the corresponding MIB files.

Creation Restriction

This table cannot be created.

Modification Restriction

In a row of this table, the value of an object is a character string with 256 bytes. Eight bits of each byte in the character string correspond to eight VLAN IDs. Therefore, 2048 bits of the low VLAN list and 2048 bits of the high VLAN list correspond to 4096 VLAN IDs.

The first bit and the 4096th bit respectively correspond to VLAN 0 and VLAN 4095. Other bits are in one-to-one corresponding to other VLAN IDs.

VLAN 0 and VLAN 4095 are reserved; therefore, these two bits are fixedly 0 and cannot be modified. If the value of another bit is changed from 0 to 1, it indicates the VLAN of the corresponding VLAN ID is set to one with the information through the trunk port.

Deletion Restriction

This table cannot be deleted.

Access Restriction

This table shows the information about all trunk ports on the current device. The type of Layer 2 ports is Hybrid by default. When a port of another type is successfully set to the trunk type, a new row is created in the table.

hwL2IfDynPortVlanTable

Table for dynamic relationship of port-vlan.

The indexes of this table is hwL2IfDynPortVlanPortIndex.

OID

Object Name

Syntax

Max Access

Description

Implemented Specifications

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.1

hwL2IfDynPortVlanPortIndex

Integer32 (SIZE (1..65535))

not-accessible

Port index of switch-port.

This object is implemented as defined in the corresponding MIB file.

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.2

hwL2IfDynPortVlanPvid

VlanIdOrNone

read-only

The Dynamic PVID of port-vlan table.

This object is implemented as defined in the corresponding MIB file.

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.3

hwL2IfDynPortVlanUntaggedVlanListLow

VlanList (SIZE (256..256))

read-only

The lowest possible value of the untagged vlan list of dynamic port-vlan table.

This object is implemented as defined in the corresponding MIB file.

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.4

hwL2IfDynPortVlanUntaggedVlanListHigh

VlanList (SIZE (256..256))

read-only

The highest possible value of the untagged vlan list of Dynamic port-vlan table.

This object is implemented as defined in the corresponding MIB file.

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.5

hwL2IfDynPortVlanTaggedVlanListLow

VlanList (SIZE (256..256))

read-only

The lowest possible value of the tagged vlan list of Dynamic port-vlan table.

This object is implemented as defined in the corresponding MIB file.

1.3.6.1.4.1.2011.5.25.42.1.1.1.20.1.6

hwL2IfDynPortVlanTaggedVlanListHigh

VlanList (SIZE (256..256))

read-only

The highest possible value of the tagged vlan list of Dynamic port-vlan table.

This object is implemented as defined in the corresponding MIB file.

Creation Restriction

No entry can be created in this table.

Modification Restriction

The entries in this table cannot be modified.

Deletion Restriction

The entries in this table cannot be deleted.

Access Restriction

The table has records only when the Layer 2 ports exist.

Description of Alarm Objects

None.

Unsupported Objects

The functions corresponding to the following objects are not supported on the device. Do not use these MIB objects to maintain the device.

Table 67-1  List of unsupported objects

Object ID

Object Name

Table

1.3.6.1.4.1.2011.5.25.42.1.1.2.1

hwL2IfInvalidVlanPacketAlarm

Alarm Objects

1.3.6.1.4.1.2011.5.25.42.1.1.2.2

hwInBcastRisingThreshold

Alarm Objects

Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065666

Views: 15753

Downloads: 50

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next