NETCONF Configuration Guide
...
Layer3
NDP
22 min
asternos ndp this chapter provides examples on how to use netconf to manage ipv6 neighbor discovery protocol (ndp) on asternos devices create global ndp note nd log can only record ndp message information under vlan interface request example to enable ndp log via edit config \<config>\<top> \<ndp global operation="create"> \<log enable>true\</log enable> \</ndp global> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 4830d8ba 0f03 484a acc1 e4e63b704e24"> \<ok/> \</rpc reply> modify global ndp request example to disable ndp log via edit config \<config>\<top> \<ndp global operation="merge"> \<log enable>false\</log enable> \</ndp global> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 4830d8ba 0f03 484a acc1 e4e63b704e24"> \<ok/> \</rpc reply> get global ndp request example to get global ndp configuration via get config \<filter type="subtree"> \<top> \<ndp global/> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ b04f002d 3312 45ca 8bf4 aadc641b1ec0"> \<data> \<top> \<ndp global xmlns="http //asterfusion com/ns/yang/asternos ndp"> \<log enable>false\</log enable> \</ndp global> \</top> \</data> \</rpc reply> create static neighbor for interface request example to create static neighbors via edit config \<config>\<top> \<interfaces> \<interface> \<name>ethernet1\</name> \<ipv6> \<address operation="create"> \<ip prefix>2011 1/20\</ip prefix> \</address> \<address operation="create"> \<ip prefix>3011 1/20\</ip prefix> \</address> \<neighbor operation="create"> \<ip>2011 2\</ip> \<mac address>00 0e\ c6 56 9d 35\</mac address> \</neighbor> \<neighbor operation="create"> \<ip>3011 2\</ip> \<mac address>00 0e\ c6 56 9d 35\</mac address> \</neighbor> \</ipv6> \</interface> \</interfaces> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 3fe6ef49 3c2e 47a1 adb6 b85a7949bb65"> \<ok/> \</rpc reply> delete single static neighbor for interface request example to delete a static neighbor via edit config \<config>\<top> \<interfaces> \<interface> \<name>ethernet1\</name> \<ipv6> \<neighbor operation="delete"> \<ip>2011 2\</ip> \</neighbor> \</ipv6> \</interface> \</interfaces> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 1fa807c1 aea2 4134 b3e3 ab5d0a99cee3"> \<ok/> \</rpc reply> get all static neighbors for interface request example to get all static neighbors for an interface via get config \<filter type="subtree"> \<top> \<interfaces> \<interface> \<name>ethernet1\</name> \<ipv6> \<neighbor> \</neighbor> \</ipv6> \</interface> \</interfaces> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 46012eb4 60b5 4d26 a103 d45624533bfe"> \<data> \<top> \<interfaces xmlns="http //asterfusion com/ns/yang/asternos interfaces"> \<interface> \<name>ethernet1\</name> \<ipv6 xmlns="http //asterfusion com/ns/yang/asternos ip"> \<neighbor> \<ip>3011 2\</ip> \<mac address>00 0e\ c6 56 9d 35\</mac address> \</neighbor> \</ipv6> \</interface> \</interfaces> \</top> \</data> \</rpc reply> show ipv6 neighbors for interface request example to show ipv6 neighbors for an interface via rpc show ipv6 neighbor summary \<show ipv6 neighbor summary> \<interface>ethernet1\</interface> \</show ipv6 neighbor summary> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 521e2a57 e729 4525 a3e2 ee1674535650"> \<data xmlns="http //asterfusion com/ns/yang/asternos ip"> address macaddress iface vlan status \ 2011 2 00 0e\ c6 56 9d 35 ethernet1 permanent 3011 2 00 0e\ c6 56 9d 35 ethernet1 permanent total number of entries 2 \</data> \</rpc reply> show given ipv6 neighbor request example to show a given ipv6 neighbor via rpc show ipv6 neighbor summary \<show ipv6 neighbor summary> \<ip>2011 2\</ip> \</show ipv6 neighbor summary> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 8ba70bcb fa84 4551 8e87 3b3e976e7036"> \<data xmlns="http //asterfusion com/ns/yang/asternos ip"> address macaddress iface vlan status \ 2011 2 00 0e\ c6 56 9d 35 ethernet1 permanent total number of entries 1 \</data> \</rpc reply> show all ipv6 neighbors request example to show all ipv6 neighbors via rpc show ipv6 neighbor summary \<show ipv6 neighbor summary/> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 369a89e8 a76d 42a4 8f45 f4293b5544ea"> \<data xmlns="http //asterfusion com/ns/yang/asternos ip"> address macaddress iface vlan status \ 2011 2 00 0e\ c6 56 9d 35 ethernet1 permanent 3011 2 00 0e\ c6 56 9d 35 ethernet1 permanent fe80 62eb 5aff\ fe01 1003 60\ eb 5a 01 10 03 eth0 stale total number of entries 3 \</data> \</rpc reply> enable nd proxy for vlan in interface note nd proxy is only supported on vlan interfaces request example to enable nd proxy for vlan in interface via edit config \<config>\<top> \<interfaces> \<interface> \<name>vlan100\</name> \<nd dynamic learning operation="merge"> \<nd mode>anycast gw\</nd mode> \</nd dynamic learning> \</interface> \</interfaces> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ dedc5a0a 14f2 438c b078 85fc3aefd6b1"> \<ok/> \</rpc reply> disable nd proxy for vlan in interface request example to disable nd proxy for vlan in interface via edit config \<config>\<top> \<interfaces> \<interface> \<name>vlan100\</name> \<nd dynamic learning operation="merge"> \<nd mode>disable\</nd mode> \</nd dynamic learning> \</interface> \</interfaces> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ dedc5a0a 14f2 438c b078 85fc3aefd6b1"> \<ok/> \</rpc reply> get nd proxy for vlan in interface request example to get nd proxy for vlan in interface via get config \<filter type="subtree"> \<top> \<interfaces> \<interface> \<name>vlan100\</name> \<nd dynamic learning/> \</interface> \</interfaces> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ f73a6362 c017 416b 84eb 91a22f9bac05"> \<data> \<top> \<interfaces xmlns="http //asterfusion com/ns/yang/asternos interfaces"> \<interface> \<name>vlan100\</name> \<nd dynamic learning xmlns="http //asterfusion com/ns/yang/asternos ndp"> \<nd mode>disable\</nd mode> \</nd dynamic learning> \</interface> \</interfaces> \</top> \</data> \</rpc reply> show nd proxy for all vlans interfaces request example to show nd proxy for all vlans interfaces via rpc show interface nd proxy \<show interface nd proxy/> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ d57a06d8 eec6 41cb 87a6 a905ae6d1790"> \<data xmlns="http //asterfusion com/ns/yang/asternos ndp"> \<interface> \<name>vlan100\</name> \<mode>disable\</mode> \</interface> \</data> \</rpc reply>
