cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
403
Views
4
Helpful
5
Replies

Question on Ping...?

ganpatspatil
Level 1
Level 1

IF i have host A and B.

Host A-1.1.1.1 and HostB 2.2.2.2.

Connected by cross cable or HUB.

When i ping from A to B for what will be the content in ARP request ?

and if Host B reply then A should ping to B.is it ?

5 Replies 5

Hi Ganpat,

Both host should be able to ping each other if there is no firewall.

The below line of yours " When i ping from A to B for what will be the content in ARP request ? " is lil confusing

Regards

S. Shantharam

mheusinger
Level 10
Level 10

Hi,

the ARP request will contain source MAC of A and destination MAC all FF (broadcast) and in the ARP packet source MAC (A), dest. MAC all 0, source IP 1.1.1.1 destination IP 2.2.2.2

Be aware, that before this happens IP routing in the hosts needs to be configured correctly (check f.e. with "route print" in MS). If host A has no default gateway or routing table entry for 2.2.2.2 then no ARP will be issued. The easiest option will be to set default gateway on both A and B to their own IP address.

Regarding your ICMP (ping) question: the ping command creates an ICMP echo request message and the receiver will reply with an ICMP echo reply message (if not blocked f.e. by firewall).

Hope this helps! Please use the rating system.

Regards, Martin

Thanks for reply.

If i not configured host with default gateway and no extra routing confi on host(Only ip address are given).

In this situation A will chkk arp chahe and then send ARP request/broadcast to 2.2.2.2.

for this B will reply..........with MAC address........

is it ?

(Is there any thing like ARP broadcast will not goes into antother subnet ?)

Hi,

first IP routing takes place in host A, if you ping host B. If from the host A routing table ("route print") the destination is not known (at least through default gateway), then immediately a "destination unreachable" message is issued and no further action is taken. No connectivity, no frames/packets created.

Hope this helps!

Regards, Martin

Danilo Dy
VIP Alumni
VIP Alumni

When Host A ping Host B, an ARP request is sent at the same time from Host A to Host B. Host A will receive an ARP reply from Host B (even if Host A didn't get and ICMP reply from Host B) no matter what as long as there is a connection. Host A's ARP table will contain the IP Address and MAC address of Host B

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card