ARP experiment under RedHatLinux9

Source: Internet
Author: User
Lab environment: VMware7.0, RedHatLinux9 Host IP Address: 192.168.0.132 (Linux host), Windows xp Host IP Address: 192.168.0.150 (xp host), and two virtual hosts are mounted on the vmnet2 switch. Packet capture tool: wireshark-win32-1.2.9, installed on an xp host. Objective: 1. to deeply understand the significance and principles of arp caching; 2. To master

Lab environment:

VMware7.0, Red Hat Linux 9 Host IP Address: 192.168.0.132 (hereinafter referred to as Linux host), windows xp Host IP Address: 192.168.0.150 (hereinafter referred to as xp host), and two virtual hosts are mounted on the vmnet2 switch.

Packet capture tool:

Wireshark-win32-1.2.9, installed on the xp host.

Purpose:

1. profound understanding of the significance and principles of arp caching;

2. Master arp commands in Linux.

Lab operation:

1. Clear the arp cache on Linux and xp hosts, ping the xp host on Linux, analyze the packets intercepted by wireshark, and check the arp cache on the Linux host and xp host respectively;

2. Clear the arp cache of the xp host, run the arp-s 192.168.0.150 xp host mac address command on the Linux host, and ping the xp host on the Linux host, analyze the packets intercepted by wireshark, and check the arp cache of the Linux host and the xp host respectively.

First case:

Packet status: the Linux host broadcasts an arp request packet asking the mac address of the xp host. The xp host sends an arp response packet to the Linux host after receiving the request packet and tells the Linux host, what is your mac address. Then there are four ICMP (ping request-response) packets, such:

Arp cache: The arp cache records the relationship between the IP address of the other host and the mac address.

Case 2:

Packet: There is no arp request packet that the Linux host broadcasts first. Only four pairs of ICMP (ping request-response ).

Arp cache: The arp cache records the relationship between the IP address of the other host and the mac address.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.