ARP
This chapter provides examples on how to use Netconf to manage ARP configurations on AsterNOS devices.
Create ARP Global Configurations
Section titled “Create ARP Global Configurations”hint{type=“warning”} NOTE: ARP proxy only supports configuration on VLAN interface. The ARP proxy currently only supports merge and get operations. To disable this feature, the mode needs to be set to disable.
Request example to enable ARP proxy on vlan interface via edit-config.
<config><top> <vlans> <vlan operation="create"> <vlanid>100</vlanid> </vlan> </vlans> <interfaces> <interface> <name>Vlan100</name> <arp-dynamic-learning> <mode>anycast_gw</mode> </arp-dynamic-learning> </interface> </interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a5891471-02ee-4d3f-892c-ed515e3a7a53"> <ok/></rpc-reply>Disable ARP Proxy On Vlan Interface
Section titled “Disable ARP Proxy On Vlan Interface”Request example to disable ARP proxy on vlan interface via edit-config.
<config><top> <interfaces> <interface> <name>Vlan100</name> <arp-dynamic-learning> <mode>disable</mode> </arp-dynamic-learning> </interface> </interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:49687cc0-903d-4865-be5f-e709e1c9e981"> <ok/></rpc-reply>Get ARP Proxy On Vlan Interface
Section titled “Get ARP Proxy On Vlan Interface”Request example to get ARP proxy on vlan interface via get-config with subtree filter.
<filter type="subtree"> <top> <interfaces> <interface> <name>Vlan100</name> <arp-dynamic-learning> </arp-dynamic-learning> </interface> </interfaces> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:49687cc0-903d-4865-be5f-e709e1c9e981"> <data> <top> <interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> <interface> <name>Vlan100</name> <arp-dynamic-learning xmlns="http://asterfusion.com/ns/yang/asternos-arp"> <mode>anycast_gw</mode> </arp-dynamic-learning> </interface> </interfaces> </top> </data></rpc-reply>Show ARP Proxy Summary
Section titled “Show ARP Proxy Summary”Request example to show ARP proxy summary via rpc show-interface-arp-proxy.
<show-interface-arp-proxy/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c71e86a7-3247-4962-b746-f066cfe5cbc4"> <data xmlns="http://asterfusion.com/ns/yang/asternos-arp"> <interface> <name>Vlan100</name> <mode>anycast_gw</mode> </interface> </data></rpc-reply>