ipDefaultRouterPreference
IP-MIB ·
.1.3.6.1.2.1.4.37.1.5
Object
column Enumeration
An indication of preference given to this router as a
default router as described in he Default Router
Preferences document. Treating the value as a
2 bit signed integer allows for simple arithmetic
comparisons.
For IPv4 routers or IPv6 routers that are not using the
updated router advertisement format, this object is set to
medium (0).
Context
- MIB
- IP-MIB
- OID
.1.3.6.1.2.1.4.37.1.5- Type
- column
- Access
- readonly
- Status
- current
- Parent
- ipDefaultRouterEntry
- Groups
- 1
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 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipDefaultRouterPreference'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipDefaultRouterPreference.<ipDefaultRouterAddressType>.<ipDefaultRouterAddress>.<ipDefaultRouterIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IP-MIB::ipDefaultRouterPreference'
Syntax
Enumeration
Values & Constraints
Enumerated Values
-2 | reserved |
-1 | low |
0 | medium |
1 | high |
Conformance
Member of