The ARP cache contains entries that map IP addresses to MAC addresses. Generally, the entries are for devices that are directly attached to the routing switch.
An exception is an ARP entry for an interface-based static route that goes to a destination that is one or more router hops away. For this type of entry, the MAC address is either the destination device's MAC address or the MAC address of the router interface that answered an ARP request on behalf of the device, using proxy ARP.
The ARP cache contains dynamic (learned) entries. The software places a dynamic entry in the ARP cache when the routing switch learns a device's MAC address from an ARP request or ARP reply from the device.
The software can learn an entry when the switch or routing switch receives an ARP request from another IP forwarding device or an ARP reply. Here is an example of a dynamic entry:
ARP cache dynamic entry
IP Address MAC Address Type Port 1 207.95.6.102 0800.5afc.ea21 Dynamic 6
Each entry contains the destination device's IP address and MAC address.
To configure other ARP parameters, see Configuring ARP parameters.
The IP route table contains routing paths to IP destinations.
|
|
![]() |
NOTE: The default gateway, which you specify when you configure the basic IP information on the switch, is used only when routing is not enabled on the switch. |
|
The IP route table can receive the routing paths from the following sources:
-
Directly-connected destination, which means there are no router hops to the destination
-
Static route, which is a user-configured route
-
Route learned through RIP
-
Route learned through OSPF
The IP route table contains the best path to a destination. When the software receives paths from more than one of the sources listed above, the software compares the administrative distance of each path and selects the path with the lowest administrative distance. The administrative distance is a protocol-independent value from 1 to 255.
The IP route table is displayed by entering the show ip route
command from any context level in the console CLI. Here is an example of an entry in the IP route table:
IP route table entry
Destination Gateway VLAN Type Sub-Type Metric Di ----------------- --------------- ---- --------- ---------- -------- -- 10.10.10.1/32 10.10.12.1 connected 1
Each IP route table entry contains the destination's IP address and subnet mask and the IP address of the next-hop router interface to the destination. Each entry also indicates route type, and for OSPF routes, the subtype, and the route's IP metric (cost). The type indicates how the IP route table received the route.
Enter the show ip route
summary command to display the aggregate count of routes for each routing protocol.
IP route summary display
HP Switch(config)# show ip route summary IPv4 Route Table Summary Protocol Active Routes --------- ------------- Connected 1 Static 1
To configure a static IP route, see Static Routing.