hwDhcpMode

HUAWEI-VLAN-MIB · .1.3.6.1.4.1.2011.5.6.1.25.1.9

Object

column r/w Enumeration
Indicates the VLAN-based DHCP L2/L3 mode switch.
Options:
1. notConfig(1)  -indicates that if the VLAN configuration exists, 
                  the VLAN configuration takes effect. 
                  Otherwise, the configuration in global mode takes effect.
2. layer2(2)     -indicates the DHCP L2 forwarding mode.
                  In this mode, the device only transparently transmits
                  packets and does not process the packets.
3. l3Standard(3) -indicates the standard mode of the DHCP L3
                  forwarding mode. In this mode, packets select the
                  DHCP server through the VLAN L3 interface that is
                  used for forwarding the DHCP packets.
4. l3Option60(4) -indicates the DHCP option 60 mode of the DHCP L3
                  forwarding mode. In this mode, packets select the
                  DHCP server according to the option 60 field.
                  Option 60 is an option with code 60 in the DHCP packet.
                  It can identify the terminal type. That is, packets can
                  select the DHCP server according to terminal types.
5. l3MacRange(5) -indicates the MAC address segment mode of the DHCP L3
                  forwarding mode. In this mode, packets select the DHCP
                  server according to the MAC address segment to which
                  the source MAC address of the DHCP packets belong.
This leaf is optional for creating a VLAN service profile.
The DHCP L2/L3 mode in the global mode can also be set in hwDhcpRelayMode
and hwDhcpServerSelectMode of HUAWEI-DHCP-Proxy-MIB. The DHCP L2/L3 mode
at the VLAN level can also be set in hwDhcpServerSelectModeByVlanTable.
If a VLAN service profile is bound to the VLAN, the configuration in the
VLAN service profile takes effect. The global DHCP L2/L3 mode, however,
is not changed.
If no VLAN service profile is bound to the VLAN, but hwDhcpServerSelectModeByVlanTable
is configured, the configuration of hwDhcpServerSelectModeByVlanTable takes effect;
if hwDhcpServerSelectModeByVlanTable is not configured, the configuration
in the global mode takes effect.

Context

MIB
HUAWEI-VLAN-MIB
OID
.1.3.6.1.4.1.2011.5.6.1.25.1.9
Type
column
Access
readwrite
Status
current
Parent
hwVlanSrvProfEntry

Walk 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::hwDhcpMode'
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::hwDhcpMode.<hwVlanSrvProfName>'
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::hwDhcpMode'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1notConfig
2layer2
3l3Standard
4l3Option60
5l3MacRange