Blame mibs/INET-ADDRESS-MIB.txt

Packit fcad23
INET-ADDRESS-MIB DEFINITIONS ::= BEGIN
Packit fcad23
Packit fcad23
IMPORTS
Packit fcad23
    MODULE-IDENTITY, mib-2, Unsigned32 FROM SNMPv2-SMI
Packit fcad23
    TEXTUAL-CONVENTION                 FROM SNMPv2-TC;
Packit fcad23
Packit fcad23
inetAddressMIB MODULE-IDENTITY
Packit fcad23
    LAST-UPDATED "200502040000Z"
Packit fcad23
    ORGANIZATION
Packit fcad23
        "IETF Operations and Management Area"
Packit fcad23
    CONTACT-INFO
Packit fcad23
        "Juergen Schoenwaelder (Editor)
Packit fcad23
         International University Bremen
Packit fcad23
         P.O. Box 750 561
Packit fcad23
         28725 Bremen, Germany
Packit fcad23
Packit fcad23
         Phone: +49 421 200-3587
Packit fcad23
         EMail: j.schoenwaelder@iu-bremen.de
Packit fcad23
Packit fcad23
         Send comments to <ietfmibs@ops.ietf.org>."
Packit fcad23
    DESCRIPTION
Packit fcad23
        "This MIB module defines textual conventions for
Packit fcad23
         representing Internet addresses.  An Internet
Packit fcad23
         address can be an IPv4 address, an IPv6 address,
Packit fcad23
         or a DNS domain name.  This module also defines
Packit fcad23
         textual conventions for Internet port numbers,
Packit fcad23
         autonomous system numbers, and the length of an
Packit fcad23
         Internet address prefix.
Packit fcad23
Packit fcad23
         Copyright (C) The Internet Society (2005).  This version
Packit fcad23
         of this MIB module is part of RFC 4001, see the RFC
Packit fcad23
         itself for full legal notices."
Packit fcad23
    REVISION     "200502040000Z"
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Third version, published as RFC 4001.  This revision
Packit fcad23
         introduces the InetZoneIndex, InetScopeType, and
Packit fcad23
         InetVersion textual conventions."
Packit fcad23
    REVISION     "200205090000Z"
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Second version, published as RFC 3291.  This
Packit fcad23
         revision contains several clarifications and
Packit fcad23
         introduces several new textual conventions:
Packit fcad23
         InetAddressPrefixLength, InetPortNumber,
Packit fcad23
         InetAutonomousSystemNumber, InetAddressIPv4z,
Packit fcad23
         and InetAddressIPv6z."
Packit fcad23
    REVISION     "200006080000Z"
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Initial version, published as RFC 2851."
Packit fcad23
    ::= { mib-2 76 }
Packit fcad23
Packit fcad23
InetAddressType ::= TEXTUAL-CONVENTION
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "A value that represents a type of Internet address.
Packit fcad23
Packit fcad23
         unknown(0)  An unknown address type.  This value MUST
Packit fcad23
                     be used if the value of the corresponding
Packit fcad23
                     InetAddress object is a zero-length string.
Packit fcad23
                     It may also be used to indicate an IP address
Packit fcad23
                     that is not in one of the formats defined
Packit fcad23
                     below.
Packit fcad23
Packit fcad23
         ipv4(1)     An IPv4 address as defined by the
Packit fcad23
                     InetAddressIPv4 textual convention.
Packit fcad23
Packit fcad23
         ipv6(2)     An IPv6 address as defined by the
Packit fcad23
                     InetAddressIPv6 textual convention.
Packit fcad23
Packit fcad23
         ipv4z(3)    A non-global IPv4 address including a zone
Packit fcad23
                     index as defined by the InetAddressIPv4z
Packit fcad23
                     textual convention.
Packit fcad23
Packit fcad23
         ipv6z(4)    A non-global IPv6 address including a zone
Packit fcad23
                     index as defined by the InetAddressIPv6z
Packit fcad23
                     textual convention.
Packit fcad23
Packit fcad23
         dns(16)     A DNS domain name as defined by the
Packit fcad23
                     InetAddressDNS textual convention.
Packit fcad23
Packit fcad23
         Each definition of a concrete InetAddressType value must be
Packit fcad23
         accompanied by a definition of a textual convention for use
Packit fcad23
         with that InetAddressType.
Packit fcad23
Packit fcad23
         To support future extensions, the InetAddressType textual
Packit fcad23
         convention SHOULD NOT be sub-typed in object type definitions.
Packit fcad23
         It MAY be sub-typed in compliance statements in order to
Packit fcad23
         require only a subset of these address types for a compliant
Packit fcad23
         implementation.
Packit fcad23
Packit fcad23
         Implementations must ensure that InetAddressType objects
Packit fcad23
         and any dependent objects (e.g., InetAddress objects) are
Packit fcad23
         consistent.  An inconsistentValue error must be generated
Packit fcad23
         if an attempt to change an InetAddressType object would,
Packit fcad23
         for example, lead to an undefined InetAddress value.  In
Packit fcad23
Packit fcad23
         particular, InetAddressType/InetAddress pairs must be
Packit fcad23
         changed together if the address type changes (e.g., from
Packit fcad23
         ipv6(2) to ipv4(1))."
Packit fcad23
    SYNTAX       INTEGER {
Packit fcad23
                     unknown(0),
Packit fcad23
                     ipv4(1),
Packit fcad23
                     ipv6(2),
Packit fcad23
                     ipv4z(3),
Packit fcad23
                     ipv6z(4),
Packit fcad23
                     dns(16)
Packit fcad23
                 }
Packit fcad23
Packit fcad23
InetAddress ::= TEXTUAL-CONVENTION
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Denotes a generic Internet address.
Packit fcad23
Packit fcad23
         An InetAddress value is always interpreted within the context
Packit fcad23
         of an InetAddressType value.  Every usage of the InetAddress
Packit fcad23
         textual convention is required to specify the InetAddressType
Packit fcad23
         object that provides the context.  It is suggested that the
Packit fcad23
         InetAddressType object be logically registered before the
Packit fcad23
         object(s) that use the InetAddress textual convention, if
Packit fcad23
         they appear in the same logical row.
Packit fcad23
Packit fcad23
         The value of an InetAddress object must always be
Packit fcad23
         consistent with the value of the associated InetAddressType
Packit fcad23
         object.  Attempts to set an InetAddress object to a value
Packit fcad23
         inconsistent with the associated InetAddressType
Packit fcad23
         must fail with an inconsistentValue error.
Packit fcad23
Packit fcad23
         When this textual convention is used as the syntax of an
Packit fcad23
         index object, there may be issues with the limit of 128
Packit fcad23
         sub-identifiers specified in SMIv2, STD 58.  In this case,
Packit fcad23
         the object definition MUST include a 'SIZE' clause to
Packit fcad23
         limit the number of potential instance sub-identifiers;
Packit fcad23
         otherwise the applicable constraints MUST be stated in
Packit fcad23
         the appropriate conceptual row DESCRIPTION clauses, or
Packit fcad23
         in the surrounding documentation if there is no single
Packit fcad23
         DESCRIPTION clause that is appropriate."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (0..255))
Packit fcad23
Packit fcad23
InetAddressIPv4 ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "1d.1d.1d.1d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents an IPv4 network address:
Packit fcad23
Packit fcad23
           Octets   Contents         Encoding
Packit fcad23
            1-4     IPv4 address     network-byte order
Packit fcad23
Packit fcad23
         The corresponding InetAddressType value is ipv4(1).
Packit fcad23
Packit fcad23
         This textual convention SHOULD NOT be used directly in object
Packit fcad23
         definitions, as it restricts addresses to a specific format.
Packit fcad23
         However, if it is used, it MAY be used either on its own or in
Packit fcad23
         conjunction with InetAddressType, as a pair."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (4))
Packit fcad23
Packit fcad23
InetAddressIPv6 ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "2x:2x:2x:2x:2x:2x:2x:2x"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents an IPv6 network address:
Packit fcad23
Packit fcad23
           Octets   Contents         Encoding
Packit fcad23
            1-16    IPv6 address     network-byte order
Packit fcad23
Packit fcad23
         The corresponding InetAddressType value is ipv6(2).
Packit fcad23
Packit fcad23
         This textual convention SHOULD NOT be used directly in object
Packit fcad23
         definitions, as it restricts addresses to a specific format.
Packit fcad23
         However, if it is used, it MAY be used either on its own or in
Packit fcad23
         conjunction with InetAddressType, as a pair."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (16))
Packit fcad23
Packit fcad23
InetAddressIPv4z ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "1d.1d.1d.1d%4d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents a non-global IPv4 network address, together
Packit fcad23
         with its zone index:
Packit fcad23
Packit fcad23
           Octets   Contents         Encoding
Packit fcad23
            1-4     IPv4 address     network-byte order
Packit fcad23
            5-8     zone index       network-byte order
Packit fcad23
Packit fcad23
         The corresponding InetAddressType value is ipv4z(3).
Packit fcad23
Packit fcad23
         The zone index (bytes 5-8) is used to disambiguate identical
Packit fcad23
         address values on nodes that have interfaces attached to
Packit fcad23
         different zones of the same scope.  The zone index may contain
Packit fcad23
         the special value 0, which refers to the default zone for each
Packit fcad23
         scope.
Packit fcad23
Packit fcad23
         This textual convention SHOULD NOT be used directly in object
Packit fcad23
Packit fcad23
         definitions, as it restricts addresses to a specific format.
Packit fcad23
         However, if it is used, it MAY be used either on its own or in
Packit fcad23
         conjunction with InetAddressType, as a pair."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (8))
Packit fcad23
Packit fcad23
InetAddressIPv6z ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "2x:2x:2x:2x:2x:2x:2x:2x%4d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents a non-global IPv6 network address, together
Packit fcad23
         with its zone index:
Packit fcad23
Packit fcad23
           Octets   Contents         Encoding
Packit fcad23
            1-16    IPv6 address     network-byte order
Packit fcad23
           17-20    zone index       network-byte order
Packit fcad23
Packit fcad23
         The corresponding InetAddressType value is ipv6z(4).
Packit fcad23
Packit fcad23
         The zone index (bytes 17-20) is used to disambiguate
Packit fcad23
         identical address values on nodes that have interfaces
Packit fcad23
         attached to different zones of the same scope.  The zone index
Packit fcad23
         may contain the special value 0, which refers to the default
Packit fcad23
         zone for each scope.
Packit fcad23
Packit fcad23
         This textual convention SHOULD NOT be used directly in object
Packit fcad23
         definitions, as it restricts addresses to a specific format.
Packit fcad23
         However, if it is used, it MAY be used either on its own or in
Packit fcad23
         conjunction with InetAddressType, as a pair."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (20))
Packit fcad23
Packit fcad23
InetAddressDNS ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "255a"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents a DNS domain name.  The name SHOULD be fully
Packit fcad23
         qualified whenever possible.
Packit fcad23
Packit fcad23
         The corresponding InetAddressType is dns(16).
Packit fcad23
Packit fcad23
         The DESCRIPTION clause of InetAddress objects that may have
Packit fcad23
         InetAddressDNS values MUST fully describe how (and when)
Packit fcad23
         these names are to be resolved to IP addresses.
Packit fcad23
Packit fcad23
         The resolution of an InetAddressDNS value may require to
Packit fcad23
         query multiple DNS records (e.g., A for IPv4 and AAAA for
Packit fcad23
         IPv6).  The order of the resolution process and which DNS
Packit fcad23
         record takes precedence depends on the configuration of the
Packit fcad23
         resolver.
Packit fcad23
Packit fcad23
         This textual convention SHOULD NOT be used directly in object
Packit fcad23
         definitions, as it restricts addresses to a specific format.
Packit fcad23
         However, if it is used, it MAY be used either on its own or in
Packit fcad23
         conjunction with InetAddressType, as a pair."
Packit fcad23
    SYNTAX       OCTET STRING (SIZE (1..255))
Packit fcad23
Packit fcad23
InetAddressPrefixLength ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Denotes the length of a generic Internet network address
Packit fcad23
         prefix.  A value of n corresponds to an IP address mask
Packit fcad23
         that has n contiguous 1-bits from the most significant
Packit fcad23
         bit (MSB), with all other bits set to 0.
Packit fcad23
Packit fcad23
         An InetAddressPrefixLength value is always interpreted within
Packit fcad23
         the context of an InetAddressType value.  Every usage of the
Packit fcad23
         InetAddressPrefixLength textual convention is required to
Packit fcad23
         specify the InetAddressType object that provides the
Packit fcad23
         context.  It is suggested that the InetAddressType object be
Packit fcad23
         logically registered before the object(s) that use the
Packit fcad23
         InetAddressPrefixLength textual convention, if they appear
Packit fcad23
         in the same logical row.
Packit fcad23
Packit fcad23
         InetAddressPrefixLength values larger than
Packit fcad23
         the maximum length of an IP address for a specific
Packit fcad23
         InetAddressType are treated as the maximum significant
Packit fcad23
         value applicable for the InetAddressType.  The maximum
Packit fcad23
         significant value is 32 for the InetAddressType
Packit fcad23
         'ipv4(1)' and 'ipv4z(3)' and 128 for the InetAddressType
Packit fcad23
         'ipv6(2)' and 'ipv6z(4)'.  The maximum significant value
Packit fcad23
         for the InetAddressType 'dns(16)' is 0.
Packit fcad23
Packit fcad23
         The value zero is object-specific and must be defined as
Packit fcad23
         part of the description of any object that uses this
Packit fcad23
         syntax.  Examples of the usage of zero might include
Packit fcad23
         situations where the Internet network address prefix
Packit fcad23
         is unknown or does not apply.
Packit fcad23
Packit fcad23
         The upper bound of the prefix length has been chosen to
Packit fcad23
         be consistent with the maximum size of an InetAddress."
Packit fcad23
    SYNTAX       Unsigned32 (0..2040)
Packit fcad23
Packit fcad23
InetPortNumber ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents a 16 bit port number of an Internet transport
Packit fcad23
Packit fcad23
         layer protocol.  Port numbers are assigned by IANA.  A
Packit fcad23
         current list of all assignments is available from
Packit fcad23
         <http://www.iana.org/>.
Packit fcad23
Packit fcad23
         The value zero is object-specific and must be defined as
Packit fcad23
         part of the description of any object that uses this
Packit fcad23
         syntax.  Examples of the usage of zero might include
Packit fcad23
         situations where a port number is unknown, or when the
Packit fcad23
         value zero is used as a wildcard in a filter."
Packit fcad23
    REFERENCE   "STD 6 (RFC 768), STD 7 (RFC 793) and RFC 2960"
Packit fcad23
    SYNTAX       Unsigned32 (0..65535)
Packit fcad23
Packit fcad23
InetAutonomousSystemNumber ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents an autonomous system number that identifies an
Packit fcad23
         Autonomous System (AS).  An AS is a set of routers under a
Packit fcad23
         single technical administration, using an interior gateway
Packit fcad23
         protocol and common metrics to route packets within the AS,
Packit fcad23
         and using an exterior gateway protocol to route packets to
Packit fcad23
         other ASes'.  IANA maintains the AS number space and has
Packit fcad23
         delegated large parts to the regional registries.
Packit fcad23
Packit fcad23
         Autonomous system numbers are currently limited to 16 bits
Packit fcad23
         (0..65535).  There is, however, work in progress to enlarge the
Packit fcad23
         autonomous system number space to 32 bits.  Therefore, this
Packit fcad23
         textual convention uses an Unsigned32 value without a
Packit fcad23
         range restriction in order to support a larger autonomous
Packit fcad23
         system number space."
Packit fcad23
    REFERENCE   "RFC 1771, RFC 1930"
Packit fcad23
    SYNTAX       Unsigned32
Packit fcad23
Packit fcad23
InetScopeType ::= TEXTUAL-CONVENTION
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "Represents a scope type.  This textual convention can be used
Packit fcad23
         in cases where a MIB has to represent different scope types
Packit fcad23
         and there is no context information, such as an InetAddress
Packit fcad23
         object, that implicitly defines the scope type.
Packit fcad23
Packit fcad23
         Note that not all possible values have been assigned yet, but
Packit fcad23
         they may be assigned in future revisions of this specification.
Packit fcad23
         Applications should therefore be able to deal with values
Packit fcad23
         not yet assigned."
Packit fcad23
    REFERENCE   "RFC 3513"
Packit fcad23
    SYNTAX       INTEGER {
Packit fcad23
                     -- reserved(0),
Packit fcad23
                     interfaceLocal(1),
Packit fcad23
                     linkLocal(2),
Packit fcad23
                     subnetLocal(3),
Packit fcad23
                     adminLocal(4),
Packit fcad23
                     siteLocal(5), -- site-local unicast addresses
Packit fcad23
                                   -- have been deprecated by RFC 3879
Packit fcad23
                     -- unassigned(6),
Packit fcad23
                     -- unassigned(7),
Packit fcad23
                     organizationLocal(8),
Packit fcad23
                     -- unassigned(9),
Packit fcad23
                     -- unassigned(10),
Packit fcad23
                     -- unassigned(11),
Packit fcad23
                     -- unassigned(12),
Packit fcad23
                     -- unassigned(13),
Packit fcad23
                     global(14)
Packit fcad23
                     -- reserved(15)
Packit fcad23
                 }
Packit fcad23
Packit fcad23
InetZoneIndex ::= TEXTUAL-CONVENTION
Packit fcad23
    DISPLAY-HINT "d"
Packit fcad23
    STATUS       current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "A zone index identifies an instance of a zone of a
Packit fcad23
         specific scope.
Packit fcad23
Packit fcad23
         The zone index MUST disambiguate identical address
Packit fcad23
         values.  For link-local addresses, the zone index will
Packit fcad23
         typically be the interface index (ifIndex as defined in the
Packit fcad23
         IF-MIB) of the interface on which the address is configured.
Packit fcad23
Packit fcad23
         The zone index may contain the special value 0, which refers
Packit fcad23
         to the default zone.  The default zone may be used in cases
Packit fcad23
         where the valid zone index is not known (e.g., when a
Packit fcad23
         management application has to write a link-local IPv6
Packit fcad23
         address without knowing the interface index value).  The
Packit fcad23
         default zone SHOULD NOT be used as an easy way out in
Packit fcad23
         cases where the zone index for a non-global IPv6 address
Packit fcad23
         is known."
Packit fcad23
    REFERENCE   "RFC4007"
Packit fcad23
    SYNTAX       Unsigned32
Packit fcad23
Packit fcad23
InetVersion ::= TEXTUAL-CONVENTION
Packit fcad23
    STATUS  current
Packit fcad23
    DESCRIPTION
Packit fcad23
        "A value representing a version of the IP protocol.
Packit fcad23
Packit fcad23
         unknown(0)  An unknown or unspecified version of the IP
Packit fcad23
                     protocol.
Packit fcad23
Packit fcad23
         ipv4(1)     The IPv4 protocol as defined in RFC 791 (STD 5).
Packit fcad23
Packit fcad23
         ipv6(2)     The IPv6 protocol as defined in RFC 2460.
Packit fcad23
Packit fcad23
         Note that this textual convention SHOULD NOT be used to
Packit fcad23
         distinguish different address types associated with IP
Packit fcad23
         protocols.  The InetAddressType has been designed for this
Packit fcad23
         purpose."
Packit fcad23
    REFERENCE   "RFC 791, RFC 2460"
Packit fcad23
    SYNTAX       INTEGER {
Packit fcad23
                     unknown(0),
Packit fcad23
                     ipv4(1),
Packit fcad23
                     ipv6(2)
Packit fcad23
                 }
Packit fcad23
END