1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893
  
     | 
    
      <pre>Network Working Group                                        M. Daniele
Request for Comments: 2851                  Compaq Computer Corporation
Category: Standards Track                                   B. Haberman
                                                        Nortel Networks
                                                            S. Routhier
                                               Wind River Systems, Inc.
                                                       J. Schoenwaelder
                                                        TU Braunschweig
                                                              June 2000
           <span class="h1">Textual Conventions for Internet Network Addresses</span>
Status of this Memo
   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.
Copyright Notice
   Copyright (C) The Internet Society (2000).  All Rights Reserved.
Abstract
   This MIB module defines textual conventions to represent commonly
   used Internet network layer addressing information. The intent is
   that these definitions will be imported and used in MIBs that would
   otherwise define their own representations.
   This work is output from the Operations and Management Area "IPv6MIB"
   design team.
Table of Contents
   <a href="#section-1">1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-2">2</a>
   <a href="#section-2">2</a>.  The SNMP Management Framework  . . . . . . . . . . . . . . .  <a href="#page-3">3</a>
   <a href="#section-3">3</a>.  Definitions  . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-4">4</a>
   <a href="#section-4">4</a>.  Usage Hints  . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-8">8</a>
   <a href="#section-4.1">4.1</a> Table Indexing . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-8">8</a>
   <a href="#section-4.2">4.2</a> Uniqueness of Addresses  . . . . . . . . . . . . . . . . . .  <a href="#page-9">9</a>
   <a href="#section-4.3">4.3</a> Multiple InetAddresses per Host  . . . . . . . . . . . . . .  <a href="#page-9">9</a>
   <a href="#section-4.4">4.4</a> Resolving DNS Names  . . . . . . . . . . . . . . . . . . . .  <a href="#page-9">9</a>
   <a href="#section-5">5</a>.  Table Indexing Example . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
   <a href="#section-6">6</a>.  Security Considerations  . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
   <a href="#section-7">7</a>.  Acknowledgments  . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<span class="grey">Daniele, et al.             Standards Track                     [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   <a href="#section-8">8</a>.  Intellectual Property Notice . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
       References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
       Authors' Addresses . . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
       Full Copyright Statement . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
   Several standard-track MIB modules use the IpAddress SMIv2 base type.
   This limits the applicability of these MIB modules to IP Version 4
   (IPv4) since the IpAddress SMIv2 base type can only contain 4 byte
   IPv4 addresses. The IpAddress SMIv2 base type has become problematic
   with the introduction of IP Version 6 (IPv6) addresses [<a href="#ref-21" title=""IP Version 6 Addressing Architecture"">21</a>].
   This document defines multiple textual conventions as a mechanism to
   express generic Internet network layer addresses within MIB module
   specifications. The solution is compatible with SMIv2 (STD 58) and
   SMIv1 (STD 16). New MIB definitions which need to express network
   layer Internet addresses SHOULD use the textual conventions defined
   in this memo. New MIBs SHOULD NOT use the SMIv2 IpAddress base type
   anymore.
   A generic Internet address consists of two objects, one whose syntax
   is InetAddressType, and another whose syntax is InetAddress. The
   value of the first object determines how the value of the second
   object is encoded. The InetAddress textual convention represents an
   opaque Internet address value. The InetAddressType enumeration is
   used to "cast" the InetAddress value into a concrete textual
   convention for the address type. This usage of multiple textual
   conventions allows expression of the display characteristics of each
   address type and makes the set of defined Internet address types
   extensible.
   The textual conventions defined in this document can be used to
   define Internet addresses by using DNS domain names in addition to
   IPv4 and IPv6 addresses. A MIB designer can write compliance
   statements to express that only a subset of the possible address
   types must be supported by a compliant implementation.
   MIB developers who need to represent Internet addresses SHOULD use
   these definitions whenever applicable, as opposed to defining their
   own constructs. Even MIBs that only need to represent IPv4 or IPv6
   addresses SHOULD use the textual conventions defined in this memo.
   In order to make existing widely-deployed IPv4-only MIBs fit for
   IPv6, it might be a valid approach to define separate tables for
   different address types. This is a decision for the MIB designer.
   For example, the tcpConnTable of the TCP-MIB [<a href="#ref-18" title=""SNMPv2 Management Information Base for the Transmission Control Protocol using SMIv2"">18</a>] was left intact
<span class="grey">Daniele, et al.             Standards Track                     [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   and a new table was added for TCP connections over IPv6 in the IPV6-
   TCP-MIB [<a href="#ref-19" title=""IP Version 6 Management Information Base for the Transmission Control Protocol"">19</a>]. Note that even in this case, the MIBs SHOULD use the
   textual conventions defined in this memo.
   Note that MIB developers SHOULD NOT use the textual conventions
   defined in this document to represent transport layer addresses.
   Instead the SMIv2 TAddress textual convention and associated
   definitions should be used for transport layer addresses.
   The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT" and "MAY" in
   this document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-1" title=""Key words for use in RFCs to Indicate Requirement Levels"">1</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. The SNMP Management Framework</span>
   The SNMP Management Framework presently consists of five major
   components:
   o  An overall architecture, described in <a href="./rfc2571">RFC 2571</a> [<a href="#ref-2" title=""An Architecture for Describing SNMP Management Frameworks"">2</a>].
   o  Mechanisms for describing and naming objects and events for the
      purpose of management. The first version of this Structure of
      Management Information (SMI) is called SMIv1 and described in STD
      16, <a href="./rfc1155">RFC 1155</a> [<a href="#ref-3" title=""Structure and Identification of Management Information for TCP/IP-based Internets"">3</a>], STD 16, <a href="./rfc1212">RFC 1212</a> [<a href="#ref-4" title=""Concise MIB Definitions"">4</a>] and <a href="./rfc1215">RFC 1215</a> [<a href="#ref-5" title=""A Convention for Defining Traps for use with the SNMP"">5</a>]. The
      second version, called SMIv2, is described in STD 58, <a href="./rfc2578">RFC 2578</a>
      [<a href="#ref-6" title=""Structure of Management Information Version 2 (SMIv2)"">6</a>], STD 58, <a href="./rfc2579">RFC 2579</a> [<a href="#ref-7" title=""Textual Conventions for SMIv2"">7</a>] and STD 58, <a href="./rfc2580">RFC 2580</a> [<a href="#ref-8" title=""Conformance Statements for SMIv2"">8</a>].
   o  Message protocols for transferring management information. The
      first version of the SNMP message protocol is called SNMPv1 and
      described in STD 15, <a href="./rfc1157">RFC 1157</a> [<a href="#ref-9" title=""A Simple Network Management Protocol (SNMP)"">9</a>]. A second version of the SNMP
      message protocol, which is not an Internet standards track
      protocol, is called SNMPv2c and described in <a href="./rfc1901">RFC 1901</a> [<a href="#ref-10" title=""Introduction to Community-based SNMPv2"">10</a>] and <a href="./rfc1906">RFC</a>
      <a href="./rfc1906">1906</a> [<a href="#ref-11" title=""Transport Mappings for Version 2 of the Simple Network Management Protocol (SNMPv2)"">11</a>]. The third version of the message protocol is called
      SNMPv3 and described in <a href="./rfc1906">RFC 1906</a> [<a href="#ref-11" title=""Transport Mappings for Version 2 of the Simple Network Management Protocol (SNMPv2)"">11</a>], <a href="./rfc2572">RFC 2572</a> [<a href="#ref-12" title=""Message Processing and Dispatching for the Simple Network Management Protocol (SNMP)"">12</a>] and <a href="./rfc2574">RFC 2574</a>
      [<a href="#ref-13" title=""User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3)"">13</a>].
   o  Protocol operations for accessing management information. The
      first set of protocol operations and associated PDU formats is
      described in STD 15, <a href="./rfc1157">RFC 1157</a> [<a href="#ref-9" title=""A Simple Network Management Protocol (SNMP)"">9</a>]. A second set of protocol
      operations and associated PDU formats is described in <a href="./rfc1905">RFC 1905</a>
      [<a href="#ref-14" title=""Protocol Operations for Version 2 of the Simple Network Management Protocol (SNMPv2)"">14</a>].
   o  A set of fundamental applications described in <a href="./rfc2573">RFC 2573</a> [<a href="#ref-15" title=""SNMP Applications"">15</a>] and
      the view-based access control mechanism described in <a href="./rfc2575">RFC 2575</a>
      [<a href="#ref-16" title=""View-based Access Control Model (VACM) for the Simple Network Management Protocol (SNMP)"">16</a>].
   A more detailed introduction to the current SNMP Management Framework
   can be found in <a href="./rfc2570">RFC 2570</a> [<a href="#ref-17" title=""Introduction to Version 3 of the Internet-standard Network Management Framework"">17</a>].
   Managed objects are accessed via a virtual information store, termed
   the Management Information Base or MIB. Objects in the MIB are
   defined using the mechanisms defined in the SMI.
<span class="grey">Daniele, et al.             Standards Track                     [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   This memo specifies a MIB module that is compliant to the SMIv2. A
   MIB conforming to the SMIv1 can be produced through the appropriate
   translations. The resulting translated MIB must be semantically
   equivalent, except where objects or events are omitted because no
   translation is possible (use of Counter64). Some machine readable
   information in SMIv2 will be converted into textual descriptions in
   SMIv1 during the translation process. However, this loss of machine
   readable information is not considered to change the semantics of the
   MIB.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Definitions</span>
   INET-ADDRESS-MIB DEFINITIONS ::= BEGIN
   IMPORTS
     MODULE-IDENTITY, mib-2 FROM SNMPv2-SMI
     TEXTUAL-CONVENTION     FROM SNMPv2-TC;
   inetAddressMIB MODULE-IDENTITY
     LAST-UPDATED "200006080000Z"
     ORGANIZATION
         "IETF Operations and Management Area"
     CONTACT-INFO
         "Mike Daniele
          Compaq Computer Corporation
          110 Spit Brook Rd
          Nashua, NH  03062, USA
          Phone: +1 603 884-1423
          EMail: daniele@zk3.dec.com
          Brian Haberman
          Nortel Networks
          4039 Emperor Blvd., Suite 200
          Durham, NC  27703, USA
          Phone: +1 919 992-4439
          EMail: haberman@nortelnetworks.com
          Shawn A. Routhier
          Wind River Systems, Inc.
          1 Tara Blvd, Suite 403
          Nashua, NH  03062, USA
          Phone: +1 603 897-2000
          EMail: sar@epilogue.com
<span class="grey">Daniele, et al.             Standards Track                     [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
          Juergen Schoenwaelder
          TU Braunschweig
          Bueltenweg 74/75
          38106 Braunschweig, Germany
          Phone: +49 531 391-3289
          EMail: schoenw@ibr.cs.tu-bs.de
          Send comments to mibs@ops.ietf.org."
   DESCRIPTION
     "This MIB module defines textual conventions for
      representing Internet addresses. An Internet
      address can be an IPv4 address, an IPv6 address
      or a DNS domain name."
   REVISION     "200006080000Z"
   DESCRIPTION
       "Initial version, published as <a href="./rfc2851">RFC 2851</a>."
   ::= { mib-2 76 }
   InetAddressType ::= TEXTUAL-CONVENTION
     STATUS      current
     DESCRIPTION
         "A value that represents a type of Internet address.
          unknown(0)  An unknown address type. This value MUST
                      be used if the value of the corresponding
                      InetAddress object is a zero-length string.
                      It may also be used to indicate an IP address
                      which is not in one of the formats defined
                      below.
          ipv4(1)     An IPv4 address as defined by the
                      InetAddressIPv4 textual convention.
          ipv6(2)     An IPv6 address as defined by the
                      InetAddressIPv6 textual convention.
          dns(16)     A DNS domain name as defined by the
                      InetAddressDNS textual convention.
          Each definition of a concrete InetAddressType value must be
          accompanied by a definition of a textual convention for use
          with that InetAddressType.
          The InetAddressType textual convention SHOULD NOT be subtyped
          in object type definitions to support future extensions. It
<span class="grey">Daniele, et al.             Standards Track                     [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
          MAY be subtyped in compliance statements in order to require
          only a subset of these address types for a compliant
          implementation."
     SYNTAX      INTEGER {
                     unknown(0),
                     ipv4(1),    -- these named numbers are aligned
                     ipv6(2),    -- with AddressFamilyNumbers from
                     dns(16)     -- IANA-ADDRESS-FAMILY-NUMBERS-MIB
                 }
   InetAddress ::= TEXTUAL-CONVENTION
     STATUS       current
     DESCRIPTION
         "Denotes a generic Internet address.
          An InetAddress value is always interpreted within the
          context of an InetAddressType value. The InetAddressType
          object which defines the context must be registered
          immediately before the object which uses the InetAddress
          textual convention. In other words, the object identifiers
          for the InetAddressType object and the InetAddress object
          MUST have the same length and the last sub-identifier of
          the InetAddressType object MUST be 1 less than the last
          sub-identifier of the InetAddress object.
          When this textual convention is used as the syntax of an
          index object, there may be issues with the limit of 128
          sub-identifiers specified in SMIv2, STD 58. In this case,
          the OBJECT-TYPE declaration MUST include a 'SIZE' clause
          to limit the number of potential instance sub-identifiers."
     SYNTAX      OCTET STRING (SIZE (0..255))
   InetAddressIPv4 ::= TEXTUAL-CONVENTION
     DISPLAY-HINT "1d.1d.1d.1d"
     STATUS       current
     DESCRIPTION
         "Represents an IPv4 network address:
            octets   contents         encoding
             1-4     IP address       network-byte order
          The corresponding InetAddressType value is ipv4(1)."
     SYNTAX       OCTET STRING (SIZE (4))
   InetAddressIPv6 ::= TEXTUAL-CONVENTION
     DISPLAY-HINT "2x:2x:2x:2x:2x:2x:2x:2x%4d"
     STATUS       current
     DESCRIPTION
<span class="grey">Daniele, et al.             Standards Track                     [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
         "Represents an IPv6 network address:
            octets   contents         encoding
             1-16    IPv6 address     network-byte order
            17-20    scope identifier network-byte order
          The corresponding InetAddressType value is ipv6(2).
          The scope identifier (bytes 17-20) MUST NOT be present
          for global IPv6 addresses. For non-global IPv6 addresses
          (e.g. link-local or site-local addresses), the scope
          identifier MUST always be present. It contains a link
          identifier for link-local and a site identifier for
          site-local IPv6 addresses.
          The scope identifier MUST disambiguate identical address
          values. For link-local addresses, the scope identifier will
          typically be the interface index (ifIndex as defined in the
          IF-MIB, <a href="./rfc2233">RFC 2233</a>) of the interface on which the address is
          configured.
          The scope identifier may contain the special value 0
          which refers to the default scope. The default scope
          may be used in cases where the valid scope identifier
          is not known (e.g., a management application needs to
          write a site-local InetAddressIPv6 address without
          knowing the site identifier value). The default scope
          SHOULD NOT be used as an easy way out in cases where
          the scope identifier for a non-global IPv6 is known."
     SYNTAX       OCTET STRING (SIZE (16|20))
   InetAddressDNS ::= TEXTUAL-CONVENTION
     DISPLAY-HINT "255a"
     STATUS       current
     DESCRIPTION
         "Represents a DNS domain name. The name SHOULD be
          fully qualified whenever possible.
          The corresponding InetAddressType is dns(16).
          The DESCRIPTION clause of InetAddress objects that
          may have InetAddressDNS values must fully describe
          how (and when) such names are to be resolved to IP
          addresses."
     SYNTAX       OCTET STRING (SIZE (1..255))
   END
<span class="grey">Daniele, et al.             Standards Track                     [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Usage Hints</span>
   One particular usage of InetAddressType/InetAddress pairs is to avoid
   over-constraining an object definition by the use of the IpAddress
   SMI base type. An InetAddressType/InetAddress pair allows to
   represent IP addresses in various formats.
   The InetAddressType and InetAddress objects SHOULD NOT be subtyped.
   Subtyping binds the MIB module to specific address formats, which may
   cause serious problems if new address formats need to be introduced.
   Note that it is possible to write compliance statements in order to
   express that only a subset of the defined address types must be
   implemented to be compliant.
   Internet addresses MUST always be represented by a pair of
   InetAddressType/InetAddress objects. It is not allowed to "share" an
   InetAddressType between multiple InetAddress objects. Furthermore,
   the InetAddressType object must be registered immediately before the
   InetAddress object. In other words, the object identifiers for the
   InetAddressType object and the InetAddress object MUST have the same
   length and the last sub-identifier of the InetAddressType object MUST
   be 1 less than the last sub-identifier of the InetAddress object.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a> Table Indexing</span>
   When a generic Internet address is used as an index, both the
   InetAddressType and InetAddress objects MUST be used. The
   InetAddressType object MUST come immediately before the InetAddress
   object in the INDEX clause. If multiple Internet addresses are used
   in the INDEX clause, then every Internet address must be represented
   by a pair of InetAddressType and InetAddress objects.
   The IMPLIED keyword MUST NOT be used for an object of type
   InetAddress in an INDEX clause. Instance sub-identifiers are then of
   the form T.N.O1.O2...On, where T is the value of the InetAddressType
   object, O1...On are the octets in the InetAddress object, and N is
   the number of those octets.
   There is a meaningful lexicographical ordering to tables indexed in
   this fashion. Command generator applications may lookup specific
   addresses of known type and value, issue GetNext requests for
   addresses of a single type, or issue GetNext requests for a specific
   type and address prefix.
<span class="grey">Daniele, et al.             Standards Track                     [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a> Uniqueness of Addresses</span>
   IPv4 addresses were intended to be globally unique, current usage
   notwithstanding. IPv6 addresses were architected to have different
   scopes and hence uniqueness [<a href="#ref-21" title=""IP Version 6 Addressing Architecture"">21</a>]. In particular, IPv6 "link-local"
   and "site-local" addresses are not guaranteed to be unique on any
   particular node. In such cases, the duplicate addresses must be
   configured on different interfaces. So the combination of an IPv6
   address and an interface number is unique. The interface number may
   therefore be used as a scope identifier.
   The InetAddressIPv6 textual convention has been defined to represent
   global and non-global IPv6 addresses. MIB designers who use
   InetAddressType/InetAddress pairs therefore do not need define
   additional objects in order to support link-local or site-local
   addresses.
   The size of the scope identifier has been chosen so that it matches
   the sin6_scope_id field of the sockaddr_in6 structure defined in <a href="./rfc2553">RFC</a>
   <a href="./rfc2553">2553</a> [<a href="#ref-22" title=""Basic Socket Interface Extensions for IPv6"">22</a>].
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a> Multiple InetAddresses per Host</span>
   A single host system may be configured with multiple addresses (IPv4
   or IPv6), and possibly with multiple DNS names. Thus it is possible
   for a single host system to be represented by multiple
   InetAddressType/InetAddress pairs.
   If this could be an implementation or usage issue, then the
   DESCRIPTION clause of the relevant objects MUST fully describe
   required behavior.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a> Resolving DNS Names</span>
   DNS names must be resolved to IP addresses when communication with
   the named host is required. This raises a temporal aspect to defining
   MIB objects whose value is a DNS name: When is the name translated to
   an address?
   For example, consider an object defined to indicate a forwarding
   destination, and whose value is a DNS name. When does the forwarding
   entity resolve the DNS name? Each time forwarding occurs? Once, when
   the object was instantiated?
   The DESCRIPTION clause of such objects SHOULD precisely define how
   and when any required name to address resolution is done.
<span class="grey">Daniele, et al.             Standards Track                     [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   Similarly, the DESCRIPTION clause of such objects SHOULD precisely
   define how and when a reverse lookup is being done if an agent has
   accessed instrumentation that knows about an IP address and the MIB
   or implementation requires to map the address to a name.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Table Indexing Example</span>
   This example shows a table listing communication peers that are
   identified by either an IPv4 address, an IPv6 address or a DNS name.
   The table definition also prohibits entries with an empty address
   (whose type would be "unknown"). The size of a DNS name is limited to
   64 characters.
   peerTable OBJECT-TYPE
     SYNTAX      SEQUENCE OF PeerEntry
     MAX-ACCESS  not-accessible
     STATUS      current
     DESCRIPTION
         "A list of communication peers."
     ::= { somewhere 1 }
   peerEntry OBJECT-TYPE
     SYNTAX      PeerEntry
     MAX-ACCESS  not-accessible
     STATUS      current
     DESCRIPTION
         "An entry containing information about a particular peer."
     INDEX       { peerAddressType, peerAddress }
     ::= { peerTable 1 }
   PeerEntry ::= SEQUENCE {
     peerAddressType     InetAddressType,
     peerAddress         InetAddress,
     peerStatus          INTEGER }
   peerAddressType OBJECT-TYPE
     SYNTAX      InetAddressType
     MAX-ACCESS  not-accessible
     STATUS      current
     DESCRIPTION
         "The type of Internet address by which the peer
          is reachable."
     ::= { peerEntry 1 }
   peerAddress OBJECT-TYPE
     SYNTAX      InetAddress (SIZE (1..64))
     MAX-ACCESS  not-accessible
     STATUS      current
<span class="grey">Daniele, et al.             Standards Track                    [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
     DESCRIPTION
         "The Internet address for the peer. Note that
          implementations must limit themselves to a single
          entry in this table per reachable peer.
          The peerAddress may not be empty due to the SIZE
          restriction.
          If a row is created administratively by an SNMP
          operation and the address type value is dns(16), then
          the agent stores the DNS name internally. A DNS name
          lookup must be performed on the internally stored DNS
          name whenever it is being used to contact the peer.
          If a row is created by the managed entity itself and
          the address type value is dns(16), then the agent
          stores the IP address internally. A DNS reverse lookup
          must be performed on the internally stored IP address
          whenever the value is retrieved via SNMP."
     ::= { peerEntry 2 }
   The following compliance statement specifies that implementations
   need only support IPv4 addresses and globally unique IPv6 addresses
   to be compliant. Support for DNS names or scoped IPv6 addresses is
   not required.
   peerCompliance MODULE-COMPLIANCE
     STATUS      current
     DESCRIPTION
         "The compliance statement the peer MIB."
     MODULE      -- this module
     MANDATORY-GROUPS    { peerGroup }
     OBJECT  peerAddressType
     SYNTAX  InetAddressType { ipv4(1), ipv6(2) }
     DESCRIPTION
         "An implementation is only required to support IPv4
          and IPv6 addresses."
     OBJECT  peerAddress
     SYNTAX  InetAddress (SIZE(4|16))
     DESCRIPTION
         "An implementation is only required to support IPv4
          and globally unique IPv6 addresses."
     ::= { somewhere 2 }
<span class="grey">Daniele, et al.             Standards Track                    [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   Note that the SMIv2 does not permit inclusion of not-accessible
   objects in an object group (see <a href="#section-3.1">section 3.1</a> in STD 58, <a href="./rfc2580">RFC 2580</a> [<a href="#ref-8" title=""Conformance Statements for SMIv2"">8</a>]).
   It is therefore not possible to formally refine the syntax of
   auxiliary objects which are not-accessible.  In such a case, it is
   suggested to express the refinement informally in the DESCRIPTION
   clause of the MODULE-COMPLIANCE macro invocation.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
   This module does not define any management objects. Instead, it
   defines a set of textual conventions which may be used by other MIB
   modules to define management objects.
   Meaningful security considerations can only be written in the modules
   that define management objects.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Acknowledgments</span>
   The authors would like to thank Randy Bush, Richard Draves, Mark
   Ellison, Bill Fenner, Jun-ichiro Hagino, Tim Jenkins, Glenn
   Mansfield, Keith McCloghrie, Thomas Narten, Erik Nordmark, Peder Chr.
   Norgaard, Randy Presuhn, Andrew Smith, Dave Thaler, Kenneth White,
   Bert Wijnen, and Brian Zill for their comments and suggestions.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Intellectual Property Notice</span>
   The IETF takes no position regarding the validity or scope of any
   intellectual property or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; neither does it represent that it
   has made any effort to identify any such rights. Information on the
   IETF's procedures with respect to rights in standards-track and
   standards-related documentation can be found in <a href="https://www.rfc-editor.org/bcp/bcp11">BCP-11</a>. Copies of
   claims of rights made available for publication and any assurances of
   licenses to be made available, or the result of an attempt made to
   obtain a general license or permission for the use of such
   proprietary rights by implementors or users of this specification can
   be obtained from the IETF Secretariat.
   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights which may cover technology that may be required to practice
   this standard. Please address the information to the IETF Executive
   Director.
<span class="grey">Daniele, et al.             Standards Track                    [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
References
   [<a id="ref-1">1</a>]  Bradner, S., "Key words for use in RFCs to Indicate Requirement
        Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
   [<a id="ref-2">2</a>]  Harrington, D., Presuhn, R. and B. Wijnen, "An Architecture for
        Describing SNMP Management Frameworks", <a href="./rfc2571">RFC 2571</a>, April 1999.
   [<a id="ref-3">3</a>]  Rose, M. and K. McCloghrie, "Structure and Identification of
        Management Information for TCP/IP-based Internets", STD 16, <a href="./rfc1155">RFC</a>
        <a href="./rfc1155">1155</a>, May 1990.
   [<a id="ref-4">4</a>]  Rose, M. and K. McCloghrie, "Concise MIB Definitions", STD 16,
        <a href="./rfc1212">RFC 1212</a>, March 1991.
   [<a id="ref-5">5</a>]  Rose, M., "A Convention for Defining Traps for use with the
        SNMP", <a href="./rfc1215">RFC 1215</a>, March 1991.
   [<a id="ref-6">6</a>]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J., Rose,
        M. and S. Waldbusser, "Structure of Management Information
        Version 2 (SMIv2)", STD 58, <a href="./rfc2578">RFC 2578</a>, April 1999.
   [<a id="ref-7">7</a>]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J., Rose,
        M. and S. Waldbusser, "Textual Conventions for SMIv2", STD 58,
        <a href="./rfc2579">RFC 2579</a>, April 1999.
   [<a id="ref-8">8</a>]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J., Rose,
        M. and S. Waldbusser, "Conformance Statements for SMIv2", STD
        58, <a href="./rfc2580">RFC 2580</a>, April 1999.
   [<a id="ref-9">9</a>]  Case, J., Fedor, M., Schoffstall, M. and J. Davin, "A Simple
        Network Management Protocol (SNMP)", STD 15, <a href="./rfc1157">RFC 1157</a>, May 1990.
   [<a id="ref-10">10</a>]  Case, J., McCloghrie, K., Rose, M. and S. Waldbusser,
         "Introduction to Community-based SNMPv2", <a href="./rfc1901">RFC 1901</a>, January
         1996.
   [<a id="ref-11">11</a>]  Case, J., McCloghrie, K., Rose, M. and S. Waldbusser,
         "Transport Mappings for Version 2 of the Simple Network
         Management Protocol (SNMPv2)", <a href="./rfc1906">RFC 1906</a>, January 1996.
   [<a id="ref-12">12</a>]  Case, J., Harrington, D., Presuhn, R. and B. Wijnen, "Message
         Processing and Dispatching for the Simple Network Management
         Protocol (SNMP)", <a href="./rfc2572">RFC 2572</a>, April 1999.
   [<a id="ref-13">13</a>]  Blumenthal, U. and B. Wijnen, "User-based Security Model (USM)
         for version 3 of the Simple Network Management Protocol
         (SNMPv3)", <a href="./rfc2574">RFC 2574</a>, April 1999.
<span class="grey">Daniele, et al.             Standards Track                    [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
   [<a id="ref-14">14</a>]  Case, J., McCloghrie, K., Rose, M. and S. Waldbusser,
         "Protocol Operations for Version 2 of the Simple Network
         Management Protocol (SNMPv2)", <a href="./rfc1905">RFC 1905</a>, January 1996.
   [<a id="ref-15">15</a>]  Levi, D., Meyer, P. and B. Stewart, "SNMP Applications", <a href="./rfc2573">RFC</a>
         <a href="./rfc2573">2573</a>, April 1999.
   [<a id="ref-16">16</a>]  Wijnen, B., Presuhn, R. and K. McCloghrie, "View-based Access
         Control Model (VACM) for the Simple Network Management
         Protocol (SNMP)", <a href="./rfc2575">RFC 2575</a>, April 1999.
   [<a id="ref-17">17</a>]  Case, J., Mundy, R., Partain, D. and B. Stewart, "Introduction
         to Version 3 of the Internet-standard Network Management
         Framework", <a href="./rfc2570">RFC 2570</a>, April 1999.
   [<a id="ref-18">18</a>]  McCloghrie, K., "SNMPv2 Management Information Base for the
         Transmission Control Protocol using SMIv2", <a href="./rfc2012">RFC 2012</a>, November
         1996.
   [<a id="ref-19">19</a>]  Daniele, M., "IP Version 6 Management Information Base for the
         Transmission Control Protocol", <a href="./rfc2452">RFC 2452</a>, December 1998.
   [<a id="ref-20">20</a>]  McCloghrie, K. and F. Kastenholz, "The Interfaces Group MIB
         using SMIv2", <a href="./rfc2233">RFC 2233</a>, November 1997.
   [<a id="ref-21">21</a>]  Hinden, R. and S. Deering, "IP Version 6 Addressing
         Architecture", <a href="./rfc2373">RFC 2373</a>, July 1998.
   [<a id="ref-22">22</a>]  Gilligan, R., Thomson, S., Bound, J. and W. Stevens, "Basic
         Socket Interface Extensions for IPv6", <a href="./rfc2553">RFC 2553</a>, March 1999.
<span class="grey">Daniele, et al.             Standards Track                    [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
Authors' Addresses
   Mike Daniele
   Compaq Computer Corporation
   110 Spit Brook Rd
   Nashua, NH  03062
   USA
   Phone: +1 603 884-1423
   EMail: daniele@zk3.dec.com
   Brian Haberman
   Nortel Networks
   4039 Emperor Blvd., Suite 200
   Durham, NC  27703
   USA
   Phone: +1 919 992-4439
   EMail: haberman@nortelnetworks.com
   Shawn A. Routhier
   Wind River Systems, Inc.
   1 Tara Blvd, Suite 403
   Nashua, NH  03062
   USA
   Phone: +1 603 897-2000
   EMail: sar@epilogue.com
   Juergen Schoenwaelder
   TU Braunschweig
   Bueltenweg 74/75
   38106 Braunschweig
   Germany
   Phone: +49 531 391-3289
   EMail: schoenw@ibr.cs.tu-bs.de
<span class="grey">Daniele, et al.             Standards Track                    [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc2851">RFC 2851</a>           TCs for Internet Network Addresses          June 2000</span>
Full Copyright Statement
   Copyright (C) The Internet Society (2000).  All Rights Reserved.
   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.
   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.
   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
   Funding for the RFC Editor function is currently provided by the
   Internet Society.
Daniele, et al.             Standards Track                    [Page 16]
</pre>
 
     |