<?xml version="1.0" encoding="utf-8"?>

<?xml-model href="rfc7991bis.rnc"?>  <!-- Required for schema validation and schema-aware editing -->
<!DOCTYPE rfc [
  <!ENTITY nbsp "&#160;">
  <!ENTITY zwsp "&#8203;">
  <!ENTITY nbhy "&#8209;">
  <!ENTITY wj "&#8288;">
]>
<!-- If further character entities are required then they should be added to the DOCTYPE above.
     Use of an external entity file is not recommended. -->

<rfc 
  xmlns:xi="http://www.w3.org/2001/XInclude" 
  category="std" 
  docName="draft-ietf-intarea-arp-yang-model-00"
  ipr="trust200902"
  obsoletes=""
  updates=""
  submissionType="IETF"
  xml:lang="en"
  version="3">

  <front>
    <title abbrev="ARP YANG model">A YANG Data Model for ARP</title>

    <author fullname="Feng Zheng" initials="F" surname="Zheng">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>

          <city>Nanjing</city>

          <region>Jiangsu</region>

          <code>210012</code>

          <country>China</country>
        </postal>

        <email>habby.zheng@huawei.com</email>
      </address>
    </author>

    <author fullname="Bo Wu" initials="B" role="editor" surname="Wu">
      <organization>Huawei</organization>

      <address>
        <email>lana.wubo@huawei.com</email>
      </address>
    </author>

    <author fullname="Robert Wilton" initials="R" role="editor"
      surname="Wilton">
      <organization>Cisco Systems</organization>

      <address>
        <email>rwilton@cisco.com</email>
      </address>
    </author>

    <author fullname="Fan Zhang" initials="F" role="editor" surname="Zhang">
      <organization>China Telecom</organization>
      <address>
        <email>zhangf52@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Yongqing Zhu" initials="Y." surname="Zhu">
      <organization>China Telecom</organization>
      <address>
        <email>zhuyq8@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Xiaojian Ding" initials="X." surname="Ding">
      <address>
        <email>wjswsl@163.com</email>
      </address>
    </author>

    <date year="2025" />

    <!-- Meta-data Declarations -->

    <area>Internet Area</area>

    <workgroup>INTAREA</workgroup>


    <abstract>
      <t>This document defines a YANG data model for the management of the
        Address Resolution Protocol (ARP). It extends the basic ARP
        functionality contained in the ietf-ip YANG data model, defined in RFC
        8344, to provide management of optional ARP features and statistics.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <t>Basic ARP functionality is supported by the ietf-ip YANG data model, defined in <xref
          target="RFC8344" />. This document defines a YANG <xref
          target="RFC7950" /> data model that extends the basic ARP YANG support to also cover
        optional ARP features, and ARP related statistics to aid network monitoring and
        troubleshooting.</t>

      <t>This model defines YANG configuration and operational state data nodes both for ARP related
        functionality formally specified in other RFCs (such as <xref target="RFC8344" /> and <xref
          target="RFC1027" />), and also for common ARP behaviour that is often supported on network
        devices.</t>

      <t>The YANG modules in this document conform to the Network Management Datastore Architecture
        (NMDA) <xref target="RFC8342" />.</t>

      <t>Editorial Note: (To be removed by RFC Editor)</t>

      <t>This draft contains several placeholder values that need to be
        replaced with finalized values at the time of publication. Please apply
        the following replacements:</t>


      <ul spacing="normal"> 
        <li>"XXXX" --&gt; the assigned RFC value for this draft both in this
          draft and in the YANG models under the revision statement.</li>

        <li>The "revision" date in model, in the format XXXX-XX-XX, needs to
          be updated with the date the draft gets approved. The date also
          needs to get reflected on the line with &lt;CODE BEGINS&gt;.</li>
      </ul>


      <t />

      <section title="Terminology">
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD
          NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
          interpreted as described in BCP 14 <xref target="RFC2119" /> <xref target="RFC8174" />
          when, and only when, they appear in all capitals, as shown here.</t>

        <t>The following terms are defined in <xref target="RFC8342" /> and are not redefined here:</t>


        <ul spacing="normal">
          <li>client</li>

          <li>server</li>

          <li>configuration data</li>

          <li>system state</li>

          <li>state data</li>

          <li>intended configuration</li>

          <li>running configuration datastore</li>

          <li>operational state datastore</li>
        </ul>


        <t>The following terms are defined in <xref target="RFC7950" /> and are not redefined here:</t>


        <ul spacing="normal">
          <li>augment</li>

          <li>data model</li>

          <li>data node</li>
        </ul>


        <t>The terminology for describing YANG data models is found in <xref
            target="RFC7950" />.</t>
      </section>

      <section title="Tree Diagrams">
        <t>Tree diagrams used in this document follow the notation defined in <xref target="RFC8340" />
          .</t>
      </section>
    </section>

    <!-- intro -->

    <section anchor="problem" title="Problem Statement">
      <t>Neither ARP <xref target="RFC0826" /> nor Proxy-ARP <xref
          target="RFC1027" /> defines standard network management configuration models. Instead,
        network equipment vendors have implemented their own bespoke configuration interfaces and
        models.</t>

      <t>Network operators benefit from having common network management
        models defined that can be implemented by multiple network equipment
        manufacturers. This simplifies the operation and management of network
        devices.</t>

      <t>Some, but not all, required ARP functionality has been defined in "ietf-ip" (<xref
          target="RFC8344" />). Providing a standard YANG model that models these optional ARP
        features, which are fairly widely implemented by network equipment manufacturers, and used
        by network operators, is beneficial to the general goal of interoperability in the
        networking industry.</t>

      <!-- -->
    </section>

    <section anchor="design" title="Design of the Data Model">
      <t>This data model intends to describe the processing that a protocol
        finds the hardware address, also known as Media Access Control (MAC)
        address, of a host from its known IP address. These tasks include, but
        are not limited to, configuring dynamic ARP learning, proxy ARP, and
        gratuitous ARP. There are two kinds of ARP configurations: global ARP
        configuration, which is across all interfaces on the device, and per
        interface ARP configuration.</t>

      <section title="ARP Dynamic Learning">
        <t>As defined in <xref target="RFC0826" />, ARP caching is the method of storing network
          addresses and the associated data-link addresses in memory for a period of time as the
          addresses are learned. This minimizes the use of valuable network resources to broadcast
          for the same address each time a datagram is sent.</t>

        <t>There are static ARP cache entries and dynamic ARP cache entries. Static entries, are
          manually configured and kept in the cache table on a permanent basis which are defined in
          the ipv4 neighbor list for each interface in <xref target="RFC8344" />. Dynamic entries
          are added by vendor software, kept for a period of time, and then removed. We can specify
          how long an entry remains in the ARP cache. If we specify a timeout of 0 seconds, entries
          are never cleared from the ARP cache.</t>
      </section>

      <section title="Proxy ARP">
        <t>Proxy ARP, defined in <xref target="RFC1027" />, allows a router to respond to ARP
          requests on behalf of another machine that is not on the same local subnet, offering its
          own Ethernet media access control (MAC) address. By replying in such a way, the router
          then takes responsibility for routing packets to the intended destination.</t>

        <t>In the case of certain data center network virtualization, as specified in <xref
            target="RFC8014" />, the proxy ARP can be extended to intercept all ARP requests,
          including source and target IP addresses in different subnets, and those ARP requests in
          the same subnet to suppress ARP handling.</t>
      </section>

      <section title="Gratuitous ARP">
        <t>Gratuitous ARP enables a device to send an ARP Request packet using its own IP address as
          the destination address. Gratuitous ARP provides the following functions:</t>
        <ul spacing="normal">
          <li>Checks duplicate IP addresses: <xref target="RFC5227" /> uses gratuitous ARP to help
        detect IP conflicts. When a device receives an ARP request containing a source IP that
        matches its own, then it knows there is an IP conflict.</li>

          <li>Advertises a new MAC address: Also in <xref target="RFC5227" />, if the MAC address
        of a host changes because its network adapter is replaced, the host sends a gratuitous ARP
        packet to notify all hosts of the change before the ARP entry is aged out.</li>

          <li>Notifies an active/standby switchover in a <xref
              target="RFC9568" /> VRRP backup group: After an active/standby switchover, the
        master router sends a gratuitous ARP packet in the VRRP backup group to notify the
        switchover.</li>
        </ul>
      </section>

      <section title="ARP Data Model">
        <t>This document defines the YANG module "ietf-arp", which has the
          following structure:</t>

        <figure>
          <artwork><![CDATA[
module: ietf-arp
  +--rw arp
     +--rw dynamic-learning?   boolean

  augment /if:interfaces/if:interface/ip:ipv4:
    +--rw arp
       +--rw expiry-time?        uint32
       +--rw dynamic-learning?   boolean
       +--rw proxy-arp
       |  +--rw mode?   enumeration
       +--rw gratuitous-arp
       |  +--rw enable?     boolean
       |  +--rw interval?   uint32
       +--ro statistics
          +--ro in-requests-pkts?      yang:counter32
          +--ro in-replies-pkts?       yang:counter32
          +--ro in-gratuitous-pkts?    yang:counter32
          +--ro out-requests-pkts?     yang:counter32
          +--ro out-replies-pkts?      yang:counter32
          +--ro out-gratuitous-pkts?   yang:counter32
  augment /if:interfaces/if:interface/ip:ipv4/ip:neighbor:
    +--ro remaining-expiry-time?   uint32
        ]]></artwork>
        </figure>
      </section>
    </section>

    <section anchor="yangmodel" title="ARP YANG Module">
      <t>This section presents the ARP YANG module defined in this
        document.</t>

      <t>This module imports definitions from <xref target="RFC6991">Common
          YANG Data Types</xref>, <xref target="RFC8343">A YANG Data Model for
          Interface Management</xref>, and <xref target="RFC8344">A YANG Data
          Model for IP Management</xref>.</t>

      <figure>
        <artwork><![CDATA[<CODE BEGINS> file "ietf-arp@2025-07-19.yang"
module ietf-arp {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-arp";
  prefix arp;

  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 6991: Common YANG Data Types";
  }
  import ietf-interfaces {
    prefix if;
    reference
      "RFC 8343: A Yang Data Model for Interface Management";
  }
  import ietf-ip {
    prefix ip;
    reference
      "RFC 8344: A Yang Data Model for IP Management";
  }

  organization
    "IETF Internet Area Working Group (intarea)";
  contact
    "WG Web:  <https://datatracker.ietf.org/wg/intarea/>
     WG List: <mailto: int-area@ietf.org>

     Author:  Feng Zheng
              <habby.zheng@huawei.com>
     Editor:  Bo Wu
              <lana.wubo@huawei.com>
     Editor:  Robert Wilton
              <rwilton@cisco.com>
     Editor:  Fan Zhang
              <zhangf52@chinatelecom.cn>
     Author:  Yongqing Zhu
              <zhuyq8@chinatelecom.cn>
     Author:  Xiaojian Ding
              <wjswsl@163.com>";
     
  description
    "This YANG module defines Address Resolution Protocol (ARP)
     management, which includes static ARP configuration,
     dynamic ARP learning, ARP entry query, and packet statistics
     collection.

     Copyright (c) 2025 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject
     to the license terms contained in, the Revised BSD License set
     forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC XXXX; see the
     RFC itself for full legal notices.";

  revision 2025-07-19 {
    description
      "Init revision";
    reference
      "RFC XXXX: A Yang Data Model for ARP";
  }

  container arp {
    description
      "Address Resolution Protocol (ARP)";
    leaf dynamic-learning {
      type boolean;
      default "true";
      description
        "Controls the default ARP learning behavior on all
         interfaces on the device, unless explicit overridden by
         the per-interface dynamic-learning leaf:
           true -  dynamic learning is enabled on all interfaces by
                   default,
           false - dynamic learning is disabled on all interfaces by
                   default";
      reference
        "RFC826: An Ethernet Address Resolution Protocol";
    }
  }

  augment "/if:interfaces/if:interface/ip:ipv4" {
    description
      "Augment interfaces with ARP configuration and state.";
    container arp {
      description
        "Address Resolution Protocol (ARP) related configuration
         and state";
      leaf expiry-time {
        type uint32 {
          range "30..86400";
        }
        units "seconds";
        description
          "Aging time of a received dynamic ARP entry before it is
           removed from the cache.";
      }
      leaf dynamic-learning {
        type boolean;
        description
          "Controls whether dynamic ARP learning is enabled on the
           interface.  If not configured, it defaults to the behavior
           specified in the per-device /arp/dynamic-learning leaf.

             true -  dynamic learning is enabled
             false - dynamic learning is disabled";
      }
      container proxy-arp {
        description
          "Configuration parameters for proxy ARP";
        leaf mode {
          type enumeration {
            enum disabled {
              description
                "The system only responds to ARP requests that
                 specify a target address configured on the local
                 interface.";
            }
            enum remote-only {
              description
                "The system only responds to ARP requests when the
                 sender and target IP addresses are in different
                 subnets.";
            }
            enum all {
              description
                "The system responds to ARP requests where the sender
                 and target IP addresses are in different subnets, as
                 well as those where they are in the same subnet.";
            }
          }
          default "disabled";
          description
            "When set to a value other than 'disabled', the local
             system should respond to ARP requests that are for
             target addresses other than those that are configured on
             the local subinterface using its own MAC address as the
             target hardware address.  If the 'remote-only' value is
             specified, replies are only sent when the target address
             falls outside the locally configured subnets on the
             interface, whereas with the 'all' value, all requests,
             regardless of their target address are replied to.";
          reference
            "RFC1027: Using ARP to Implement Transparent Subnet
             Gateways";
        }
      }
      container gratuitous-arp {
        description
          "Configure gratuitous ARP.";
        reference
          "RFC5227: IPv4 Address Conflict Detection";
        leaf enable {
          type boolean;
          description
            "Enable or disable sending gratuitous ARP packet on the
             interface.

             The default behaviour is device specific, and a
             deviation could be used to specify a device specific
             default.";
        }
        leaf interval {
          type uint32 {
            range "1..86400";
          }
          units "seconds";
          description
            "The interval, in seconds, between sending gratuitous ARP
             packet on the interface.

             The default behaviour is device specific, and a
             deviation could be used to specify a device specific
             default.";
        }
      }
      container statistics {
        config false;
        description
          "ARP per-interface packet statistics

           For all ARP interface counters, discontinuities in the
           value can occur at re-initialization of the management
           system and at other times as indicated by the value of
           '../../statistics/discontinuity-time' in the
           ietf-interfaces YANG module.";
        leaf in-requests-pkts {
          type yang:counter32;
          description
            "The number of ARP request packets received on this
             interface.";
        }
        leaf in-replies-pkts {
          type yang:counter32;
          description
            "The number of ARP reply packets received on this
             interface.";
        }
        leaf in-gratuitous-pkts {
          type yang:counter32;
          description
            "The number of gratuitous ARP packets received on this
             interface.";
        }
        leaf out-requests-pkts {
          type yang:counter32;
          description
            "The number of ARP request packets sent on this
             interface.";
        }
        leaf out-replies-pkts {
          type yang:counter32;
          description
            "The number of ARP reply packets sent on this
             interface.";
        }
        leaf out-gratuitous-pkts {
          type yang:counter32;
          description
            "The number of gratuitous ARP packets sent on this
             interface.";
        }
      }
    }
  }

  augment "/if:interfaces/if:interface/ip:ipv4/ip:neighbor" {
    description
      "Augment IPv4 neighbor list with ARP expiry time.";
    leaf remaining-expiry-time {
      type uint32;
      units "seconds";
      config false;
      description
        "The number of seconds until the dynamic ARP entry expires
         and is removed from the ARP cache.";
    }
  }
}

<CODE ENDS>
]]></artwork>
      </figure>
    </section>

    <!---->

    <section anchor="example" title="Data Model Examples">
      <t>This section presents two simple ARP configuration examples:</t>

      <section title="Configured static ARP Entry">
        <t>This example illustrates the configuration for a static ARP entry for peer 192.0.2.1 with
          MAC address 00:00:5E:00:53:AB using the model defined in <xref target="RFC8344" />.</t>

        <figure>
          <artwork><![CDATA[ 
<?xml version="1.0" encoding="utf-8"?>
<interfaces
    xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
    xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>ianaift:ethernetCsmacd</type>
    <!-- other parameters from ietf-interfaces omitted -->
    
    <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <!-- ipv4 address configuration parameters omitted -->
      <neighbor>
        <ip>192.0.2.1</ip>
        <link-layer-address>00:00:5E:00:53:AB</link-layer-address>
      </neighbor>
    </ipv4>
  </interface>
</interfaces>
]]></artwork>
        </figure>
      </section>

      <section title="Configuration of proxy ARP and gratuitous ARP">
        <t>This example illustrates the configuration of ARP entry expiry
          time, proxy ARP in 'remote-only' mode, and enabling gratuitous ARP
          with an interval of 10 minutes.</t>

        <figure>
          <artwork><![CDATA[
<?xml version="1.0" encoding="utf-8"?>
<interfaces
    xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
    xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>ianaift:ethernetCsmacd</type>
    <!-- other parameters from ietf-interfaces omitted -->
   
    <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <!-- ipv4 address configuration parameters omitted -->
      <arp xmlns="urn:ietf:params:xml:ns:yang:ietf-arp">
        <expiry-time>1200</expiry-time>
        <proxy-arp>
          <mode>remote-only</mode>
        </proxy-arp>
        <gratuitous-arp>
          <enable>true</enable>
          <interval>600</interval>
        </gratuitous-arp>
      </arp>
    </ipv4>
  </interface>
</interfaces>
        ]]></artwork>
        </figure>
      </section>
    </section>

    <section title="IANA Considerations">
      <t>This document registers a URI in the <xref target="RFC3688">IETF XML
          registry</xref>. Following the format in <xref target="RFC3688" />, the following
        registration is requested to be made:</t>

      <figure>
        <artwork><![CDATA[
    URI: urn:ietf:params:xml:ns:yang:ietf-arp
    Registrant Contact: The INTAREA WG of the IETF.
    XML: N/A, the requested URI is an XML namespace.
        ]]></artwork>
      </figure>

      <t>This document registers a YANG module in the YANG Module Names registry <xref
          target="RFC6020" />.</t>

      <figure>
        <artwork><![CDATA[
    Name: ietf-arp
    Namespace: urn:ietf:params:xml:ns:yang:ietf-arp
    Prefix: arp
    Reference: RFC XXXX
        ]]></artwork>
      </figure>
    </section>

    <section anchor="security" title="Security Considerations">
      <t>The YANG module specified in this document defines a schema for data that is designed to be
        accessed via network management protocols such as NETCONF <xref target="RFC6241" /> or
        RESTCONF <xref target="RFC8040" /> . The lowest NETCONF layer is the secure transport layer,
        and the mandatory-to-implement secure transport is Secure Shell (SSH) <xref
          target="RFC6242" />. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement
        secure transport is TLS <xref
          target="RFC8446" />.</t>

      <t>The NETCONF Access Control Model (NACM) <xref target="RFC8341" /> provides the means to
        restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all
        available NETCONF or RESTCONF protocol operations and content.</t>

      <t>There are a number of data nodes defined in this YANG module that are
        writable/creatable/deletable (i.e., config true, which is the default).
        These data nodes may be considered sensitive or vulnerable in some
        network environments. Write operations (e.g., edit-config) and delete
        operations to these data nodes without proper protection or
        authentication can have a negative effect on network operations.These
        are the subtrees and data nodes and their sensitivity/vulnerability in
        the "ietf-arp" module:</t>

      <t>* /ietf-arp/dynamic-learning</t>

      <t>This leaf is used to enable ARP dynamic learning on all interfaces.
        ARP dynamic learning could allow an attacker to inject spoofed traffic
        into the network, e.g. denial-of-service attack.</t>

      <t>* arp/dynamic-learning</t>

      <t>This leaf is used to enable ARP dynamic learning on a single
        interface. ARP dynamic learning could allow an attacker to inject
        spoofed traffic into the network, e.g. denial-of-service attack.</t>

      <t>* interface/ipv4/arp/proxy-arp</t>

      <t>These leaves are used to enable proxy ARP on an interface. They could
        allow traffic to be mis-configured (denial-of-service attack).</t>

      <t>* interface/ipv4/arp/gratuitous-arp</t>

      <t>These leaves are used to enable sending gratuitous ARP packet on an
        interface. This configuration could allow an attacker to inject spoofed
        traffic into the network, e.g. man-in-the-middle attack. The default
        value for this data node is device specific, and hence users of this
        model MUST understand whether or not gratutious ARP is enabled and
        whether this could constitute a security risk.</t>
    </section>

    <section anchor="ack" title="Acknowledgments">
      <t>The authors wish to thank Alex Campbell, Reshad Rahman, Qin Wu, Tom
        Petch, Jeffrey Haas, and others for their helpful comments.</t>
    </section>

    <!---->
  </middle>

  <back>
    <references title="Normative References">
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.0826.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.1027.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3688.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5227.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6020.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6242.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6991.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7950.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8174.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8342.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8343.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8344.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8446.xml" />
    </references>

    <references title="Informative References">
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6241.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8014.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8040.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8340.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8341.xml" />
      <xi:include href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.9568.xml" />
    </references>

    <section anchor="datamodel" title="Examples">
      <t>This section presents two simple ARP configuration examples:</t>

      <section title="Configuration of a Static ARP Entry">
        <t>This example illustrates the configuration for a static ARP entry for peer 192.0.2.1 with
          MAC address 00:00:5E:00:53:AB using the model defined in <xref target="RFC8344" />.</t>

        <figure>
          <artwork><![CDATA[ 
<?xml version="1.0" encoding="utf-8"?>
<interfaces
    xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
    xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>ianaift:ethernetCsmacd</type>
    <!-- other parameters from ietf-interfaces omitted -->
    
    <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <!-- ipv4 address configuration parameters omitted -->
      <neighbor>
        <ip>192.0.2.1</ip>
        <link-layer-address>00:00:5E:00:53:AB</link-layer-address>
      </neighbor>
    </ipv4>
  </interface>
</interfaces>
]]></artwork>
        </figure>
      </section>

      <section title="Configuration of Proxy ARP and Gratuitous ARP">
        <t>This example illustrates the configuration of ARP entry expiry
          time, proxy ARP in 'remote-only' mode, and enabling gratuitous ARP
          with an interval of 10 minutes.</t>

        <figure>
          <artwork><![CDATA[
<?xml version="1.0" encoding="utf-8"?>
<interfaces
    xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
    xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>ianaift:ethernetCsmacd</type>
    <!-- other parameters from ietf-interfaces omitted -->
   
    <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <!-- ipv4 address configuration parameters omitted -->
      <arp xmlns="urn:ietf:params:xml:ns:yang:ietf-arp">
        <expiry-time>1200</expiry-time>
        <proxy-arp>
          <mode>remote-only</mode>
        </proxy-arp>
        <gratuitous-arp>
          <enable>true</enable>
          <interval>600</interval>
        </gratuitous-arp>
      </arp>
    </ipv4>
  </interface>
</interfaces>
        ]]></artwork>
        </figure>
      </section>
    </section>
  </back>
</rfc>