ARP To Host Routing Configuration
show arp-to-host config
Section titled “show arp-to-host config”[Command] show arp-to-host config
[Purpose] Show the ARP-TO-HOST configuration of system
[View] System View
[Use Cases]
sonic# show arp-to-host configARP-to-Host Global Configuration:+---------+--------+----------+| VRF | Mode | Metric |+=========+========+==========+| default | enable | 5200 |+---------+--------+----------+Default-VLAN Policy: passDefault 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 |+---------+-------------+----------+arp-to-host convert enable
Section titled “arp-to-host convert enable”[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]
| Parameter | Description |
|---|---|
| vrf_name | VRF name, the default VRF is “default” |
| metric | metric 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 terminalsonic(config)# arp-to-host convert enable defaultarp-to-host policy
Section titled “arp-to-host policy”[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]
| Parameter | Description |
|---|---|
| vlan | Filter ARP/ND table entries by VLAN |
| A.B.C.D/M | Filter ARP/ND table entries by network segment |
| vrfname | VRF name, the default VRF is “default” |
| vlan_id | range 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 terminalsonic(config)# arp-to-host policy network 10.50.1.5/24 vrf 1 permit