display arp snooping
Use display arp snooping to display ARP snooping entries.
Syntax
display arp snooping [ vlan vlan-id ] [ slot slot-number ] [ count ]
display arp snooping ip ip-address [ slot slot-number ]
display arp snooping [ vlan vlan-id ] [ chassis chassis-number slot slot-number ] [ count ]
display arp snooping ip ip-address [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vlan vlan-id: Displays ARP snooping entries for a VLAN. The vlan-id argument is in the range of 1 to 4094.
count: Displays the number of the ARP snooping entries.
ip ip-address: Displays the ARP snooping entry for the specified IP address.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays ARP snooping entries for the active MPU.
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays ARP snooping entries for the global active MPU.
Examples
# Display ARP snooping entries for VLAN 2.
<Sysname> display arp snooping vlan 2 IP Address MAC Address VLAN ID Interface Aging Status 3.3.3.3 0003-0003-0003 2 XGE1/0/1 20 Valid 3.3.3.4 0004-0004-0004 2 XGE1/0/2 5 Invalid
# Display the number of the ARP snooping entries.
<Sysname> display arp snooping count Total entries: 2
Table 2: Command output
Field | Description |
---|---|
IP Address | IP address in an ARP snooping entry. |
MAC Address | MAC address in an ARP snooping entry. |
VLAN ID | ID of the VLAN to which the ARP snooping entry belongs. |
Interface | Input interface in an ARP snooping entry. |
Aging | Aging time for an ARP snooping entry in minutes. If the card learns an ARP snooping entry from another card, the card cannot learn the aging time of the entry, and this field displays N/A. |
Status | Status of an ARP snooping entry: Valid, Invalid, Collision. |
Total entries | Number of ARP snooping entries. |
Related commands
reset arp snooping