show ip cache

Displays IP forwarding cache.
Syntax
show ip cache [ vrf vrf-name ] [ ip-address | index ]
show ip cache resource
Parameters
vrfvrf-name
Displays cache details for a specific VPN Routing/Forwarding instance.
ip-address
Displays cache details for a specific IP address.
index
Displays cache details for cache beginning with the row following the number you enter.
resource
Displays the number of entries in the cache.
Modes

User EXEC mode

The show ip cache command displays the following information:

Output field Description
IP Address The IP address of the destination.
Next Hop The IP address of the next-hop router to the destination. This field contains either an IP address or the value DIRECT. DIRECT means the destination is either directly attached or the destination is an address on this device. For example, the next hop for loopback addresses and broadcast addresses is shown as DIRECT.
MAC The MAC address of the destination.

If the entry is type U (indicating that the destination is this device), the address consists of zeroes.

Type

The type of host entry, which can be one or more of the following:

  • D - Dynamic
  • P - Permanent
  • F - Forward
  • U - Us
  • C - Complex Filter
  • W - Wait ARP
  • I - ICMP Deny
  • K - Drop
  • R - Fragment
  • S - Snap Encap
Port The port through which this device reaches the destination. For destinations that are located on this device, the port number is shown as "n/a".
VLAN Indicates the VLANs the listed port is in.
Pri The QoS priority of the port or VLAN.
Examples

The following example is sample output from the show ip cache command.

device# show ip cache
Entries in default routing instance:
Total number of cache entries: 1
D:Dynamic  P:Permanent  F:Forward  U:Us  C:Complex Filter
W:Wait ARP  I:ICMP Deny  K:Drop  R:Fragment  S:Snap Encap
     IP Address         Next Hop        MAC              Type   Port    Vlan    Pri
1    192.168.1.11       DIRECT          0000.0000.0000   PU     n/a             0
1    192.168.1.125      DIRECT          0000.0000.0000   PU     n/a             0
1    10.168.1.11        DIRECT          0000.0000.0000   PU     n/a             0

The following example is sample output from the show ip cache resource command.

device# show ip cache resource
9 entries in ip-cache, maximum #: 10000

The following example displays output for the show ip cache command, including entries for VLAN tunnel ports.

device# show ip cache vrf overlay 101.1.1.4
Entries in VRF overlay:
D:Dynamic  P:Permanent  F:Forward  U:Us  C:Complex Filter
W:Wait ARP  I:ICMP Deny  K:Drop  R:Fragment  S:Snap Encap
      IP Address         Next Hop        MAC            Type Port           Vlan Pri
      101.1.1.4          DIRECT          0010.9400.0065 DFR  VxL-3.3.3.3    101  0  
History
Release version Command history
09.0.10d The output of this command was modified so that entries for VXLAN tunnel ports are displayed.
10.0.10 The output of this command was modified so that entries for VXLAN tunnel ports are displayed.