hwVlanForwarding
HUAWEI-VLAN-MIB ·
.1.3.6.1.4.1.2011.5.6.1.1.1.16
Object
column r/w
Enumeration
Indicates the VLAN forwarding policy.
Options:
1. vlanMac(1) -indicates forwarding based on the VLAN+MAC.
2. vlanConnect(2) -indicates forwarding based on the SVLAN+CVLAN.
During the creation of a VLAN, if this leaf is not specified,
vlanMac(1) is adopted by default. You can perform the set
operation on this leaf to modify the VLAN forwarding policy.
The VLAN forwarding policy can also be configured in
hwForwardingMode of hwVlanSrvProfTable. If a VLAN service profile
is bound to the VLAN, the configuration in the VLAN service profile
takes effect.
Context
- MIB
- HUAWEI-VLAN-MIB
- OID
.1.3.6.1.4.1.2011.5.6.1.1.1.16- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwVlanMIBEntry
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 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanForwarding'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanForwarding.<hwVlanIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-VLAN-MIB::hwVlanForwarding'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | vlanMac |
2 | vlanConnect |