Skip to content
Ask AI

ARP To Host Routing Configuration

[Command] show arp-to-host config

[Purpose] Show the ARP-TO-HOST configuration of system

[View] System View

[Use Cases]

Terminal window
sonic# show arp-to-host config
ARP-to-Host Global Configuration:
+---------+--------+----------+
| VRF | Mode | Metric |
+=========+========+==========+
| default | enable | 5200 |
+---------+--------+----------+
Default-VLAN Policy: pass
Default Network Policy:
+---------+----------+
| VRF | Policy |
+=========+==========+
| default | deny |
+---------+----------+
Custom VLAN Policy:
+-----------+----------+
| VLAN ID | Policy |
+===========+==========+
| Vlan100 | permit |
+-----------+----------+
Custom Network Policy:
+---------+-------------+----------+
| VRF | Network | Policy |
+=========+=============+==========+
| default | 10.1.1.0/24 | permit |
+---------+-------------+----------+

[Command]

arp-to-host convert enable {default| vrf_name } [ metric ]

no arp-to-host convert enable {default| vrf_name }

[Purpose]

Turn on ARP-TO-HOST function

[Parameter]

ParameterDescription
vrf_nameVRF name, the default VRF is “default”
metricmetric for hostroute, range 1-4294967295, default 5200

[View]

System configuration view

[Usage Scenario] Enabling this feature ensures that ARP (Address Resolution Protocol) and NDP (Neighbor Discovery Protocol) entries that match the ARP-TO-HOST policy are converted into host routes. This allows for more efficient routing and management of ARP and NDP entries.

[Use Cases]

sonic# configure terminal
sonic(config)# arp-to-host convert enable default

[Command]

arp-to-host policy default-policy vlan {permit|deny|pass} arp-to-host policy default-policy network vrf vrfname {permit|deny} arp-to-host policy vlan vlan_id {permit|deny|pass} arp-to-host policy network A.B.C.D/M vrf vrfname {permit|deny} no arp-to-host policy default-policy {vlan |network vrf vrfname } no arp-to-host policy {vlan vlan_id |network A.B.C.D/M vrf vrfname }

[Purpose]

Configure the ARP-TO-HOST interface routing policy

[Parameter]

ParameterDescription
vlanFilter ARP/ND table entries by VLAN
A.B.C.D/MFilter ARP/ND table entries by network segment
vrfnameVRF name, the default VRF is “default”
vlan_idrange 1-4094

[View]

System configuration view

[Notes]

If the neighbor table entry matches the configured segment, it will be processed according to the policy action, permit means allowed to convert to host route, deny means not allowed. Table entries that not hit the network policy will be processed by the default policy in the same way as above.

[Use Cases]

sonic# configure terminal
sonic(config)# arp-to-host policy network 10.50.1.5/24 vrf 1 permit