Blame mibs/ietf/INET-ADDRESS-MIB

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