Radv
12 min
\<font color="#1d50a2">asternos radv\</font> this chapter provides examples on how to use netconf to manage router advertisements (radv) on asternos devices \<font color="#1d50a2">create global radv\</font> request example to create global radv via edit config \<config>\<top> \<global router advertisement operation="create"> \<enabled>true\</enabled> \<unicast only flag>true\</unicast only flag> \<managed flag>true\</managed flag> \<other config flag>true\</other config flag> \<link mtu>1500\</link mtu> \<on link flag>true\</on link flag> \<autonomous flag>false\</autonomous flag> \<rdnsses> \<rdnss>2001\ db8 1\</rdnss> \</rdnsses> \<routes> \<route>2001\ db8 1234 /48\</route> \<preferred>high\</preferred> \</routes> \</global router advertisement> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ a6c887fb 108c 4ea1 930a 0148684bbd72"> \<ok/> \</rpc reply> \<font color="#1d50a2">get global radv status\</font> request example to get global radv status via get config with subtree filter \<filter type="subtree"> \<top> \<global router advertisement> \</global router advertisement> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 8d70f415 e472 4bf8 94b5 6e86e358b6a9"> \<data> \<top> \<global router advertisement xmlns="http //asterfusion com/ns/yang/asternos radv"> \<enabled>true\</enabled> \<unicast only flag>true\</unicast only flag> \<managed flag>true\</managed flag> \<other config flag>true\</other config flag> \<link mtu>1500\</link mtu> \<on link flag>true\</on link flag> \<autonomous flag>false\</autonomous flag> \<rdnsses> \<rdnss>2001\ db8 1\</rdnss> \</rdnsses> \<routes> \<route>2001\ db8 1234 /48\</route> \<preferred>high\</preferred> \</routes> \</global router advertisement> \</top> \</data> \</rpc reply> \<font color="#1d50a2">modify radv global attributes\</font> request example to modify global radv attributes via edit config with merge operation \<config>\<top> \<global router advertisement operation="merge"> \<unicast only flag>false\</unicast only flag> \<managed flag>false\</managed flag> \<other config flag>false\</other config flag> \<link mtu>6000\</link mtu> \<on link flag>false\</on link flag> \</global router advertisement> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 13cbb602 0c94 487a 9dbf a1762db39e87"> \<ok/> \</rpc reply> \<font color="#1d50a2">create radv and set attributes for vlanif\</font> note radv is only supported for vlanif request example to create radv and set attributes for vlanif via edit config \<config>\<top> \<vlans> \<vlan operation="create"> \<vlanid>100\</vlanid> \</vlan> \</vlans> \<interfaces> \<interface operation="merge"> \<name>vlan100\</name> \<interface mode>routed\</interface mode> \<ipv6> \<router advertisement operation="create"> \<managed flag>true\</managed flag> \<other config flag>true\</other config flag> \<on link flag>true\</on link flag> \<autonomous flag>true\</autonomous flag> \<rdnsses> \<rdnss>2222\ db8 1\</rdnss> \</rdnsses> \<routes> \<route>3333\ db8 1234 /48\</route> \<preferred>high\</preferred> \</routes> \<prefixes> \<prefix>3000 /64\</prefix> \</prefixes> \</router advertisement> \</ipv6> \</interface> \</interfaces> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ c8890522 c2e0 4015 b4dc 3ec9b73ef6d0"> \<ok/> \</rpc reply> \<font color="#1d50a2">get radv status for vlanif\</font> request example to get radv status for vlanif via get config with subtree filter \<filter type="subtree"> \<top> \<interfaces> \<interface> \<name>vlan100\</name> \<ipv6> \<router advertisement> \</router advertisement> \</ipv6> \</interface> \</interfaces> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 3e03658a 5c91 4399 aeeb 774b03bdd382"> \<data> \<top> \<interfaces xmlns="http //asterfusion com/ns/yang/asternos interfaces"> \<interface> \<name>vlan100\</name> \<ipv6 xmlns="http //asterfusion com/ns/yang/asternos ip"> \<router advertisement> \<managed flag>true\</managed flag> \<other config flag>true\</other config flag> \<on link flag>true\</on link flag> \<autonomous flag>true\</autonomous flag> \<prefixes> \<prefix>3000 /64\</prefix> \</prefixes> \<rdnsses> \<rdnss>2222\ db8 1\</rdnss> \</rdnsses> \<routes> \<route>3333\ db8 1234 /48\</route> \<preferred>high\</preferred> \</routes> \</router advertisement> \</ipv6> \</interface> \</interfaces> \</top> \</data> \</rpc reply> \<font color="#1d50a2">delete radv for vlanif\</font> request example to delete radv for vlanif via edit config \<config>\<top> \<interfaces> \<interface> \<name>vlan100\</name> \<ipv6> \<router advertisement operation="delete"> \</router advertisement> \</ipv6> \</interface> \</interfaces> \</top>\</config> \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ ea5228f8 11c9 485d 9186 879540f93faf"> \<ok/> \</rpc reply> \<font color="#1d50a2">show radv status\</font> request example to show radv status via rpc show radv summary \<show radv summary/> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 42cbaa54 adf3 4f7d 95d9 14f33f953afc"> \<data xmlns="http //asterfusion com/ns/yang/asternos radv"> enabled true global unicast only false + + + + + + + + + + \| interface | prefix | managed flag | otherconfig flag | offlink | no autonomous | link mtu | rdnss | route | preference | +=============+==========+================+====================+===========+=================+============+=============+=========================+ \| global | | off | off | on | on | 6000 | 2001\ db8 1 | 2001\ db8 1234 /48|high | + + + + + + + + + + \</data> \</rpc reply>
