ipRouteMask
RFC1213-IPROUTE-MIB ·
.0.4.21.1.11
Object
Indicate the mask to be logical-ANDed with the
destination address before being compared to the value in the
ipRouteDest field. The BRICK is able to use arbitrary
subnet-masks. If the subnet mask is not specified, it will be
set automatically according to the following table:
0.0.0.0 default route
255.0.0.0 class-A
255.255.0.0 class-B
255.255.255.0 class-C
If the value of the ipRouteDest is 0.0.0.0 (a default
route) then the mask value is also 0.0.0.0. It should be
noted that all IP routing subsystems implicitly use this
mechanism. Host routes are created by setting the subnet
mask to 255.255.255.255.
Context
- MIB
- RFC1213-IPROUTE-MIB
- OID
.0.4.21.1.11- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- ipRouteEntry
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 'RFC1213-IPROUTE-MIB' -M '/opt/observium/mibs/bintec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'RFC1213-IPROUTE-MIB::ipRouteMask'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'RFC1213-IPROUTE-MIB' -M '/opt/observium/mibs/bintec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'RFC1213-IPROUTE-MIB::ipRouteMask.<ipRouteDest>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'RFC1213-IPROUTE-MIB' -M '/opt/observium/mibs/bintec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'RFC1213-IPROUTE-MIB::ipRouteMask'
Syntax
- Source
- RFC1155-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4