Command Line Reference
Layer 3 Configuration
ARP/ND
53 min
arp arp arp view arp view table 1 arp view table 1 arp view command purpose show arp display arp table entries clear neighbor all clear all arp table entries clear neighbor interface {ethernet|link aggregation|vlan} { interface name \[ subinterface number ]} delete the specified arp table entries show arp show arp \[command] show arp \[purpose] display arp table entries \[view] privileged user view \[use cases] sonic# show arp address macaddress iface vlan \ 10 10 200 2 18 17 25 37 67 3e 200 total number of entries 1 clear neighbor all clear neighbor all \[command] clear neighbor all \[purpose] clear all arp table entries \[view] privileged user view \[use cases] sonic# clear neighbor all clear neighbor interface {ethernet|link aggregation|vlan} { clear neighbor interface {ethernet|link aggregation|vlan} { interface name \[ subinterface number ]} \[command] clear neighbor interface { ethernet | link aggregation|vlan } { interface name \[ subinterface number ]} \[purpose] delete the specified arp table entries \[parameters] parameter description interface name interface name (eg 0/1) subinterface number subinterface number \[view] privileged user view \[use cases] sonic# clear neighbor interface ethernet 0/2 arp config arp config table 2 arp config table 2 arp config command purpose arp static a b c d hh\ hh\ hh\ hh\ hh\ hh interface { ethernet | link aggregation | vlan } interface name \[ subinterface number ] configure static arp table entries arp timeout aging time configure arp aging time arp probe interval time configure arp probe interval arp probe times probe times configure arp probe times arp static arp static a b c d hh\ hh\ hh\ hh\ hh\ hh interface {ethernet|link aggregation|vlan} interface name \[ subinterface number ] \[command] arp static a b c d hh\ hh\ hh\ hh\ hh\ hh interface { ethernet|link aggregation|vlan } interface name \[ subinterface number ] \[purpose] configure static arp table entries \[parameters] parameter description a b c d ipv4 address hh\ hh\ hh\ hh\ hh\ hh mac address interface name interface name (eg 0/1) subinterface number subinterface number \[view] global configuration view \[notes] run command no arp static a b c d hh\ hh\ hh\ hh\ hh\ hh interface { ethernet | link aggregation|vlan } interface name \[ subinterface number ] to delete static arp entries \[use cases] sonic# configure terminal sonic(config)# arp static 3 3 3 3 00 00 00 00 00 01 interface vlan 5 sonic(config)# arp static 4 4 4 4 00 00 00 00 00 02 interface ethernet 0/1 sonic(config)# arp static 5 5 5 5 00 00 00 00 00 03 interface link aggregation 1 arp timeout arp timeout aging time \[command] arp timeout aging time \[purpose] configure arp aging time \[parameters] parameter description aging time specify the aging time in seconds the default arp aging time is 300s, and the range is from 60 to 86400 \[view] global configuration view / physical interface / sub interface / vlanif / lagif configuration view \[notes] run command no arp timeout to delete arp aging time configuration and restore to default \[use cases] sonic# configure terminal sonic(config)# arp timeout 500 sonic(config)# interface vlan 100 sonic(config vlanif 100)# arp timeout 8500 arp probe interval arp probe interval time \[command] arp probe interval time \[purpose] configure arp probe interval \[parameters] parameter description time specify the interval in seconds, the default value is 6 seconds, and the range is 1 65535 \[view] global configuration view / physical interface / sub interface / vlanif / lagif configuration view \[notes] run command no arp probe interva l to delete the arp probe interval configuration and restore the default value \[use cases] sonic# configure terminal sonic(config)# arp probe interval 10 sonic(config)# interface ethernet 0/80 sonic(config if 0/80)# arp probe interval 5 sonic(config if 0/80)# no arp probe interval arp probe times arp probe times probe times \[command] arp probe times probe times \[purpose] configure arp probe times \[parameters] parameter description probe times specify arp probe times, the default value is 5 times, and the range is 1 65535 \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command no arp probe times to delete the arp probe times configuration and restore the default value \[use cases] sonic# configure terminal sonic(config)# arp probe times 10 sonic(config)# interface ethernet 0/80 sonic(config if 0/80)# arp probe times 14 sonic(config if 0/80)# no arp probe times ndp ndp ndp view ndp view table 3 ndp view table 3 ndp view command purpose show ndp display ndp table show ndp show ndp \[command] show ndp \[purpose] display ndp table \[view] privileged user view \[use cases] sonic# show ndp address macaddress iface vlan status \ 2023 2 00 00 01 00 00 01 0/24 permanent total number of entries 1 ndp config ndp config table 4 ndp config table 4 ndp config command purpose ndp static a b hh\ hh\ hh\ hh\ hh\ hh interface{ethernet | link aggregation | vlan } interface name configure static ndp table entries ndp static ndp static a b hh\ hh\ hh\ hh\ hh\ hh interface {ethernet|link aggregation|vlan} interface name \[command] ndp static a b hh\ hh\ hh\ hh\ hh\ hh interface { ethernet | link aggregation|vlan } interface name \[purpose] configure static ndp table entries \[parameters] parameter description a b ipv6 address hh\ hh\ hh\ hh\ hh\ hh mac address interface name interface name (eg 0/1) \[view] global configuration view \[notes] run command no arp static a b hh\ hh\ hh\ hh\ hh\ hh interface { ethernet | link aggregation|vlan } interface name to delete static ndp \[use cases] sonic# configure terminal sonic(config)# ndp static 2023 2 00 00 01 00 00 01 interface ethernet 0/24 arp/nd to host arp/nd to host there are two levels of policy for arp/nd to host level 1 interface based level 1 interface based interface based policies are divided into default policy and user defined policy the system gives priority to matching user defined policy if not matched, the default policy will be used optional actions include permit , deny , and pass while permit and deny mean to perform arp/nd to host route conversion and non conversion behavior directly without matching the next level of segment policy, pass means to skip the interface policy process and enter the next level of policy level 2 segment based level 2 segment based segment policy is also divided into default policy and user defined segment policy the system matches user defined policy first, if not matched, then the default policy will be used optional actions include permit and deny , which correspond to arp/nd to host route conversion and non conversion behavior arp/nd to host view arp/nd to host view table 5 arp/nd to host view table 5 arp/nd to host view command purpose show arp to host summary display arp/nd to host summary info show arp to host policy display arp/nd to host policy configuration show arp to host summary show arp to host summary \[command] show arp to host summary \[purpose] display arp/nd to host summary info \[view] privileged user view \[use cases] sonic# show arp to host summary vrf name convert fast convergence metric \ default enable disable 5200 show arp to host policy show arp to host policy \[command] show arp to host policy \[purpose] display arp/nd to host policy configuration \[view] privileged user view \[use cases] sonic# show arp to host policy port port policy \ 0/56 permit network vrf name network policy \ default 1 1 1 1/24 permit arp/nd to host config arp/nd to host config table 6 arp to host config table 6 arp to host config command purpose arp to host enter arp/nd to host configuration view convert enablevrf vrf name enable arp/nd to host for specified vrfs policy default policy port vrf vrf name { permit | deny | pass } configure arp/nd to host default interface policy policy port { ethernet | link aggregation } interface name { permit | deny | pass } configure an arp/nd to host user defined interface policy policy default policy network vrf vrf name { permit | deny } configure arp/nd to host default segment policy policy network { a b c d/m | x\ x x\ x/m } vrf vrf name { permit | deny } configure arp/nd to host user defined segment policy arp to host arp to host \[command] arp to host \[purpose] enter arp/nd to host configuration view \[view] global configuration view \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# convert enable vrf default convert enable vrf convert enable vrf vrf name \[command] convert enable vrf vrf name \[purpose] enable arp/nd to host for specified vrfs \[parameters] parameter description vrf name specify the vrf name, the default vrf is default \[view] arp/nd to host configuration view \[notes] run command no convert enable vrf vrf name to disable arp/nd to host for specified vrfs \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# convert enable vrf default sonic(config arp to host)# convert enable vrf 123 policy default policy port vrf policy default policy port vrf vrf name {permit|deny|pass} \[command] policy default policy port vrf vrf name { permit | deny | pass } \[purpose] configure arp/nd to host default interface policy \[parameters] parameter description vrf name specify the vrf name, the default vrf is default \[view] arp/nd to host configuration view \[notes] run command no policy default policy port vrf vrf name to delete arp/nd to host default interface policy \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# policy default policy port vrf default permit policy port {ethernet|link aggregation} policy port {ethernet|link aggregation} interface name {permit|deny|pass} \[command] policy port { ethernet | link aggregation } interface name { permit | deny | pass } \[purpose] configure an arp/nd to host user defined interface policy \[parameters] parameter description interface name interface name (eg 0/1) \[view] arp/nd to host configuration view \[notes] run command no policy port { ethernet | link aggregation } interface name to delete arp/nd to host user defined interface policy \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# policy port ethernet 0/4 permit sonic(config arp to host)# policy port link aggregation 4 deny policy default policy network vrf policy default policy network vrf vrf name {permit|deny} \[command] policy default policy network vrf vrf name { permit | deny } \[purpose] configure arp/nd to host default segment policy \[parameters] parameter description vrf name specify the vrf name, the default vrf is default \[view] arp/nd to host configuration view \[notes] run command no policy default policy network vrf vrf name to delete arp/nd to host default segment policy \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# policy default policy network vrf default deny policy network { policy network { a b c d/m|x\ x x\ x/m } vrf vrf name {permit|deny} \[command] policy network { a b c d/m|x\ x x\ x/m } vrf vrf name { permit | deny } \[purpose] configure arp/nd to host user defined segment policy \[parameters] parameter description a b c d/m ipv4 address with prefix length x\ x x\ x/m ipv6 address with prefix length vrf name specify the vrf name, the default vrf is default \[view] arp/nd to host configuration view \[notes] run command no policy default policy network vrf vrf name to delete arp/nd to host user defined segment policy \[use cases] sonic# configure terminal sonic(config)# arp to host sonic(config arp to host)# policy network 10 179 238 64/26 vrf 123 deny arp proxy arp proxy table 7 arp proxy table 7 arp proxy command purpose arp proxy \[mode {default|evpn}] enable arp proxy arp proxy extend request enable active detection for silent terminals arp proxy extend reply enable learning of arp reply messages arp proxy \[mode {default|evpn}] arp proxy \[mode {default|evpn}] \[command] arp proxy \[ mode { default | evpn }] \[purpose] enable arp proxy \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] the mode can be default or evpn , and the default mode is default run command no arp proxy to disable arp proxy \[use cases] sonic# configure terminal sonic(config)# interface vlan 100 sonic(config vlanif 100)# arp proxy sonic(config vlanif 100)# arp proxy mode evpn arp proxy extend request arp proxy extend request \[command] arp proxy extend request \[purpose] enable active detection for silent terminals \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] this feature is enabled when there are silent terminals (terminals which do not send arp messages actively) in the layer 2 network once enabled, when the switch receives an arp request, it will send arp request to probe if the target ip belongs to the same network segment run command no arp proxy extend request to disable this feature \[use cases] sonic# configure terminal sonic(config)# interface 0/60 sonic(config)# interface ethernet 0/60 sonic(config if 0/60)# arp proxy extend request sonic(config if 0/60)# no arp proxy extend request arp proxy extend reply arp proxy extend reply \[command] arp proxy extend reply \[purpose] enable learning of arp reply messages \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command no arp proxy extend reply to disable this feature \[use cases] sonic# configure terminal sonic(config)# interface ethernet 0/60 sonic(config if 0/60)# arp proxy extend reply sonic(config if 0/60)# no arp proxy extend reply nd proxy nd proxy table 8 nd proxy table 8 nd proxy command purpose nd proxy mode default enable nd proxy nd proxy mode default nd proxy mode default \[command] nd proxy mode default \[purpose] enable nd proxy \[view] physical interface / vlanif / lagif configuration view \[notes] run command no nd proxy to disable nd proxy \[use cases] sonic# configure terminal sonic(config)# interface vlan 100 sonic(config vlanif 100)# nd proxy mode default slaac slaac slaac view slaac view table 9 slaac view table 9 slaac view command purpose show radv display ra configuration show radv show radv \[command] show radv \[purpose] display ra configuration \[view] privileged user view \[use cases] sonic# show radv enabled true global unicast only false + + + + + + + + + + \| interface | prefix | managed flag | otherconfig flag | offlink | no autonomous | link mtu | rdnss | route | preference | +=============+===============+================+====================+===========+=================+============+=========+=========================+ \| vlan11 | | on | | | | | | | + + + + + + + + + + \| 0/52 | 2000 101 /64 | on | on | on | on | 1900 | 2000 1 | 2000 101 10/128 | high | + + + + + + + + + + slaac config slaac config table 10 slaac config table 10 slaac config command purpose radv enable enable ra notification radv dns server x\ x x\ x configure dns information for ra notification radv link mtu mtu configure the mtu of the link for ra notification radv prefix x\ x x\ x/m configure prefix information for ra notification radv route information x\ x x\ x/m \[ preference { low | high|medium }] configure route information for ra notification radv managed flag set the managed flag to on radv other config flag set the other config flag to on radv offlink set the flag of on link to off radv no autonomous set the flag of autonomous to off radv ra interval maxrtradvinterval minrtradvinterval configure the maximum and minimum time interval between two ra notifications radv enable radv enable \[command] radv enable \[purpose] enable ra notification \[view] global configuration view \[notes] run command radv commit to take effect run command no radv enable to disable ra notification \[use cases] sonic# configure sonic(config)# radv enable please enter 'radv commit' to take effect sonic(config)# radv commit radv dns server radv dns server x\ x x\ x \[command] radv dns server x\ x x\ x \[purpose] configure dns information for ra notification \[parameters] parameter description x\ x x\ x ipv6 address of dns server \[view] physical interface / sub interface/ vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv dns server x\ x x\ x to remove the configuration \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv dns server 2002 2 please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv link mtu radv link mtu mtu \[command] radv link mtu mtu \[purpose] configure the mtu of the link for ra notification \[parameters] parameter description mtu set link mtu, the default value is 9216 \[view] physical interface / sub interface/ vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv link mtu to remove the configuration \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv link mtu 1500 please enter 'radv commit' to take effect sonic (config if 0/52)# radv commit sonic(config if 0/52)# radv prefix radv prefix x\ x x\ x/m \[command] radv prefix x\ x x\ x/m \[purpose] configure prefix information for ra notification \[parameters] parameter description x\ x x\ x/m network prefix for ra notifications \[view] physical interface / sub interface/ vlanif / lagif configuration view \[notes] when ra notification is enabled, you are required to set the prefix information, or the interface will not send ra messages run command radv commit to take effect run command no radv prefix x\ x x\ x/m to remove the configuration \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv prefix 3001 /64 please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv route information radv route information x\ x x\ x/m \[preference {low|high|medium}] \[command] radv route information x\ x x\ x/m \[ preference { low | high | medium }] \[purpose] configure route information for ra notification \[parameters] parameter description x\ x x\ x/m the network segment of ra's routing announcement \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv route information x\ x x\ x/m to remove the configuration \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv route information 3001 1 /64 preference low please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv managed flag radv managed flag \[command] radv managed flag \[purpose] set the managed flag to on(default is off) \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv managed flag to revert it to off \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv managed flag please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv other config flag radv other config flag \[command] radv other config flag \[purpose] set the other config flag to on (default is off) \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv other config flag to revert it to off \[use cases] sonic# configure sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv other config flag please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv offlink radv offlink \[command] radv offlink \[purpose] set the flag of on link to off (default is on) \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv offlink to revert it to on \[use cases] sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv offlink please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv no autonomous radv no autonomous \[command] radv no autonomous \[purpose] set the flag of autonomous to off (default is on) \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv no autonomous to revert it to on \[use cases] sonic(config)# interface ethernet 0/52 sonic(config if 0/52)# radv no autonomous please enter 'radv commit' to take effect sonic(config if 0/52)# radv commit radv ra interval radv ra interval maxrtradvinterval minrtradvinterval \[command] radv ra interval maxrtradvinterval minrtradvinterval \[purpose] configure the maximum and minimum time interval between two ra notifications \[parameters] parameter description maxrtradvinterval the maximum time interval for ra notifications, default value is 600, unit seconds minrtradvinterval the minimum time interval for ra notifications, default value is 600, unit seconds \[view] physical interface / sub interface / vlanif / lagif configuration view \[notes] run command radv commit to take effect run command no radv ra interval to set back to default value \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# radv ra interval 50 25 please enter 'radv commit' to take effect sonic(config if 0/40)# radv commit
