GBNL2VLAN-MIB DEFINITIONS ::= BEGIN -- ------------------------------------------------------------- -- Internal GBNL2VLAN MIB -- ------------------------------------------------------------- IMPORTS MODULE-IDENTITY, OBJECT-TYPE, Counter32, Unsigned32, TimeTicks FROM SNMPv2-SMI TimeInterval, RowStatus, TruthValue, DisplayString, TEXTUAL-CONVENTION, MacAddress FROM SNMPv2-TC gbnL2 FROM userNet-MASTER-MIB MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF; gbnL2Vlan MODULE-IDENTITY LAST-UPDATED "9907060000Z" ORGANIZATION "GreenNet Systems, Inc." CONTACT-INFO "GreenNet Systems" DESCRIPTION "VLAN Module Management" -- revision history REVISION "9907060000Z" DESCRIPTION "Initial version" ::= { gbnL2 10 } gbnL2VlanMIBObjects OBJECT IDENTIFIER ::= { gbnL2Vlan 1 } -- ------------------------------------------------------------- -- Textual Conventions -- ------------------------------------------------------------- EnabledStatus ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "A simple status value for the object." SYNTAX INTEGER { enabled(1), disabled(2) } TimeFilter ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "To be used for the index to a table. Allows an application to download only those rows changed since a particular time. A row is considered changed if the value of any object in the row changes or if the row is created or deleted. When sysUpTime is equal to zero, this table shall be empty. One entry exists for each past value of sysUpTime, except that the whole table is purged should sysUpTime wrap. As this basic row is updated new conceptual rows are created (which still share the now updated object values with all other instances). The number of instances which are created is determined by the value of sysUpTime at which the basic row was last updated. One instance will exist for each value of sysUpTime at the last update time for the row. A new timeMark instance is created for each new sysUpTime value. Each new conceptual row will be associated with the timeMark instance which was created at the value of sysUpTime with which the conceptual row is to be associated. By definition all conceptual rows were updated at or after time zero and so at least one conceptual row (associated with timeMark.0) must exist for each underlying (basic) row. See the appendix for further discussion of this variable. Consider the following fooTable: fooTable ... INDEX { fooTimeMark, fooIndex } FooEntry { fooTimeMark TimeFilter fooIndex INTEGER, fooCounts Counter } Should there be two basic rows in this table (fooIndex == 1, fooIndex == 2) and row 1 was updated most recently at time 6, while row 2 was updated most recently at time 8, and both rows had been updated on several earlier occasions such that the current values were 5 and 9 respectively then the following fooCounts instances would exist. fooCounts.0.1 5 fooCounts.0.2 9 fooCounts.1.1 5 fooCounts.1.2 9 fooCounts.2.1 5 fooCounts.2.2 9 fooCounts.3.1 5 fooCounts.3.2 9 fooCounts.4.1 5 fooCounts.4.2 9 fooCounts.5.1 5 fooCounts.5.2 9 fooCounts.6.1 5 fooCounts.6.2 9 fooCounts.7.2 9 -- note that row 1 doesn't exist for fooCounts.8.2 9 -- times 7 and 8" SYNTAX TimeTicks PortList ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "Each octet within this value specifies a set of eight ports, with the first octet specifying ports 1 through 8, the second octet specifying ports 9 through 16, etc. Within each octet, the most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the bridge is represented by a single bit within the value of this object. If that bit has a value of '1' then that port is included in the set of ports; the port is not included if its bit has a value of '0'." SYNTAX OCTET STRING VlanIndex ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "A value used to index per-VLAN tables: values of 0 and 4095 are not permitted; if the value is between 1 and 4094 inclusive, it represents an IEEE 802.1Q VLAN-ID with global scope within a given bridged domain (see VlanId textual convention). If the value is greater than 4095 then it represents a VLAN with scope local to the particular agent, i.e. one without a global VLAN-ID assigned to it. Such VLANs are outside the scope of IEEE 802.1Q but it is convenient to be able to manage them in the same way using this MIB." SYNTAX Unsigned32 VlanId ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "A 12-bit VLAN ID used in the VLAN Tag header." SYNTAX INTEGER (1..4094) -- ------------------------------------------------------------- -- groups in the GBNL2VLAN MIB -- ------------------------------------------------------------- gDot1qBase OBJECT IDENTIFIER ::= { gbnL2VlanMIBObjects 1 } gDot1qVlan OBJECT IDENTIFIER ::= { gbnL2VlanMIBObjects 2 } gDot1qVlanExtend OBJECT IDENTIFIER ::= { gbnL2VlanMIBObjects 3 } -- ------------------------------------------------------------- -- ------------------------------------------------------------- -- gDot1qBase group -- ------------------------------------------------------------- gDot1qVlanVersionNumber OBJECT-TYPE SYNTAX INTEGER { version1(1) } MAX-ACCESS read-only STATUS current DESCRIPTION "The version number of IEEE 802.1Q that this device supports." REFERENCE "IEEE 802.1Q/D11 Section 12.10.1.1" DEFVAL { 1 } ::= { gDot1qBase 1 } gDot1qMaxVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-only STATUS current DESCRIPTION "The maximum IEEE 802.1Q VLAN ID that this device supports." REFERENCE "IEEE 802.1Q/D11 Section 9.3.2.3" ::= { gDot1qBase 2 } gDot1qMaxSupportedVlans OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "The maximum number of IEEE 802.1Q VLANs that this device supports." REFERENCE "IEEE 802.1Q/D11 Section 12.10.1.1" ::= { gDot1qBase 3 } gDot1qNumVlans OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "The current number of IEEE 802.1Q VLANs that are configured in this device." REFERENCE "IEEE 802.1Q/D11 Section 12.7.1.1" ::= { gDot1qBase 4 } -- ------------------------------------------------------------- -- The Current VLAN Database -- ------------------------------------------------------------- gDot1qVlanNumDeletes OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of times a VLAN entry has been deleted from the gDot1qVlanCurrentTable (for any reason). If an entry is deleted, then inserted, and then deleted, this counter will be incremented by 2." ::= { gDot1qVlan 1 } gDot1qVlanCurrentTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qVlanCurrentEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A table containing current configuration information for each VLAN currently configured into the device by (local or network) management, or dynamically created as a result of GVRP requests received." ::= { gDot1qVlan 2 } gDot1qVlanCurrentEntry OBJECT-TYPE SYNTAX GDot1qVlanCurrentEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information for a VLAN configured into the device by (local or network) management, or dynamically created as a result of GVRP requests received." INDEX { gDot1qVlanTimeMark, gDot1qVlanIndex } ::= { gDot1qVlanCurrentTable 1 } GDot1qVlanCurrentEntry ::= SEQUENCE { gDot1qVlanTimeMark TimeFilter, gDot1qVlanIndex VlanIndex, gDot1qVlanFdbId Unsigned32, gDot1qVlanCurrentEgressPorts PortList, gDot1qVlanCurrentUntaggedPorts PortList, gDot1qVlanStatus INTEGER, gDot1qVlanCreationTime TimeTicks } gDot1qVlanTimeMark OBJECT-TYPE SYNTAX TimeFilter MAX-ACCESS not-accessible STATUS current DESCRIPTION "A TimeFilter for this entry. See the TimeFilter textual convention to see how this works." ::= { gDot1qVlanCurrentEntry 1 } gDot1qVlanIndex OBJECT-TYPE SYNTAX VlanIndex MAX-ACCESS not-accessible STATUS current DESCRIPTION "The VLAN-ID or other identifier refering to this VLAN." ::= { gDot1qVlanCurrentEntry 2 } gDot1qVlanFdbId OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "The Filtering Database used by this VLAN. This is one of the gDot1qFdbId values in the gDot1qFdbTable. This value is allocated automatically by the device whenever the VLAN is created: either dynamically by GVRP, or by management, in gDot1qVlanStaticTable. Allocation of this value follows the learning constraints defined for this VLAN in gDot1qLearningConstraintsTable." ::= { gDot1qVlanCurrentEntry 3 } gDot1qVlanCurrentEgressPorts OBJECT-TYPE SYNTAX PortList MAX-ACCESS read-only STATUS current DESCRIPTION "The set of ports which are transmitting traffic for this VLAN as either tagged or untagged frames." REFERENCE "IEEE 802.1Q/D11 Section 12.10.2.1" ::= { gDot1qVlanCurrentEntry 4 } gDot1qVlanCurrentUntaggedPorts OBJECT-TYPE SYNTAX PortList MAX-ACCESS read-only STATUS current DESCRIPTION "The set of ports which are transmitting traffic for this VLAN as untagged frames." REFERENCE "IEEE 802.1Q/D11 Section 12.10.2.1" ::= { gDot1qVlanCurrentEntry 5 } gDot1qVlanStatus OBJECT-TYPE SYNTAX INTEGER { other(1), permanent(2), dynamicGvrp(3) } MAX-ACCESS read-only STATUS current DESCRIPTION "This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so differ from the following values. permanent(2) - this entry, corresponding to an entry in gDot1qVlanStaticTable, is currently in use and will remain so after the next reset of the device. The port lists for this entry include ports from the equivalent gDot1qVlanStaticTable entry and ports learnt dynamically. dynamicGvrp(3) - this entry is currently in use and will remain so until removed by GVRP. There is no static entry for this VLAN and it will be removed when the last port leaves the VLAN." ::= { gDot1qVlanCurrentEntry 6 } gDot1qVlanCreationTime OBJECT-TYPE SYNTAX TimeTicks MAX-ACCESS read-only STATUS current DESCRIPTION "The value of sysUpTime when this VLAN was created." ::= { gDot1qVlanCurrentEntry 7 } -- ------------------------------------------------------------- -- The Static VLAN Database -- ------------------------------------------------------------- gDot1qVlanStaticTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qVlanStaticEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A table containing static configuration information for each VLAN configured into the device by (local or network) management. All entries are permanent and will be restored after the device is reset." ::= { gDot1qVlan 3 } gDot1qVlanStaticEntry OBJECT-TYPE SYNTAX GDot1qVlanStaticEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Static information for a VLAN configured into the device by (local or network) management." -- -- This table is actually indexed by VLAN ID, however for the purposes -- of default value table generation, we introduce a phony index of -- the dimension of the VLAN slot table. -- -- INDEX { gDot1qVlanIndex } -- INDEX { gDot1qVlanSlotIndex } -- Don't use this index at runtime ::= { gDot1qVlanStaticTable 1 } GDot1qVlanStaticEntry ::= SEQUENCE { gDot1qVlanStaticName DisplayString, -- SnmpAdminString, gDot1qVlanStaticEgressPorts PortList, gDot1qVlanStaticUntaggedPorts PortList, gDot1qVlanStaticRowStatus RowStatus } gDot1qVlanStaticName OBJECT-TYPE SYNTAX DisplayString (SIZE (0..32)) -- SYNTAX SnmpAdminString (SIZE (0..32)) MAX-ACCESS read-create STATUS current DESCRIPTION "DURABLE: { 'Default' } An administratively assigned string, which may be used to identify the VLAN." REFERENCE "IEEE 802.1Q/D11 Section 12.10.2.1" ::= { gDot1qVlanStaticEntry 1 } gDot1qVlanStaticEgressPorts OBJECT-TYPE SYNTAX PortList MAX-ACCESS read-create STATUS current DESCRIPTION -- -- Note: I'm not sure what our syntax is here, but the default value for -- this thing needs to be all F's -- every port is a member. -- "DURABLE: { 0:all } The set of ports which are permanently assigned to the egress list for this VLAN by management. Changes to a bit in this object affect the per-port per-VLAN Registrar control for Registration Fixed for the relevant GVRP state machine on each port. A port may not be added in this set if it is already a member of the set of ports in gDot1qVlanForbiddenEgressPorts. The default value of this object is a string of zeros of appropriate length, indicating not fixed." REFERENCE "IEEE 802.1Q/D11 Section 12.7.7.3, 11.2.3.2.3" ::= { gDot1qVlanStaticEntry 2 } gDot1qVlanStaticUntaggedPorts OBJECT-TYPE SYNTAX PortList MAX-ACCESS read-create STATUS current DESCRIPTION "DURABLE: { 0:all } The set of ports which should transmit egress packets for this VLAN as untagged. The default value of this object for the default VLAN (gDot1qVlanIndex = 1) is a string of appropriate length including all ports. There is no specified default for other VLANs. If a device agent cannot support the set of ports being set then it will reject the set operation with an error. An example might be if a manager attempts to set more than one VLAN to be untagged on egress where the device does not support this IEEE 802.1Q option." REFERENCE "IEEE 802.1Q/D11 Section 12.10.2.1" ::= { gDot1qVlanStaticEntry 3 } gDot1qVlanStaticRowStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION "This object indicates the status of this entry." ::= { gDot1qVlanStaticEntry 4 } gDot1qNextFreeLocalVlanIndex OBJECT-TYPE SYNTAX INTEGER (0|4096..2147483647) MAX-ACCESS read-only STATUS current DESCRIPTION "The next available value for gDot1qVlanIndex of a local VLAN entry in gDot1qVlanStaticTable. This will report values >=4096 if a new Local VLAN may be created or else the value 0 if this is not possible. A row creation operation in this table for an entry with a local VlanIndex value may fail if the current value of this object is not used as the index. Even if the value read is used, there is no guarantee that it will still be the valid index when the create operation is attempted - another manager may have already got in during the intervening time interval. In this case, gDot1qNextFreeLocalVlanIndex should be re-read and the creation re-tried with the new value. This value will automatically change when the current value is used to create a new row." ::= { gDot1qVlan 4 } -- ------------------------------------------------------------- -- The VLAN Port Configuration Table -- ------------------------------------------------------------- gDot1qPortVlanTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qPortVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A table containing per port control and status information for VLAN configuration in the device." ::= { gDot1qVlan 5 } gDot1qPortVlanEntry OBJECT-TYPE SYNTAX GDot1qPortVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information controlling VLAN configuration for a port on the device. This is indexed by dot1dBasePort." INDEX { gDot1qPort } ::= { gDot1qPortVlanTable 1 } GDot1qPortVlanEntry ::= SEQUENCE { gDot1qPort INTEGER, gDot1qPvid VlanIndex, gDot1qPortAcceptableFrameTypes INTEGER, gDot1qPortIngressFiltering TruthValue, gDot1qPortMode INTEGER, sDot1gPortDefaultUserPriority INTEGER } gDot1qPort OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "port number, from 1 to max" ::= { gDot1qPortVlanEntry 1 } gDot1qPvid OBJECT-TYPE SYNTAX VlanIndex MAX-ACCESS read-write STATUS current DESCRIPTION "DURABLE: { 1:all } The PVID, the VLAN ID assigned to untagged frames or Priority-Tagged frames received on this port." REFERENCE "IEEE 802.1Q/D11 Section 12.10.1.1" DEFVAL { 1 } ::= { gDot1qPortVlanEntry 2 } gDot1qPortAcceptableFrameTypes OBJECT-TYPE SYNTAX INTEGER { admitAll(1), admitOnlyVlanTagged(2) } MAX-ACCESS read-write STATUS current DESCRIPTION "DURABLE: { 1:all } When this is admitOnlyVlanTagged(2) the device will discard untagged frames or Prority-Tagged frames received on this port. When admitAll(1), untagged frames or Prority-Tagged frames received on this port will be accepted and assigned to the PVID for this port. This control does not affect VLAN independent BPDU frames, such as GVRP and STP. It does affect VLAN dependent BPDU frames, such as GMRP." REFERENCE "IEEE 802.1Q/D11 Section 12.10.1.3" DEFVAL { admitAll } ::= { gDot1qPortVlanEntry 3 } gDot1qPortIngressFiltering OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-write STATUS current DESCRIPTION "DURABLE: {1:all} When this is true(1) the device will discard incoming frames for VLANs which do not include this Port in its Member set. When false(2), the port will accept all incoming frames. This control does not affect VLAN independent BPDU frames, such as GVRP and STP. It does affect VLAN dependent BPDU frames, such as GMRP." REFERENCE "IEEE 802.1Q/D11 Section 12.10.1.4" DEFVAL { false } ::= { gDot1qPortVlanEntry 4 } gDot1qPortMode OBJECT-TYPE SYNTAX INTEGER { trunk(1), access(2), hybrid(3) } MAX-ACCESS read-write STATUS current DESCRIPTION "type of mode" ::= { gDot1qPortVlanEntry 5 } sDot1gPortDefaultUserPriority OBJECT-TYPE SYNTAX INTEGER (0..7) MAX-ACCESS read-write STATUS current DESCRIPTION "DURABLE: { 0:all } The default ingress User Priority for this port. This only has effect on media, such as Ethernet, that do not support native User Priority." ::= { gDot1qPortVlanEntry 6 } -- ------------------------------------------------------------- -- the gDot1qVlanExtend group -- ------------------------------------------------------------- -- ------------------------------------------------------------- -- the current MAC VLAN Table -- ------------------------------------------------------------- gDot1qMacVlanTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qMacVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to assign a VLAN ID for a packet based on the source MAC Address. If an entry is found, then the VLAN ID, PRIORITY of mac vlan table will be used for the packet." --该表用于基于报文的源MAC地址为报文添加一个tag头,如果找到匹配的表 --项,那么MAC VLAN表的vlan id以及优先级就会被添加到报文上. ::= { gDot1qVlanExtend 1 } gDot1qMacVlanEntry OBJECT-TYPE SYNTAX GDot1qMacVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a mac vlan table entry." --mac vlan表项的信息 INDEX { gDot1qMacVlanMacAddress } ::= { gDot1qMacVlanTable 1 } GDot1qMacVlanEntry ::= SEQUENCE { gDot1qMacVlanMacAddress MacAddress, gDot1qMacVlanNewVlanId VlanId, gDot1qMacVlanNewPriority INTEGER, gDot1qMacVlanStatus RowStatus } gDot1qMacVlanMacAddress OBJECT-TYPE SYNTAX MacAddress MAX-ACCESS read-only STATUS current DESCRIPTION "The index of mac vlan table entry." --mac vlan表的索引 ::= { gDot1qMacVlanEntry 1 } gDot1qMacVlanNewVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-write STATUS current DESCRIPTION "Vlan id to be assigned to the packet." --将要为报文添加的vlan id ::= { gDot1qMacVlanEntry 2 } gDot1qMacVlanNewPriority OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "Priority to be assigned to the packet." --将要为报文添加的优先级 ::= { gDot1qMacVlanEntry 3 } gDot1qMacVlanStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "table entry status." --表项的状态 ::= { gDot1qMacVlanEntry 4 } -- ------------------------------------------------------------- -- the current IP SUBNET VLAN -- ------------------------------------------------------------- gDot1qIpSubnetVlan OBJECT IDENTIFIER ::= { gDot1qVlanExtend 2 } gDot1qIpSubnetVlanPrecede OBJECT-TYPE SYNTAX TruthValue MAX-ACCESS read-write STATUS current DESCRIPTION "Used to config whether the IP-Subnet Based VLAN has a higher precedence than the MAC Based VLAN." --用于配置是否基于ip的vlan比基于MAC的vlan具有更高的优先级 ::= { gDot1qIpSubnetVlan 1 } -- ------------------------------------------------------------- -- the current IP SUBNET VLAN Table -- ------------------------------------------------------------- gDot1qIpSubnetVlanTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qIpSubnetVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to assign a VLAN ID for a packet based on the source IP Address." --该表用于基于报文的源ip为报文添加tag头 ::= { gDot1qIpSubnetVlan 2 } gDot1qIpSubnetVlanEntry OBJECT-TYPE SYNTAX GDot1qIpSubnetVlanEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about an ip subnet vlan table entry." --ip subnet vlan表的表项信息 INDEX { gDot1qIpSubnetVlanIpAddress, gDot1qIpSubnetVlanIpMask } ::= { gDot1qIpSubnetVlanTable 1 } GDot1qIpSubnetVlanEntry ::= SEQUENCE { gDot1qIpSubnetVlanIpAddress IpAddress, gDot1qIpSubnetVlanIpMask IpAddress, gDot1qIpSubnetVlanNewVlanId VlanId, gDot1qIpSubnetVlanNewPriority INTEGER, gDot1qIpSubnetVlanStatus RowStatus } gDot1qIpSubnetVlanIpAddress OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "The first index of ip subnet vlan table entry." --ip subnet vlan表的第一个索引 ::= { gDot1qIpSubnetVlanEntry 1 } gDot1qIpSubnetVlanIpMask OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "The second index of ip subnet vlan table entry." --ip subnet vlan表的第二个索引 ::= { gDot1qIpSubnetVlanEntry 2 } gDot1qIpSubnetVlanNewVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-write STATUS current DESCRIPTION "Vlan id to be assigned to the packet." --将要为报文添加的vlan id ::= { gDot1qIpSubnetVlanEntry 3 } gDot1qIpSubnetVlanNewPriority OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "Priority to be assigned to the packet." --将要添加给报文的优先级值 ::= { gDot1qIpSubnetVlanEntry 4 } gDot1qIpSubnetVlanStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "table entry status." --表项的状态 ::= { gDot1qIpSubnetVlanEntry 5 } -- ------------------------------------------------------------- -- the current PROTOCOL VLAN -- ------------------------------------------------------------- gDot1qProtocolVlan OBJECT IDENTIFIER ::= { gDot1qVlanExtend 3 } -- ------------------------------------------------------------- -- the current PROTOCOL VLAN Profile Table -- ------------------------------------------------------------- gDot1qProtocolVlanProfileTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qProtocolVlanProfileEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to classify a packet based on the protocol(FrameType, EtherType)." --该表用于基于报文的协议字段为报文进行分类 ::= { gDot1qProtocolVlan 1 } gDot1qProtocolVlanProfileEntry OBJECT-TYPE SYNTAX GDot1qProtocolVlanProfileEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a protocol vlan profile table entry." --基于协议的vlan模板表的表项 INDEX { gDot1qProtocolVlanProfileIndex } ::= { gDot1qProtocolVlanProfileTable 1 } GDot1qProtocolVlanProfileEntry ::= SEQUENCE { gDot1qProtocolVlanProfileIndex INTEGER, gDot1qProtocolVlanProfileFrameType BITS, gDot1qProtocolVlanProfileEtherType INTEGER, gDot1qProtocolVlanProfileStatus RowStatus } gDot1qProtocolVlanProfileIndex OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "Index of protocol vlan profile entry." --基于协议的vlan模板表的索引. ::= { gDot1qProtocolVlanProfileEntry 1 } gDot1qProtocolVlanProfileFrameType OBJECT-TYPE SYNTAX BITS{ ethernet2(0), llc(1), snap(2) } MAX-ACCESS read-write STATUS current DESCRIPTION "Bitmap of frame encapsulated types. Bit 0 is ethernetv2, bit 1 is non-snap-llc, bit 2 is llc-snap." --报文格式封装类型位图,位0表示ethernetv2,位1表示non-snap-llc,位2表示llc-snap ::= { gDot1qProtocolVlanProfileEntry 2 } gDot1qProtocolVlanProfileEtherType OBJECT-TYPE SYNTAX INTEGER(0..65535) MAX-ACCESS read-write STATUS current DESCRIPTION "Ethernet type of packet." --报文的以太网类型. ::= { gDot1qProtocolVlanProfileEntry 3 } gDot1qProtocolVlanProfileStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Protocol vlan profile entry status." --基于协议的vlan模板表项的状态 ::= { gDot1qProtocolVlanProfileEntry 4 } -- ------------------------------------------------------------- -- the current PROTOCOL VLAN Action Table -- ------------------------------------------------------------- gDot1qProtocolVlanActionTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qProtocolVlanActionEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to assign a VLAN for a packet based on the protocol(FrameType, EtherType)and the ingress port." --该表用于基于报文的协议字段为报文添加新的tag头 ::= { gDot1qProtocolVlan 2 } gDot1qProtocolVlanActionEntry OBJECT-TYPE SYNTAX GDot1qProtocolVlanActionEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a protocol vlan aciton table entry." --基于协议的vlan动作表的表项 INDEX { gDot1qProtocolVlanActionPortId, gDot1qProtocolVlanProfileIndex} ::= { gDot1qProtocolVlanActionTable 1 } GDot1qProtocolVlanActionEntry ::= SEQUENCE { gDot1qProtocolVlanActionPortId INTEGER, gDot1qProtocolVlanActionNewVlan VlanId, gDot1qProtocolVlanActionNewPriority INTEGER, gDot1qProtocolVlanActionStatus RowStatus } gDot1qProtocolVlanActionPortId OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "Port index." --端口索引 ::= { gDot1qProtocolVlanActionEntry 1 } gDot1qProtocolVlanActionNewVlan OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-write STATUS current DESCRIPTION "Vlan id to be assigned to the packet." --将要为报文添加的vlan id ::= { gDot1qProtocolVlanActionEntry 2 } gDot1qProtocolVlanActionNewPriority OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "Priority to be assigned to the packet." --将要添加给报文的优先级值 ::= { gDot1qProtocolVlanActionEntry 3 } gDot1qProtocolVlanActionStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Table entry status." --表项的状态 ::= { gDot1qProtocolVlanActionEntry 4 } -- ------------------------------------------------------------- -- the current PROTOCOL VLAN Admin Table -- ------------------------------------------------------------- gDot1qProtocolVlanAdminTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qProtocolVlanAdminEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to enable assign a VLAN for a packet based on the protocol(FrameType, EtherType)and the ingress port." --该表用于使能基于报文的协议字段为报文添加新的tag头 ::= { gDot1qProtocolVlan 3 } gDot1qProtocolVlanAdminEntry OBJECT-TYPE SYNTAX GDot1qProtocolVlanAdminEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a protocol vlan admin table entry." --基于协议的vlan管理表的表项 INDEX { gDot1qProtocolVlanAdminPortId } ::= { gDot1qProtocolVlanAdminTable 1 } GDot1qProtocolVlanAdminEntry ::= SEQUENCE { gDot1qProtocolVlanAdminPortId INTEGER, gDot1qProtocolVlanAdminEnable EnabledStatus } gDot1qProtocolVlanAdminPortId OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "Port index." --端口索引 ::= { gDot1qProtocolVlanAdminEntry 1 } gDot1qProtocolVlanAdminEnable OBJECT-TYPE SYNTAX EnabledStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Enable protocol-based vlan function of a port." --使能端口的基于协议的VLAN功能. ::= { gDot1qProtocolVlanAdminEntry 2 } -- ------------------------------------------------------------- -- the current VLAN TRANSLATE -- ------------------------------------------------------------- gDot1qVlanTranslate OBJECT IDENTIFIER ::= { gDot1qVlanExtend 4 } gDot1qVlanTranslateEnable OBJECT-TYPE SYNTAX EnabledStatus MAX-ACCESS read-write STATUS current DESCRIPTION "The global enabled status of vlan-translate function." --VLAN转换功能的全局使能开关 ::= { gDot1qVlanTranslate 1 } -- ------------------------------------------------------------- -- the current VLAN TRANSLATE PORT Table -- ------------------------------------------------------------- gDot1qVlanTranslatePortTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qVlanTranslatePortEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The port enabled status of vlan-translate function." --VLAN转换功能的端口使能开关 ::= { gDot1qVlanTranslate 2 } gDot1qVlanTranslatePortEntry OBJECT-TYPE SYNTAX GDot1qVlanTranslatePortEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Port entry of vlan translate function." --vlan替换功能的端口表项 INDEX { gDot1qVlanTranslatePortId } ::= { gDot1qVlanTranslatePortTable 1 } GDot1qVlanTranslatePortEntry ::= SEQUENCE { gDot1qVlanTranslatePortId INTEGER, gDot1qVlanTranslateIngressEnable EnabledStatus, gDot1qVlanTranslateEgressEnable EnabledStatus } gDot1qVlanTranslatePortId OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "Port index." --端口索引 ::= { gDot1qVlanTranslatePortEntry 1 } gDot1qVlanTranslateIngressEnable OBJECT-TYPE SYNTAX EnabledStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Enable vlan translate function on the ingress port." --使能入端口的VLAN转换功能 ::= { gDot1qVlanTranslatePortEntry 2 } gDot1qVlanTranslateEgressEnable OBJECT-TYPE SYNTAX EnabledStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Enable vlan translate function on the egress port." --使能出端口的VLAN转换功能 ::= { gDot1qVlanTranslatePortEntry 3 } -- ------------------------------------------------------------- -- the current VLAN TRANSLATE INGRESS Table -- ------------------------------------------------------------- gDot1qVlanTranslateIngressTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qVlanTranslateIngressEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to translate the VLAN ID of an incoming tagged packet to another VLAN ID based on the ingress port and incoming packet VLAN ID." --该表根据接收报文的vlan id和入端口转换报文的vlan id ::= { gDot1qVlanTranslate 3 } gDot1qVlanTranslateIngressEntry OBJECT-TYPE SYNTAX GDot1qVlanTranslateIngressEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a vlan translate ingress table entry." --入口vlan转换表的表项信息 INDEX { gDot1qVlanTranslateIngressPortId, gDot1qVlanTranslateIngressStartVlanId, gDot1qVlanTranslateIngressEndVlanId } ::= { gDot1qVlanTranslateIngressTable 1 } GDot1qVlanTranslateIngressEntry ::= SEQUENCE { gDot1qVlanTranslateIngressPortId INTEGER, gDot1qVlanTranslateIngressStartVlanId VlanId, gDot1qVlanTranslateIngressEndVlanId VlanId, gDot1qVlanTranslateIngressNewVlanId VlanId, gDot1qVlanTranslateIngressNewPriority INTEGER, gDot1qVlanTranslateIngressStatus RowStatus } gDot1qVlanTranslateIngressPortId OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "The ingress port of the packet." --报文的入端口 ::= { gDot1qVlanTranslateIngressEntry 1 } gDot1qVlanTranslateIngressStartVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-only STATUS current DESCRIPTION "The start vlan of the serial vlans we want to translate on the ingress port." --配置入口VLAN转换范围的起始VLAN ::= { gDot1qVlanTranslateIngressEntry 2 } gDot1qVlanTranslateIngressEndVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-only STATUS current DESCRIPTION "The end vlan of the serial vlans we want to translate on the ingress port." --配置入口VLAN转换范围的结束VLAN ::= { gDot1qVlanTranslateIngressEntry 3 } gDot1qVlanTranslateIngressNewVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-write STATUS current DESCRIPTION "The new vlan id to be assigned to the packet who match a vlan translate ingress table entry." --入口转换后的报文的新vlan id值 ::= { gDot1qVlanTranslateIngressEntry 4 } gDot1qVlanTranslateIngressNewPriority OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "The new priority to be assigned to the packet who match a vlan translate ingress table entry." --入口转换后的报文的新优先级 ::= { gDot1qVlanTranslateIngressEntry 5 } gDot1qVlanTranslateIngressStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Vlan translate ingress entry status." --入口vlan转换表项的状态 ::= { gDot1qVlanTranslateIngressEntry 6 } -- ------------------------------------------------------------- -- the current VLAN TRANSLATE EGRESS Table -- ------------------------------------------------------------- gDot1qVlanTranslateEgressTable OBJECT-TYPE SYNTAX SEQUENCE OF GDot1qVlanTranslateEgressEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table is used to translate the VLAN ID of an outgoing tagged packet to another VLAN ID based on the egress port and outgoing packet VLAN ID." --该表根据发送报文的vlan id和出端口转换报文的vlan id ::= { gDot1qVlanTranslate 4 } gDot1qVlanTranslateEgressEntry OBJECT-TYPE SYNTAX GDot1qVlanTranslateEgressEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a vlan translate egress table entry." --出口vlan转换表的表项信息 INDEX { gDot1qVlanTranslateEgressPortId, gDot1qVlanTranslateEgressStartVlanId, gDot1qVlanTranslateEgressEndVlanId } ::= { gDot1qVlanTranslateEgressTable 1 } GDot1qVlanTranslateEgressEntry ::= SEQUENCE { gDot1qVlanTranslateEgressPortId INTEGER, gDot1qVlanTranslateEgressStartVlanId VlanId, gDot1qVlanTranslateEgressEndVlanId VlanId, gDot1qVlanTranslateEgressNewVlanId VlanId, gDot1qVlanTranslateEgressNewPriority INTEGER, gDot1qVlanTranslateEgressStatus RowStatus } gDot1qVlanTranslateEgressPortId OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-only STATUS current DESCRIPTION "The egress port of the packet." --报文的出端口 ::= { gDot1qVlanTranslateEgressEntry 1 } gDot1qVlanTranslateEgressStartVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-only STATUS current DESCRIPTION "The start vlan of the serial vlans we want to translate on the egress port." --配置出口VLAN转换范围的起始VLAN ::= { gDot1qVlanTranslateEgressEntry 2 } gDot1qVlanTranslateEgressEndVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-only STATUS current DESCRIPTION "The end vlan of the serial vlans we want to translate on the egress port." --配置出口VLAN转换范围的结束VLAN ::= { gDot1qVlanTranslateEgressEntry 3 } gDot1qVlanTranslateEgressNewVlanId OBJECT-TYPE SYNTAX VlanId MAX-ACCESS read-write STATUS current DESCRIPTION "The new vlan id to be assigned to the packet who match a vlan translate egress table entry." --出口转换后的报文的新vlan id值 ::= { gDot1qVlanTranslateEgressEntry 4 } gDot1qVlanTranslateEgressNewPriority OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "The new priority to be assigned to the packet who match a vlan translate egress table entry." --出口转换后的报文的新优先级 ::= { gDot1qVlanTranslateEgressEntry 5 } gDot1qVlanTranslateEgressStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-write STATUS current DESCRIPTION "Vlan translate egress entry status." --出口vlan转换表项的状态 ::= { gDot1qVlanTranslateEgressEntry 6 } END