正在加载图片...
2.The Address Resolution Protocol In this section.we'll observe the ARP protocol in action.We strongly recommend that you re-read section 5.4.1 in the text before proceeding. ARP Caching Recall that the ARP protocol typically maintains a cache of IP-to-Ethernet address lati on pa d ew manip f thi s cac he Sin e the e arp d the ARF l ha hat they are ame,it's understanda But Keep i h arp comm manipulate the ARP cache contents,while the ARP protoc ol defines the format and meaning of the messages sent and received,and defines the actions taken on message transmission and receipt. Let's take a look at the contents of the ARP cache on your computer: MS-DOS.The arp command is in c:\windows\system32,so type either"arp"or "c:hwindowslsystem32larp"in the MS-DOS command line (without quotation marks). Linux/Unix/MacOS.The ecutable for the arp command can be in n various places Popular locations are/sbin/arp(for linux)and /usr/etc/arp(for some Unix variants The Windows arp con with no argument will display the contents of the ARP cache on your computer.Run the arp command 9.Write down the contents of your computer's ARP cache.What is the meaning of each column value? In order to observe your computer sending and receiving ARP messages,we'll need to clear the ARP cache,since otherwise your computer is likely to find a needed IP-Ethernet address translation pair in its cache and consequently not need to send out an ARP message. ·MS-DOs.The MS-.DOs arp-d *command will clear ur ARP cache The-d flag indic ates a deletion operation,and theis the wildca d that says to delete all tahle Linux/Unix/MacOS.The arp-dwill clear your ARP cache.In order to run s comm na you 00 privileges.If you don't have root privi can'trun Wireshark ona Windows mac eges and ne, you can skip the trace collection part of this lab and just use the trace discussed in the earlier footnote. 2. The Address Resolution Protocol In this section, we’ll observe the ARP protocol in action. We strongly recommend that you re-read section 5.4.1 in the text before proceeding. ARP Caching Recall that the ARP protocol typically maintains a cache of IP-to-Ethernet address translation pairs on your comnputer The arp command (in both MSDOS and Linux/Unix) is used to view and manipulate the contents of this cache. Since the arp command and the ARP protocol have the same name, it’s understandably easy to confuse them. But keep in mind that they are different - the arp command is used to view and manipulate the ARP cache contents, while the ARP protocol defines the format and meaning of the messages sent and received, and defines the actions taken on message transmission and receipt. Let’s take a look at the contents of the ARP cache on your computer: • MS-DOS. The arp command is in c:\windows\system32, so type either “arp” or “c:\windows\system32\arp” in the MS-DOS command line (without quotation marks). • Linux/Unix/MacOS. The executable for the arp command can be in various places. Popular locations are /sbin/arp (for linux) and /usr/etc/arp (for some Unix variants). The Windows arp command with no arguments will display the contents of the ARP cache on your computer. Run the arp command. 9. Write down the contents of your computer’s ARP cache. What is the meaning of each column value? In order to observe your computer sending and receiving ARP messages, we’ll need to clear the ARP cache, since otherwise your computer is likely to find a needed IP-Ethernet address translation pair in its cache and consequently not need to send out an ARP message. • MS-DOS. The MS-DOS arp –d * command will clear your ARP cache. The –d flag indicates a deletion operation, and the * is the wildcard that says to delete all table entries. • Linux/Unix/MacOS. The arp –d * will clear your ARP cache. In order to run this command you’ll need root privileges. If you don’t have root privileges and can’t run Wireshark on a Windows machine, you can skip the trace collection part of this lab and just use the trace discussed in the earlier footnote
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有