hwDhcpRelayInterfaceSrcip
HUAWEI-DHCP-PROXY-MIB ·
.1.3.6.1.4.1.2011.5.18.1.34
Object
scalar r/w
Enumeration
Configures or queries the filling mode of the source IP address of the current DHCP-relay upstream packet.
Options:
1. receive(1) -indicates that in the DHCP packet sent from the relay to the server,
the source IP address is set to the IP address of the Rx interface (user-side interface).
2. send(2) -indicates that in the DHCP packet sent from the relay to the server,
the source IP address is set to the IP address of the Tx interface (network-side interface).
Default: receive(1)
Context
- MIB
- HUAWEI-DHCP-PROXY-MIB
- OID
.1.3.6.1.4.1.2011.5.18.1.34- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- hwDhcpMibObject
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-DHCP-PROXY-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-DHCP-PROXY-MIB::hwDhcpRelayInterfaceSrcip.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-DHCP-PROXY-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-DHCP-PROXY-MIB::hwDhcpRelayInterfaceSrcip'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | receive |
2 | send |