Fortinet black logo

CLI Reference

network arp

network arp

Use this command to add or delete an address resolution protocol (ARP) table entry, or to display the ARP table. The ARP table is used to resolve the IP addresses that correspond to a network interface card’s physical MAC address, thereby determining which IP addresses can be reached directly through a link.

To use this command, your administrator account’s access control profile must have rw or w permission to the sysgrp area. For details, see "Permissions" on page 1.

Syntax

diagnose network arp add <interface_name> {<interface_ipv4> | interface_ipv6>} <mac-address_hex>

diagnose network arp delete <interface_name> {<interface_ipv4> | interface_ipv6>}

diagnose network arp list

diagnose network arp flush

Variable Description Default

<interface_name>

Enter the name of the interface to add or delete from the ARP table. No default.

{<interface_ipv4> | interface_ipv6>}

Enter the IP address of the interface. No default.

<mac-address_hex>

Enter the MAC address of the interface. No default.

Example

This example displays a list of ARP table entries.

FortiWeb # diagnose network arp list

port_ha: 169.254.0.2 fc:aa:14:75:c0:e0 reachable

port1: 10.0.0.1 00:09:0f:77:11:1d stale

port2: 10.65.13.3 00:0c:29:02:f1:bb reachable

lo: 10::13:101 0: 0: 0: 0: 0: 0 noarp

port2: ff02::16 33:33: 0: 0: 0:16 noarp

vlan66: ff02::16 33:33: 0: 0: 0:16 noarp

port7: ff02::2 33:33: 0: 0: 0: 2 noarp

port_ha: ff02::2 33:33: 0: 0: 0: 2 noarp

port_tn: ff02::16 33:33: 0: 0: 0:16 noarp

port7: ff02::16 33:33: 0: 0: 0:16 noarp

port_ha: ff02::16 33:33: 0: 0: 0:16 noarp

gretap0: ff02::16 33:33: 0: 0: 0:16 noarp

Related topics

network arp

network arp

Use this command to add or delete an address resolution protocol (ARP) table entry, or to display the ARP table. The ARP table is used to resolve the IP addresses that correspond to a network interface card’s physical MAC address, thereby determining which IP addresses can be reached directly through a link.

To use this command, your administrator account’s access control profile must have rw or w permission to the sysgrp area. For details, see "Permissions" on page 1.

Syntax

diagnose network arp add <interface_name> {<interface_ipv4> | interface_ipv6>} <mac-address_hex>

diagnose network arp delete <interface_name> {<interface_ipv4> | interface_ipv6>}

diagnose network arp list

diagnose network arp flush

Variable Description Default

<interface_name>

Enter the name of the interface to add or delete from the ARP table. No default.

{<interface_ipv4> | interface_ipv6>}

Enter the IP address of the interface. No default.

<mac-address_hex>

Enter the MAC address of the interface. No default.

Example

This example displays a list of ARP table entries.

FortiWeb # diagnose network arp list

port_ha: 169.254.0.2 fc:aa:14:75:c0:e0 reachable

port1: 10.0.0.1 00:09:0f:77:11:1d stale

port2: 10.65.13.3 00:0c:29:02:f1:bb reachable

lo: 10::13:101 0: 0: 0: 0: 0: 0 noarp

port2: ff02::16 33:33: 0: 0: 0:16 noarp

vlan66: ff02::16 33:33: 0: 0: 0:16 noarp

port7: ff02::2 33:33: 0: 0: 0: 2 noarp

port_ha: ff02::2 33:33: 0: 0: 0: 2 noarp

port_tn: ff02::16 33:33: 0: 0: 0:16 noarp

port7: ff02::16 33:33: 0: 0: 0:16 noarp

port_ha: ff02::16 33:33: 0: 0: 0:16 noarp

gretap0: ff02::16 33:33: 0: 0: 0:16 noarp

Related topics