Computer Networks/Arp/View
Appearance
< Computer Networks | Arp
Arp is a Windows command used to view and modify the Address Resolution Protocol (ARP) cache. These activities will show you how to view the ARP cache.
Note: To complete this activity, you must have an administrative user account or know the username and password of an administrator account you can enter when prompted.
Preparation
[edit | edit source]To prepare for this activity:
- Start Windows.
- Log in if necessary.
Activity 1 - View the ARP Cache
[edit | edit source]To view the ARP cache:
- Type arp -a and press Enter.
- Observe the ARP cache entries.
Activity 2 - Clear the ARP Cache
[edit | edit source]In order to observe the effects of Media Access Control (MAC) address resolution, start by clearing the ARP cache:
- Open an elevated/administrator command prompt.
- Type arp -d and press Enter.
Activity 3 - View the ARP Cache
[edit | edit source]To view the ARP cache:
- Type arp -a and press Enter.
- Observe the ARP cache entries. There should not be any entries in the list. If there are, a background process on your computer has contacted a network host or router since the cache was cleared.
Activity 4 - Ping the Default Gateway
[edit | edit source]To dynamically add an entry to the ARP cache, ping the default gateway:
- Use ipconfig to display the default gateway address. Note the Default Gateway displayed.
- Use ping <default gateway address> to ping the default gateway address.
- Observe the results. You should see replies indicating success.
Activity 5 - View the ARP Cache
[edit | edit source]To view the ARP cache:
- Type arp -a and press Enter.
- Observe the ARP cache entries. There should be an entry for the default gateway showing its Internet (IP) address and physical (MAC) address. There may be other entries, depending on what background process on your computer has contacted a network host.
- Close the command prompt to complete this activity.
Readings
[edit | edit source]- Wikipedia: Address Resolution Protocol (ARP)
- Wikipedia: IP Address
- Wikipedia: Media Access Control (MAC) Address