netMgmtDefaultGateway
STAND-ALONE-ETHERNET-SWITCH-MIB ·
.1.3.6.1.4.1.437.1.1.3.4.3
Object
The default gateway IP address is the address of the next
hop router the switch uses to reach a non-local IP
host when the switch does not know the return route. During
a normal management protocol exchange with an IP client
host, the switch simply sends its response onto the same
route from which the request was received. The default
gateway route is only used when the switch itself
initiates an exchange, e.g., a TFTP upgrade, with the client.
The default gateway IP address is global to all VLANs,
which is unlike the unique per-VLAN management IP address
and subnet mask.
A write to this object will take effect immediately,
replacing the previous address, if any. The default is
0.0.0.0, or no address.
Context
- MIB
- STAND-ALONE-ETHERNET-SWITCH-MIB
- OID
.1.3.6.1.4.1.437.1.1.3.4.3- Type
- scalar
- Access
- readwrite
- Status
- mandatory
- Parent
- netMgmt
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 'STAND-ALONE-ETHERNET-SWITCH-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'STAND-ALONE-ETHERNET-SWITCH-MIB::netMgmtDefaultGateway.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'STAND-ALONE-ETHERNET-SWITCH-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'STAND-ALONE-ETHERNET-SWITCH-MIB::netMgmtDefaultGateway'
Syntax
- Source
- RFC1155-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4